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