Hi I get this error when a lok up of remote EJB occurs? Any idea?

type Exception repor StatelessSessionEJB.jar
<http://apache-geronimo.328035.n3.nabble.com/file/n3990898/StatelessSessionEJB.jar>
  
ApplicationClient.war
<http://apache-geronimo.328035.n3.nabble.com/file/n3990898/ApplicationClient.war>
 
t

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: [17] in the generated java file:
[D:\geronimo-tomcat7-javaee6-web-3.0.2-20130716.224928-10-bin\geronimo-tomcat7-javaee6-web-3.0.2-SNAPSHOT\var\catalina\work\Catalina\0.0.0.0\ApplicationClient\org\apache\jsp\passVariables_jsp.java]
Only a type can be imported. statelessejb.RegisterBeanRemote resolves to a
package

An error occurred at line: 15 in the jsp file: /passVariables.jsp
RegisterBeanRemote cannot be resolved to a type
12: prop.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.RemoteInitialContextFactory");
13:     prop.put("java.naming.provider.url", "ejbd://localhost:4201");
14: Context context = new InitialContext(prop);
15: RegisterBeanRemote
myejb=(RegisterBeanRemote)context.lookup("RegisterBeanRemote");
16: String s= request.getParameter("firstname");
17: String s1= request.getParameter("lastname");
18: String s2= request.getParameter("sex");


An error occurred at line: 15 in the jsp file: /passVariables.jsp
RegisterBeanRemote cannot be resolved to a type
12: prop.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.RemoteInitialContextFactory");
13:     prop.put("java.naming.provider.url", "ejbd://localhost:4201");
14: Context context = new InitialContext(prop);
15: RegisterBeanRemote
myejb=(RegisterBeanRemote)context.lookup("RegisterBeanRemote");
16: String s= request.getParameter("firstname");
17: String s1= request.getParameter("lastname");
18: String s2= request.getParameter("sex");


Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
        
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:668)



Thanks and Regards
Rajender



--
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/remote-lookup-fails-tp3990898.html
Sent from the Users mailing list archive at Nabble.com.

Reply via email to