[求助]Windows下如何将Weblogic examplesServer注册为Service_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
3
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 5021 | 回复: 2   主题: [求助]Windows下如何将Weblogic examplesServer注册为Service        上一篇   下一篇 
曹先丰
注册用户
等级:中士
经验:208
发帖:72
精华:0
注册:2012-1-9
状态:离线
发送短消息息给曹先丰 加好友    发送短消息息给曹先丰 发消息
发表于: IP:您无权察看 2015-1-26 15:24:23 | [全部帖] [楼主帖] 楼主

环境:Windows xp + Weblogic 10.3

BEA_HOME=C:\BEA
WL_HOME=C:\BEA\wlserver_10.3


参考以前一个bea的document的配置方法
设置了

set DOMAIN_NAME=wl_server
set USERDOMAIN_HOME=C:\BEA\wlserver_10.3\samples\domains\wl_server
set SERVER_NAME=examplesServer
set PRODUCTION_MODE=true
set JAVA_OPTIONS=-Dweblogic.Stdout="C:\BEA\wlserver_10.3\samples\domains\wl_server\stdout.txt" -Dweblogic.Stderr="C:\BEA\wlserver_10.3\samples\domains\wl_server\stderr.txt"
set MEM_ARGS=-Xms128m -Xmx256m
set WLS_USER=weblogic
set WLS_PW=weblogic
set PORT=7001
set HOST=localhost


一系列参数,然后调用

call "C:\BEA\wlserver_10.3\server\bin\installSvc.cmd"


服务可以注册成功,也能正常启动,但就是有很多错误.
<2009-8-31 下午11时32分42秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows-ia32 from BEA Systems, Inc.>
<2009-8-31 下午11时32分43秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3  Fri Jul 25 16:30:05 EDT 2008 1137967 >
<2009-8-31 下午11时32分44秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<2009-8-31 下午11时32分44秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<2009-8-31 下午11时32分45秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file C:\BEA\wlserver_10.3\samples\domains\wl_server\servers\examplesServer\logs\examplesServer.log is opened. All server side log events will be written to this file.>
<2009-8-31 下午11时32分48秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<2009-8-31 下午11时32分53秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<2009-8-31 下午11时32分53秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<2009-8-31 下午11时32分53秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'examples-demo' due to error weblogic.application.ModuleException: .

weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
Truncated. see log file for complete stacktrace
weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.pointbase.jdbc.jdbcUniversalDriver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:300)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:646)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:200)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分53秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'examples-demoXA' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
Truncated. see log file for complete stacktrace
weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.pointbase.xa.xaDataSource
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:300)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:646)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:200)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分53秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'examples-demoXA-2' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
Truncated. see log file for complete stacktrace
weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.pointbase.xa.xaDataSource
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:300)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:646)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:200)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分53秒 CST> <Error> <Store> <BEA-280061> <The persistent store "exampleJDBCStore" could not be deployed: weblogic.store.PersistentStoreException: Can't find JDBC DataSource examples-dataSource-demoPool: javax.naming.NameNotFoundException: Unable to resolve 'examples-dataSource-demoPool'. Resolved ''; remaining name 'examples-dataSource-demoPool'
weblogic.store.PersistentStoreException: Can't find JDBC DataSource examples-dataSource-demoPool: javax.naming.NameNotFoundException: Unable to resolve 'examples-dataSource-demoPool'. Resolved ''; remaining name 'examples-dataSource-demoPool'
at weblogic.store.admin.JDBCAdminHandler.createDataSource(JDBCAdminHandler.java:107)
at weblogic.store.admin.JDBCAdminHandler.makeStoreIO(JDBCAdminHandler.java:186)
at weblogic.store.admin.JDBCAdminHandler.makeStore(JDBCAdminHandler.java:164)
at weblogic.store.admin.JDBCAdminHandler.activate(JDBCAdminHandler.java:59)
at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
Truncated. see log file for complete stacktrace
javax.naming.NameNotFoundException: Unable to resolve 'examples-dataSource-demoPool'. Resolved ''; remaining name 'examples-dataSource-demoPool'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分53秒 CST> <Warning> <Management> <BEA-141197> <The deployment of exampleJDBCStore failed.
weblogic.management.DeploymentException:
at weblogic.store.admin.JDBCAdminHandler.activate(JDBCAdminHandler.java:62)
at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:591)
at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:452)
Truncated. see log file for complete stacktrace
javax.naming.NameNotFoundException: Unable to resolve 'examples-dataSource-demoPool'. Resolved ''; remaining name 'examples-dataSource-demoPool'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分54秒 CST> <Error> <JMS> <BEA-040123> <Failed to start JMS Server "examplesJMSServer" due to weblogic.management.DeploymentException: The persistent store "exampleJDBCStore" does not exist.
weblogic.management.DeploymentException: The persistent store "exampleJDBCStore" does not exist
at weblogic.jms.deployer.BEAdminHandler.findPersistentStore(BEAdminHandler.java:304)
at weblogic.jms.deployer.BEAdminHandler.activate(BEAdminHandler.java:192)
at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:591)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分54秒 CST> <Warning> <Management> <BEA-141197> <The deployment of examplesJMSServer failed.
weblogic.management.DeploymentException: Internalrror activating the JMS Server examplesJMSServer: weblogic.management.DeploymentException: The persistent store "exampleJDBCStore" does not exist
at weblogic.jms.deployer.BEAdminHandler.activate(BEAdminHandler.java:206)
at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:591)
at weblogic.management.internal.DeploymentHandlerHome.activateInitialDeployments(DeploymentHandlerHome.java:452)
Truncated. see log file for complete stacktrace
weblogic.management.DeploymentException: The persistent store "exampleJDBCStore" does not exist
at weblogic.jms.deployer.BEAdminHandler.findPersistentStore(BEAdminHandler.java:304)
at weblogic.jms.deployer.BEAdminHandler.activate(BEAdminHandler.java:192)
at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:239)
at weblogic.management.utils.GenericServiceManager.activateDeployment(GenericServiceManager.java:131)
at weblogic.management.internal.DeploymentHandlerHome.invokeHandlers(DeploymentHandlerHome.java:591)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分54秒 CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'examples-jms'.
weblogic.application.ModuleException: ERROR: Could not activate examples-jms!exampleQueue
at weblogic.jms.backend.BEDestinationRuntimeDelegate.activate(BEDestinationRuntimeDelegate.java:238)
at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1717)
at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)
at weblogic.jms.module.JMSModule$EntityState.access$100(JMSModule.java:1608)
at weblogic.jms.module.JMSModule.activate(JMSModule.java:332)
Truncated. see log file for complete stacktrace
weblogic.messaging.kernel.KernelException: The Messaging Kernel examplesJMSServer has not yet been opened
at weblogic.messaging.kernel.internal.KernelImpl.checkOpened(KernelImpl.java:191)
at weblogic.messaging.kernel.internal.DestinationImpl.activate(DestinationImpl.java:280)
at weblogic.messaging.kernel.internal.QueueImpl.activate(QueueImpl.java:1687)
at weblogic.messaging.kernel.internal.DestinationImpl.resume(DestinationImpl.java:264)
at weblogic.messaging.kernel.internal.QueueImpl.resume(QueueImpl.java:1863)
Truncated. see log file for complete stacktrace

<2009-8-31 下午11时32分58秒 CST> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: WatchProcessMDB is unable to connect to the JMS destination: weblogic.examples.ejb30.ExampleQueue. The Error was:
Can not get distribute destination information. The destination JNDI name is weblogic.examples.ejb30.ExampleQueue, the provider URL is null> 
<2009-8-31 下午11时32分58秒 CST> <Warning> <HTTP> <BEA-101162> <User defined listener examples.ejb.ejb30.web.ContextInitializer failed: <openjpa-1.1.0-r422266:657916 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: There were errors initializing your configuration: <openjpa-1.1.0-r422266:657916 fatal store error> org.apache.openjpa.util.StoreException: com.pointbase.jdbc.jdbcUniversalDriver
at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:123)
at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:776)
at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:683)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:288)
at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)
at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)
at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:183)
at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:145)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
at examples.ejb.ejb30.service.PersistenceService.getEM(PersistenceService.java:70)
at examples.ejb.ejb30.service.PersistenceService.getEntityManager(PersistenceService.java:49)
at examples.ejb.ejb30.service.SeedDatabase.isEmpty(SeedDatabase.java:347)
at examples.ejb.ejb30.service.SeedDatabase.ensureDatabaseInitialzed(SeedDatabase.java:414)
at examples.ejb.ejb30.web.ContextInitializer.contextInitialized(ContextInitializer.java:28)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1784)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:85)
... 55 more
.
----


有知道是怎么回事的吗?

--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
yaoxia.wu
注册用户
等级:中校
经验:2318
发帖:53
精华:1
注册:1970-1-1
状态:离线
发送短消息息给yaoxia.wu 加好友    发送短消息息给yaoxia.wu 发消息
发表于: IP:您无权察看 2015-1-27 12:38:48 | [全部帖] [楼主帖] 2  楼

pointbase的数据库没起来:

1、先手工把pointbase起来;

2、把pointbase也弄成windows服务。



赞(0)    操作        顶端 
qq_1415152355172
注册用户
等级:上等兵
经验:141
发帖:0
精华:0
注册:2014-11-5
状态:离线
发送短消息息给qq_1415152355172 加好友    发送短消息息给qq_1415152355172 发消息
发表于: IP:您无权察看 2015-1-27 12:40:04 | [全部帖] [楼主帖] 3  楼

Caused by: java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:169)

pointbase数据库的JDBC驱动没找到



赞(0)    操作        顶端 
总帖数
3
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论