[Beginners Corner] - Unable to compile class for JSP
by shenz
Dear all.
I've the followinp problem.
I'm using annotation attributes and no ejb-jar.xml
General things: in the ear there is available
META-INF/application.xml
META-INF/MANIFEST.MF
Shop.jar
Shop.war
In Shop.jar all entities and sessions beans are available.
Shop.war contains
META-INF/MANIFEST.MF
and a directory calles web
In this subdirectory "web" the index.jsp file is available as well as the helper classes of objects which are create in the jsp, e.g. the class "Basket"
With JBOSS 4.2.2.GA as well as JBOSS 4.2.3.GA everything worked well, i.e. the deploying as well as the calling of the index.jsp
But with JBOSS 5.1.0.GA after having deployed the EAR file and calling the according jsp, I get error messages like:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 74 in the jsp file: /web/index.jsp
Login cannot be resolved to a type
72: wsr = (WebShopRemote)
73: session.getAttribute("WebShopBean");
74: Basket basket = new Basket();
75: basket.getPage(request, out, session, response, wsr);
76: }
...
Does somebody has an idea what might be the problem? Or does somebody has a small EJB example in connnection with a war file and a jsp?
Thx,
Jim
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236146#4236146
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236146
16 years, 10 months
[Security & JAAS/JBoss] - ExtendedFormAuthenticator problem
by abickford4523
Hello,
I've followed the wiki article http://www.jboss.org/community/wiki/ExtendedFormAuthenticator so that I can get at the j_exception session variable and provide my users with some useful feedback as to why they couldn't login to our app.
Only problem is, if I provide an invalid username/password, I get the following exception:
| java.lang.IllegalStateException: Security Context is null
| at org.jboss.web.tomcat.security.SecurityAssociationActions$GetAuthExceptionAction.run(SecurityAssociationActions.java:172)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.web.tomcat.security.SecurityAssociationActions.getAuthException(SecurityAssociationActions.java:308)
| at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.populateSession(ExtendedFormAuthenticator.java:182)
| at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.forwardToErrorPage(ExtendedFormAuthenticator.java:125)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:260)
| at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.authenticate(ExtendedFormAuthenticator.java:88)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
|
|
Our login module extends AbstractServerLoginModule and otherwise works great. We do have our own custom Principal object. Any idea why this exception might be getting thrown?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236145#4236145
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236145
16 years, 10 months