# re: EJB异常:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory[未登录]
2008-04-12 17:43 |
不行加了出现以下的
Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/Element
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.jboss.mx.modelmbean.RequiredModelMBeanInstantiator.instantiate(RequiredModelMBeanInstantiator.java:37)
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:205)
at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:56)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:388)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
at org.jboss.Main.boot(Main.java:187)
at org.jboss.Main$1.run(Main.java:438)
at java.lang.Thread.run(Thread.java:619)
回复 更多评论
# re: EJB异常:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory[未登录]
2008-04-12 18:08 |
终于ok
首选项--java----已安装的jre ,编辑---查看是否添加了jobss中client中一些jar包如jbossall-client.jar,如果没有,可自已添加.
回复 更多评论