当前位置: 技术问答>java相关
jb6开发EJB的几个问题!一定给分~~
来源: 互联网 发布时间:2015-08-17
本文导语: 1、在JB6中,BAS和WEBLOGIC是两个都要安装,还是只装任意一个就行了! 2、我用JB6+Weblogic6.1做EJB,我完全用向导生成的EJB,编译时出现下列提示: "zwhejb.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC util...
1、在JB6中,BAS和WEBLOGIC是两个都要安装,还是只装任意一个就行了!
2、我用JB6+Weblogic6.1做EJB,我完全用向导生成的EJB,编译时出现下列提示:
"zwhejb.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.
"zwhejb.ejbgrpx":
"zwhejb.ejbgrpx":
"zwhejb.ejbgrpx":
2、我的WEBLOGIC6.1启动时提示7001被JVM_BIND占用了,我把端口改为8001和8002,运行EJB时,提示下列错误:
The WebLogic Server did not start up properly.
Exception raised: weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.lang.NumberFormatException: @LISTEN_PORT]
java.lang.NumberFormatException: @LISTEN_PORT
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.(Integer.java:549)
at weblogic.management.internal.Helper.getTypedValue(Helper.java:828)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttributes(ConfigurationParser.java:308)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(ConfigurationParser.java:185)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
at weblogic.management.AdminServer.configure(AdminServer.java:171)
at weblogic.management.Admin.initialize(Admin.java:233)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.lang.NumberFormatException: @LISTEN_PORT]
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttributes(ConfigurationParser.java:313)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(ConfigurationParser.java:185)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
at weblogic.management.AdminServer.configure(AdminServer.java:171)
at weblogic.management.Admin.initialize(Admin.java:233)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
2、我用JB6+Weblogic6.1做EJB,我完全用向导生成的EJB,编译时出现下列提示:
"zwhejb.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.
"zwhejb.ejbgrpx":
"zwhejb.ejbgrpx":
"zwhejb.ejbgrpx":
2、我的WEBLOGIC6.1启动时提示7001被JVM_BIND占用了,我把端口改为8001和8002,运行EJB时,提示下列错误:
The WebLogic Server did not start up properly.
Exception raised: weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.lang.NumberFormatException: @LISTEN_PORT]
java.lang.NumberFormatException: @LISTEN_PORT
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.(Integer.java:549)
at weblogic.management.internal.Helper.getTypedValue(Helper.java:828)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttributes(ConfigurationParser.java:308)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(ConfigurationParser.java:185)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
at weblogic.management.AdminServer.configure(AdminServer.java:171)
at weblogic.management.Admin.initialize(Admin.java:233)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.lang.NumberFormatException: @LISTEN_PORT]
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttributes(ConfigurationParser.java:313)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(ConfigurationParser.java:185)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:606)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:590)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
at weblogic.management.AdminServer.configure(AdminServer.java:171)
at weblogic.management.Admin.initialize(Admin.java:233)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
|
1、只需要安装weblogic即可。
2、检查一下,去掉Temp目录中的空格,看一下corba是否配置(其实这个可以不配,但是如果你去了Temp目录中的空格后不能解决,不妨配置一下,可以就用Weblogic的corba)。
3、先弄清楚7001被谁占了,是不是另一个weblogic?多半是在服务中。不必要改为8001的。
2、检查一下,去掉Temp目录中的空格,看一下corba是否配置(其实这个可以不配,但是如果你去了Temp目录中的空格后不能解决,不妨配置一下,可以就用Weblogic的corba)。
3、先弄清楚7001被谁占了,是不是另一个weblogic?多半是在服务中。不必要改为8001的。