当前位置: 技术问答>java相关
配置J2EE出错!大侠帮忙!!
来源: 互联网 发布时间:2015-11-20
本文导语: 我按照qiyao(享受每一天)所说的配置J2EE(配置文章:http://expert.csdn.net/Expert/topic/783/783397.xml?temp=.1074335),出错了,为什么? JDK:j2sdk-1_4_0_01-windows-i586.exe J2EE:j2sdkee-1_4-beta-Enterprise_Edition_win.exe 错误如下: J2EE server liste...
我按照qiyao(享受每一天)所说的配置J2EE(配置文章:http://expert.csdn.net/Expert/topic/783/783397.xml?temp=.1074335),出错了,为什么?
JDK:j2sdk-1_4_0_01-windows-i586.exe
J2EE:j2sdkee-1_4-beta-Enterprise_Edition_win.exe
错误如下:
J2EE server listen port: 1050
Naming service started: 1050
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
DB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
eDB;create=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB
;create=true
Binding DataSource, name = jdbc/_ejb_container, url = jdbc/_ejb_container__xa
Binding DataSource, name = jdbc/_ejb_container__xa, dataSource = COM.cloudscape.
core.XaDataSource@a8e586
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
re.RemoteXaDataSource@d13272
Starting JMS service...
Initialization complete - waiting for client requests
Starting JMS via Resource Adapter
Deploying jmsra.rar in C:j2sdkee1.4libsystem_appsjmsra.rar
org.w3c.dom.DOMException: DOM003 Namespace error
at org.apache.xerces.dom.AttrNSImpl.(AttrNSImpl.java:129)
at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocument
Impl.java:1422)
at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:596
)
at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttrib
ute(DeploymentDescriptorNode.java:501)
at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(Lo
calizedNode.java:65)
at com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisp
layableComponentInfo(DisplayableComponentNode.java:56)
at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleN
ode.java:104)
at com.sun.enterprise.deployment.node.connector.ConnectorNode.writeDescr
iptor(ConnectorNode.java:210)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2
EEDocumentBuilder.java:77)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:120)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
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(Transf
ormerIdentityImpl.java:346)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
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(Transf
ormerIdentityImpl.java:346)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
下面还有……
JDK:j2sdk-1_4_0_01-windows-i586.exe
J2EE:j2sdkee-1_4-beta-Enterprise_Edition_win.exe
错误如下:
J2EE server listen port: 1050
Naming service started: 1050
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
DB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
eDB;create=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB
;create=true
Binding DataSource, name = jdbc/_ejb_container, url = jdbc/_ejb_container__xa
Binding DataSource, name = jdbc/_ejb_container__xa, dataSource = COM.cloudscape.
core.XaDataSource@a8e586
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
re.RemoteXaDataSource@d13272
Starting JMS service...
Initialization complete - waiting for client requests
Starting JMS via Resource Adapter
Deploying jmsra.rar in C:j2sdkee1.4libsystem_appsjmsra.rar
org.w3c.dom.DOMException: DOM003 Namespace error
at org.apache.xerces.dom.AttrNSImpl.(AttrNSImpl.java:129)
at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocument
Impl.java:1422)
at org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:596
)
at com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttrib
ute(DeploymentDescriptorNode.java:501)
at com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(Lo
calizedNode.java:65)
at com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisp
layableComponentInfo(DisplayableComponentNode.java:56)
at com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleN
ode.java:104)
at com.sun.enterprise.deployment.node.connector.ConnectorNode.writeDescr
iptor(ConnectorNode.java:210)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2
EEDocumentBuilder.java:77)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:120)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
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(Transf
ormerIdentityImpl.java:346)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
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(Transf
ormerIdentityImpl.java:346)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
下面还有……
|
我一直使用j2ee1.3.1,昨天换到1.4,也出现了上面的问题。
如果是1.3.1,你按照那篇文章的方法配置是没有问题的。1.4的问题在sun的论坛上也有讨论,不过好像到目前为止还没有人能给出一个准确的答复,不过你可以参考一下这篇文章:
http://forum.java.sun.com/thread.jsp?forum=136&thread=325699
如果是1.3.1,你按照那篇文章的方法配置是没有问题的。1.4的问题在sun的论坛上也有讨论,不过好像到目前为止还没有人能给出一个准确的答复,不过你可以参考一下这篇文章:
http://forum.java.sun.com/thread.jsp?forum=136&thread=325699