Hi,
 
I had this error before. It seems to be a bug in the Jrun. please double check if the 
old version of jar files from struts1.0 are in the class path for jrun. It will even 
cause problems when an another web application running on the same Jrun with old 
version of struts.
 
I also run into problems with Log4j , can solve this by puting Log4j.jar unter 
server/lib folder, I knew it is not very nice.
 
HTH,
Alvin
 

David Liles <[EMAIL PROTECTED]> wrote:
I've double checked the path and I have the file in the classes\resources folder named 
application.properties. It is all lower case.... so I have no idea why it isn't 
picking it up....



-----Original Message-----
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 11:57 AM
To: Struts Users Mailing List
Subject: RE: Configuration Trouble


David,

Your message resources statement:



Seems to requires this exact file name:
"WEB-INF/classes/resources/application.properties"

Did you perhaps name it with a capital "A? starting
"Application.resources" and forget to update your
struts-config.xml file? The JRUN error says it is
the message resources (that config line above) which
has no resources file, hence the struts app failing.

Regards,
David

-----Original Message-----
From: David Liles [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 12:40 PM
To: Struts Users Mailing List
Subject: RE: Configuration Trouble


I have also found this error in the JRun event log. This error occurs when I
attempt to start the web app.

11/09 11:35:54 error (JRun) Could not pre-load servlet: action
[javax.servlet.ServletException: Could not instantiate
org.apache.struts.action.ActionServlet]
[1]java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:236)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:190)
at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17
7)
at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308)
at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196)
at allaire.jrun.ServletService.init(ServletService.java:66)
at allaire.jrun.ServletService.init(ServletService.java:31)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:236)
at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621)
at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
at allaire.jrun.ServletService.init(ServletService.java:66)
at allaire.jrun.ServletService.init(ServletService.java:31)
at JRun.main(JRun.java:169)
[0]javax.servlet.ServletException: Could not instantiate
org.apache.struts.action.ActionServlet
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:242)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:190)
at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17
7)
at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1308)
at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java:979)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java:196)
at allaire.jrun.ServletService.init(ServletService.java:66)
at allaire.jrun.ServletService.init(ServletService.java:31)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:236)
at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java:621)
at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java:187)
at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
at allaire.jrun.ServletService.init(ServletService.java:66)
at allaire.jrun.ServletService.init(ServletService.java:31)
at JRun.main(JRun.java:169)

-----Original Message-----
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 11:23 AM
To: Struts Users Mailing List
Subject: RE: Configuration Trouble


David,

What classes or taglibs are called from that index.jsp?

Regards,
David

-----Original Message-----
From: David Liles [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: Configuration Trouble


I am having trouble getting a struts web app to work on a JRun 3.0 SP2a
server.

When I develop and test locally (JBuilder 7) I do not have any problems, but
as soon as I deploy the war to the JRun server I get errors.

All of the necessary jar files are in the web app/WEB-INF/lib folder and not
in the JRun servers/lib folder.

I'll include the error message and struts-config.xml file..... I've tried to
contact Macromedia but haven't gotten any response. Is anyone using JRun
with Struts?

Thanks

error message:

 /: javax.servlet.ServletException: Exception thrown on line '4'
from page 'E:\\www\\dev_minimoon\\index.jsp'. java.lang.NoClassDefFoundError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at
java.lang.reflect.Constructor.newInstance(Unknown Source) at
java.lang.Class.newInstance0(Unknown Source) at
java.lang.Class.newInstance(Unknown Source) at
allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(JRunJSPStaticHelpers.
java:47) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:38) at
allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34
) at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:177) at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88) at allaire.jrun.file.FileServlet.service(FileServlet.java:179) at
allaire.jrun.servlet.JRunServletPool.service(JRunServletPool.java:92) at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1024) at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:936) at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88) at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1163) at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1153) at
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) at
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:382) at
allaire.jrun.ThreadPool.run(ThreadPool.java:272) at
allaire.jrun.WorkerThread.run(WorkerThread.java:75) 


struts-config.xml:


"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>











/>
/>



















parameter="/admin/logon.jsp"/>
type="org.apache.struts.actions.ForwardAction"
parameter="/admin/supplier/add_supplier.jsp"/>
type="org.apache.struts.actions.ForwardAction"
parameter="/admin/category/add_category.jsp"/>
type="org.apache.struts.actions.ForwardAction"
parameter="/admin/item/add_item.jsp"/>
parameter="/nav.jsp"/>
type="org.apache.struts.actions.ForwardAction" parameter="/admin/nav.jsp"/>
parameter="/main.jsp"/>

type="biz.minimoon.actions.LogonAction"
name="logonForm"
scope="request"
validate="true"
input="/admin/logon.jsp">


type="biz.minimoon.actions.UpdateItemAction"
name="updateItem"
scope="request"
validate="false"
input="/admin/display/edit_item.jsp">


type="biz.minimoon.category.actions.UpdateCategoryAction"
name="updateCategory"
scope="request"
validate="false"
input="/admin/category/edit_category.jsp">


type="biz.minimoon.supplier.actions.UpdateCategoryAction"
name="updateSupplier"
scope="request"
validate="false"
input="/admin/supplier/edit_supplier.jsp">


type="biz.minimoon.actions.AddSupplierAction"
name="addSupplier"
scope="request"
validate="true"
input="/admin/supplier/add_supplier.jsp">


type="biz.minimoon.actions.AddCategoryAction"
name="addCategory"
scope="request"
validate="true"
input="/admin/category/add_category.jsp">


type="biz.minimoon.item.actions.AddItemAction"
name="addItem"
scope="request"
validate="true"
input="/admin/item/add_item.jsp">


type="biz.minimoon.item.actions.DisplayItemAction"
scope="request"
validate="false">
path="/admin/display/show_items.jsp" />


type="biz.minimoon.actions.ListCategoriesAction"
scope="request"
validate="false">
path="/admin/category/show_categories.jsp" />

type="biz.minimoon.supplier.actions.ListSuppliersAction"
scope="request"
validate="false">
path="/admin/supplier/show_suppliers.jsp" />

type="biz.minimoon.category.actions.GetCategoryAction"
scope="request"
validate="false">
path="/admin/category/edit_category.jsp" />

type="biz.minimoon.supplier.actions.GetSupplierAction"
scope="request"
validate="false">
path="/admin/supplier/edit_supplier.jsp" />

type="biz.minimoon.item.actions.GetItemAction" scope="request"
validate="false">














---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Reply via email to