jb7+weblogic7的例子

02-12-23 drew

各位大哥你们好!今天我想请教2个问题1:

我用jb7+weblogic7做了个例子

可是运行server出错了。

C:\bea\jdk131_03\bin\javaw -classpath "C:\bea\weblogic700\server\lib\weblogic_sp.jar;C:\bea\weblogic700\server\lib\weblogic.jar;C:\JBuilder7\lib\jaxrpc.jar;C:\JBuilder7\lib\jds.jar;C:\JBuilder7\lib\jdsremote.jar;C:\JBuilder7\lib\jdsserver.jar" -ms64m -mx64m -Djava.library.path=C:/bea/weblogic700/server/bin -Dbea.home=C:/bea -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Djava.security.policy==C:/bea/weblogic700/server/lib/weblogic.policy -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false -Dweblogic.management.password=88888888 -Dweblogic.management.username=system weblogic.Server

Starting WebLogic Server...

<2002-12-23 下午03时16分55秒> <Warning> <Management> <000000> < -Dweblogic.Domain=<domainName> is no longer a required command line option, if you don't pass it in the domain name can be be inferred from the configuration file : config.xml>

<2002-12-23 下午03时17分00秒> <Notice> <Management> <140005> <Loading configuration C:\bea\user_projects\mydomain\.\config.xml>

<2002-12-23 下午03时17分07秒> <Notice> <Security> <090082> <Security initializing using realm myrealm.>

<2002-12-23 下午03时17分07秒> <Critical> <WebLogicServer> <000364> <Server failed during initialization. Exception:java.lang.SecurityException: Authentication for user system denied

java.lang.SecurityException: Authentication for user system denied

at weblogic.security.service.SecurityServiceManager.doBootAuthorization(SecurityServiceManager.java:978)

at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1116)

at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)

at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)

at weblogic.Server.main(Server.java:31)

>

<2002-12-23 下午03时17分07秒> <Emergency> <WebLogicServer> <000342> <Unable to initialize the server: Fatal initialization exception

Throwable: java.lang.SecurityException: Authentication for user system denied

java.lang.SecurityException: Authentication for user system denied

at weblogic.security.service.SecurityServiceManager.doBootAuthorization(SecurityServiceManager.java:978)

at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1116)

at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)

at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)

at weblogic.Server.main(Server.java:31)

>

***************************************************************************

The WebLogic Server did not start up properly.

Exception raised:

java.lang.SecurityException: Authentication for user system denied

at weblogic.security.service.SecurityServiceManager.doBootAuthorization(SecurityServiceManager.java:978)

at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1116)

at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)

at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)

at weblogic.Server.main(Server.java:31)

Reason: Fatal initialization exception

Throwable: java.lang.SecurityException: Authentication for user system denied

java.lang.SecurityException: Authentication for user system denied

at weblogic.security.service.SecurityServiceManager.doBootAuthorization(SecurityServiceManager.java:978)

at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1116)

at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)

at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)

at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)

at weblogic.Server.main(Server.java:31)

***************************************************************************

这个是build里面报的错。

"testSesMod.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.

"testSesMod.ejbgrpx": Spaces in the classpath may cause WebLogic EJBC utility to produce fatal compile errors.

2:

就是我启动我的j2sdkee1.4的时候出错如下:

C:\j2sdkee1.4\bin>j2ee -verbose

J2EE server listen port: 1050

Naming service started: 1050

Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;

te=true

Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Clouds

DB;create=true

Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloud

eDB;create=true

Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:Cloudsca

;create=true

Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;

te=true

Binding DataSource, name = jdbc/_ejb_container, url = jdbc/_ejb_container__x

Binding DataSource, name = jdbc/_ejb_container__xa, dataSource = COM.cloudsc

core.XaDataSource@cfe049

Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa

Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscap

re.RemoteXaDataSource@22ce00

Starting JMS service...

Initialization complete - waiting for client requests

Starting JMS via Resource Adapter

Deploying jmsra.rar in C:\j2sdkee1.4\lib\system_apps\jmsra.rar

org.w3c.dom.DOMException: DOM003 Namespace error

at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:129)

at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocu

Impl.java:1422)

at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java

)

at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAt

ute(DeploymentDescriptorNode.java:501)

at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMa

calizedNode.java:65)

at com.sun.enterprise.deployment.node.DisplayableComponentNode.write

layableComponentInfo(DisplayableComponentNode.java:56)

at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(Bun

ode.java:104)

at com.sun.enterprise.deployment.node.connector.ConnectorNode.writeD

iptor(ConnectorNode.java:210)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocumen

EEDocumentBuilder.java:77)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:120)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)

at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

java.lang.IllegalArgumentException: 在 newTemplate 的 DOMSource 中,输入节点

为空!

at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Tr

ormerIdentityImpl.java:346)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:125)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)

at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

Exception stringifying deployment descriptor

java.lang.IllegalArgumentException: 在 newTemplate 的 DOMSource 中,输入节点

为空!

at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Tr

ormerIdentityImpl.java:346)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:125)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)

at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

ResourceAdapter jmsra.rar started...

Initializing Coyote HTTP/1.1 on port 8000

Initializing Coyote HTTP/1.1 on port 7000

Starting service J2EE(TM) Web ServerMissing application web.xml, using defau

only StandardEngine[Standard-Engine].StandardHost[localhost].StandardContext

Apache Tomcat/5.0

Added certificates -> request attribute Valve

Starting Coyote HTTP/1.1 on port 8000

Starting Coyote HTTP/1.1 on port 7000

JACC:Policy Repository set to C:\j2sdkee1.4\repository\policy

Added certificates -> request attribute Valve

Configured an authenticator for method FORM

J2EE Web Admin Tool started

org.w3c.dom.DOMException: DOM003 Namespace errorJAXR:Installing JAXR RA

Deploying jaxr-ra.rar in C:\j2sdkee1.4\lib\system_apps\jaxr-ra.rar

at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:129)

at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocu

Impl.java:1422)

at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java

)

at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAt

ute(DeploymentDescriptorNode.java:501)

at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMa

calizedNode.java:65)

at com.sun.enterprise.deployment.node.DisplayableComponentNode.write

layableComponentInfo(DisplayableComponentNode.java:57)

at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(Bun

ode.java:104)

at com.sun.enterprise.deployment.node.connector.ConnectorNode.writeD

iptor(ConnectorNode.java:210)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocumen

EEDocumentBuilder.java:77)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:120)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)

at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

java.lang.IllegalArgumentException: 在 newTemplate 的 DOMSource 中,输入节点

为空!

at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Tr

ormerIdentityImpl.java:346)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:125)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)Exception stringifying deployment descripto

java.lang.IllegalArgumentException: 在 newTemplate 的 DOMSource 中,输入节点

为空!

at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Tr

ormerIdentityImpl.java:346)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EE

mentBuilder.java:125)

at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptor

ring(J2EEDocumentBuilder.java:153)

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408

at com.sun.enterprise.management.util.J2EEManagementObjectManager.re

erResourceAdapterModule(J2EEManagementObjectManager.java:203)

at com.sun.enterprise.resource.ResourceInstaller.installSystemResour

apter(ResourceInstaller.java:706)

at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)

Binding Connection Factory, name = TopicConnectionFactory

Binding Connection Factory, name = eis/JAXR

Binding Connection Factory, name = jms/QueueConnectionFactory

Binding Connection Factory, name = jms/TopicConnectionFactory

Binding Connection Factory, name = QueueConnectionFactory

Cannot create Destination jms/Queue since it already exists

Binding Administered Object, name = jms/Queue

Cannot create Destination jms/Topic since it already exists

Binding Administered Object, name = jms/Topic

Starting EJB Timer Service...

J2EE server startup complete.

请各位大哥,大姐可邻可邻我吧。

我的QQ 是79895563

janfowler
2003-03-06 18:28

对于出现的“ejbgrpx Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors”错误,我也碰到了。现已解决,提出来供大家参考。

.ejbgrpx文件存在于工程目录下。检查你的temp,tmp,classpath环境变量的设置,classpath变量不能出现不存在的目录,并将temp,tmp改为:E:\TEMP后,重启动,编译错误就没有了。