HTTP状态500 - 企业Java bean部署中的内部服务器错误

时间:2015-08-07 15:45:20

标签: java httpexception servletexception

HTTP状态500 - 尝试使用netbeans运行glassfish服务器

中的企业Java bean部署Web应用程序时出现内部服务器错误
  

HTTP状态500 - 内部服务器错误

输入:异常报告

消息:内部服务器错误

说明:服务器遇到内部错误,无法完成此请求。

异常

javax.servlet.ServletException: Error instantiating servlet class com.registaration.registrationcontroller
root cause

com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class com.registaration.registrationcontroller
root cause

com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.registaration.registrationcontroller/registrationservice,Remote 3.x interface =com.registration.registrationserviceRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.registration.registrationserviceRemote,refType=Session into class com.registaration.registrationcontroller: Lookup failed for 'java:comp/env/com.registaration.registrationcontroller/registrationservice' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
root cause

javax.naming.NamingException: Lookup failed for 'java:comp/env/com.registaration.registrationcontroller/registrationservice' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=com.registaration.registrationcontroller/registrationservice,Remote 3.x interface =com.registration.registrationserviceRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.registration.registrationserviceRemote,refType=Session' .  Actual (possibly internal) Remote JNDI name used for lookup is 'com.registration.registrationserviceRemote#com.registration.registrationserviceRemote' [Root exception is javax.naming.NamingException: Lookup failed for 'com.registration.registrationserviceRemote#com.registration.registrationserviceRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: com.registration.registrationserviceRemote#com.registration.registrationserviceRemote not found]]]
root cause

javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=com.registaration.registrationcontroller/registrationservice,Remote 3.x interface =com.registration.registrationserviceRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.registration.registrationserviceRemote,refType=Session' .  Actual (possibly internal) Remote JNDI name used for lookup is 'com.registration.registrationserviceRemote#com.registration.registrationserviceRemote' [Root exception is javax.naming.NamingException: Lookup failed for 'com.registration.registrationserviceRemote#com.registration.registrationserviceRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: com.registration.registrationserviceRemote#com.registration.registrationserviceRemote not found]]
root cause

javax.naming.NamingException: Lookup failed for 'com.registration.registrationserviceRemote#com.registration.registrationserviceRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: com.registration.registrationserviceRemote#com.registration.registrationserviceRemote not found]
root cause

javax.naming.NameNotFoundException: com.registration.registrationserviceRemote#com.registration.registrationserviceRemote not found
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1 logs.

GlassFish Server开源4.1版

0 个答案:

没有答案