当前位置: 技术问答>java相关
急!!!请教Sun j2ee 1.4 server的安装和配置
来源: 互联网 发布时间:2017-04-17
本文导语: 我的环境是 Windows XP/j2ee1.4/jdk1.4 我在学习j2ee tutorial,我使用1.3时用j2ee -bose启动j2ee server没有问题!可使用j2ee1.4时报下面的错!大家遇到没有,解决就给分!不够可以再加! org.w3c.dom.DOMException: DOM003 Namespace error ...
我的环境是
Windows XP/j2ee1.4/jdk1.4
我在学习j2ee tutorial,我使用1.3时用j2ee -bose启动j2ee server没有问题!可使用j2ee1.4时报下面的错!大家遇到没有,解决就给分!不够可以再加!
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)
Windows XP/j2ee1.4/jdk1.4
我在学习j2ee tutorial,我使用1.3时用j2ee -bose启动j2ee server没有问题!可使用j2ee1.4时报下面的错!大家遇到没有,解决就给分!不够可以再加!
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)
|
呵呵,大家把xercesImpl.jar反编译一下,去掉里面对 namespace的几个判断代码就可以了
|
查看sun公司的开发者论坛,据有人说是C:j2sdkee1.4libendorsedxercesImpl.jar包有问题
http://expert.csdn.net/Expert/topic/1274/1274016.xml?temp=.544552
http://expert.csdn.net/Expert/topic/1274/1274016.xml?temp=.544552