Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2007, 08:28 PM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default java.lang.RuntimeException: System properties file

I am deploying a new web application and I had to change the package name for the class files and then redeploy them. Since I changed the package name the jsp pages are unable to find the class files. The application compiles perfectly and there is no problem then with the JSP. When loading the app I get this error:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: java.lang.ExceptionInInitializerError
        org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:850)
        org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:779)
        org.apache.jsp.index_jsp._jspService(index_jsp.jav a:91)
        org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)
        org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:388)
        org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)


root cause

java.lang.ExceptionInInitializerError
        website.formBuilderApp.FormsPostForm.<init>(FormsP ostForm.java:172)
        org.apache.jsp.index_jsp._jspService(index_jsp.jav a:64)
        org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)
        org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:388)
        org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)


root cause

java.lang.RuntimeException: System properties file "C:\geronimo5_2_0_1\bin\.\applications\webteam.pro perties" could not be loaded: .\applications\webteam.properties (The system cannot find the path specified).
        website.utils.SystemProps.<init>(SystemProps.java: 33)
        website.utils.SystemProps.getInstance(SystemProps. java:14)
        website.utils.MailMgr.<clinit>(MailMgr.java:45)
        website.formBuilderApp.FormsPostForm.<init>(FormsP ostForm.java:172)
        org.apache.jsp.index_jsp._jspService(index_jsp.jav a:64)
        org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)
        org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:388)
        org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:320)
        org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet .java:806)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0-snapshot logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0-snapshot

Any inputs will be much appreciated.

Thanks,
Manisha


 
Old November 22nd, 2007, 12:17 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

If the properties file is part of your build, then try placing the webteam.properties file in the class path, usually if you are using the tomcat server then you'll place these properties files in TOMCAT_HOME/shared/classes directory.


- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
java.lang.StackOverFlowError mrafeeq J2EE 1 August 10th, 2006 03:34 PM
java.lang.Runtime mudasirw J2EE 1 August 2nd, 2005 02:14 AM
Java Properties file allang Servlets 1 July 19th, 2004 08:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.