• Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent...help needed.  RSS feed

 
Red Anil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is exactly what the exception is
500 Servlet Exception
java.lang.ClassCastException
at _directories__jsp._jspService(_directories__jsp.java, Compiled Code)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:176)
at com.caucho.server.http.Invocation.service(Invocation.java:278)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:214)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:99)
at com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:76)
at RouterServlet.service(RouterServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocation.java:278)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java, Compiled Code)
at com.caucho.server.TcpConnection.run(TcpConnection.java, Compiled Code)
at java.lang.Thread.run(Thread.java:479)

this is the same JSP which works well when on JavaWebServer...i ported my application on apache/resin...not all JSP give me this error...only ones which i had modified and complied while on resin...in my System Classpath i had changed my classes directory from d:\Javawebserver2.0\classes to d:\resin\my-apps\web-inf\classes...i have all my classes under proper directory structure(packages)in web-inf/classes folder... as far as i know resin reads all class files from web-inf\classes directory by default...but if i remove the classpath setting from my System classpath i get this error.-
500 Servlet Exception
/rcom/directories.jsp:4: jsp:useBean can't find class `com.sbm.handler.GlobalBean'
i hope i was descriptive...hoping for a reply...thanx in advance.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Servers are case sensitive now for directory names. the directory should be
\WEB-INF\classes
 
Red Anil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have checked for my directory names...that is it is /WEB-INF/classes...plz help me.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The directory doen't look quite right still. Which version of Resin are you using? The directory structure should begin with < RESIN_ROOT > from looking at what you have that would be the d:\resin Under that should be a directory name /webapps This is where your webapps go each one will have it's own directory. So, it looks like this should be
d:\resin\webapps\my-apps
And your classes would then go under
d:\resin\webapps\my-apps\WEB-INF\classes
And your JSP's under
d:\resin\webapps\my-apps
The url would then look like
<a href="http://localhost:8080/my-apps/<i rel="nofollow">jspFileName</i>" target="_blank">http://localhost:8080/my-apps/jspFileName
 
Red Anil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for ur reply ...i have resin2.0.4...but i dont think it to be a problem...i have my resin.conf set accordingly...but this problem has risen while porting...cause all my pages in my application work well other than this...i m not able to see at exactly what line the error is occuring in JSP as resin doesnt show that...thanx for help in advance.
[ March 04, 2002: Message edited by: Red Anil ]
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Red Anil:
...but i dont think it to be a problem...[ March 04, 2002: Message edited by: Red Anil ]

Well, try it and see if it works or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!