500 error

Post any questions regarding Installing or Upgrading to V5, including problems starting and using the Ebase Server or Designer

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

500 error

#1

Postby Segi » Tue Aug 11, 2015 11:09 pm

I started the upgrade from v4 to 5 from the very beginning. Everything went smoothly and I updated the JRE.

I am now getting this error when I try to visit the ebase server ip in my browser. This error seems to only be related to jsp. When you visit <myserverip>, I use JSP to redirect to my eBase login page which is <myserverip>/ufs/ufsmain?formid=LOGIN. If I type the URL into the browser directly, eBase does display the login page.

HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
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:722)

root cause

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.net.URLClassLoader.findClass(Unknown Source)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
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:722)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.
Apache Tomcat/7.0.27
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#2

Postby Hovik » Thu Aug 13, 2015 9:41 am

Hi Segi,

Please check the timestamp of the compiled jsp in folder UfsServer\tomcat\work\Catalina\localhost\ufs\org\apache\jsp

I suspect it will be a date prior to your upgrade.

Delete contents of this folder and try again. If you see a new one being created here (the complied jsp) but it still fails, please let me have your jsp code.

Regards,
Hovik
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#3

Postby Segi » Thu Aug 13, 2015 6:34 pm

I delete this contents of this folder and the problem persists.

This is my JSP:

EDIT: The code doesn't display properly here even when wrapped with tags so I paste it here http://pastebin.com/H8sFzWNC

As you can see, it does nothing more than a simple redirect. Since this is running locally, I use my local IP address here but normally it redirects to my production eBase server

I seem to be getting this error for any JSP
0 x

LKirby
Ebase User
Posts: 37
Joined: Wed Mar 13, 2013 11:33 am
Contact:

#4

Postby LKirby » Fri Aug 14, 2015 7:59 am

Rather than using a meta tag, you could use a simpler redirect instead:

https://gist.github.com/anonymous/0c369f01d23834ae42a0

The / in the URL refers to the root of the current webapp context so it would redirect to http://hostname/ufs/ufsmain?formid=HR

This doesn't help with the ClassNotFoundException error you're getting but its a cleaner way to do a redirect in jsp :)
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#5

Postby Hovik » Fri Aug 14, 2015 2:01 pm

Are jsps compiling ok? (in UfsServer\tomcat\work\Catalina\localhost\ufs\org\apache\jsp)

Any server logs showing related errors?
0 x


Who is online

Users browsing this forum: No registered users and 0 guests