struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Force clean / reload a webapp
Date Mon, 16 Apr 2007 12:56:04 GMT
please display contents of /WEB-INF/struts-config.xml
M-
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "piloupy GOTTAPIL" <piloupy@gmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, April 16, 2007 8:49 AM
Subject: Re: Force clean / reload a webapp


> Hi Nuwan,
>
> It helps me a lot. I'm working on it : I'm writing an ant script for
> building a .war and make tests on the production server.
>
> What you said was right : I need to recompile the classes to make it
> work correctly. eclipse is configured to rebuild automatically, but it
> seems to only work with a standard java application. And what has
> mislead me, is that eclipse builds the classes correctly the first
> time (when I just create the .java files).
>
> Actually, right now, the .war file doesn't seem to be quite
> appreciated by the server ^^;
>
> Here is the exception when I access to the index.jsp :
>
> root cause
>
> java.lang.NullPointerException: Module 'null' not found.
> org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:743)
> org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:360)
> org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:281)
> org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:286)
> org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:265)
> org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(org.apache.jsp.index_jsp:82)
> org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:58)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> I think a module (tiles plugin maybe) isn't configured properly
> somewhere... I'm investigating the darkness of the mist... :)
>
> Thank you a lot, Nuwan,
>
> piloupy
>
> On 4/16/07, Nuwan Chandrasoma <mymailnot@gmail.com> wrote:
>> Hi,
>>
>> Only .jsp file are complied at runtime by a server. your .java files will
>> not be complied by the server. thats why we compile our .java files and 
>> put
>> them in the WEB-INF/classes folder or package it in a .war file. cleaning
>> these files will not make your webapp reload. if you have done any 
>> changes
>> to the action classes or other java files you have to complie them again 
>> and
>> put them in the WEB-INF/classes or create a .war and deploy it in your
>> server. but if you do any chages to the .jsp files they will get complied
>> automaticaly at run time when you are access that page.
>>
>> Hope this would help you.
>>
>> Thanks,
>>
>> Nuwan.
>>
>> ----- Original Message -----
>> From: "Nuwan Chandrasoma" <mymailnot@gmail.com>
>> To: "Struts Users Mailing List" <user@struts.apache.org>
>> Sent: Monday, April 16, 2007 2:44 PM
>> Subject: Re: Force clean / reload a webapp
>>
>>
>> > Hi,
>> >
>> > dont you create a .war file and deploy your application? , if you 
>> > delete
>> > the files inside /WEB-INF/classes you will loose all the .class files.
>> > make sure you have auto build enabled in eclipse and also if you delete
>> > the files inside /WEB-INF/classes folder in production sever you will
>> > loose all your .class files. which means your webapp will not work as 
>> > you
>> > have no complie code.
>> >
>> > Thanks,
>> >
>> > Nuwan.
>> >
>> > ----- Original Message -----
>> > From: "piloupy GOTTAPIL" <b7ixbn0873hnb0x2@yopmail.com>
>> > To: <user@struts.apache.org>
>> > Sent: Monday, April 16, 2007 11:30 AM
>> > Subject: Force clean / reload a webapp
>> >
>> >
>> >> Hi,
>> >>
>> >> I'm developing a site using struts (bean, tiles, logic taglibs) and
>> >> after cleaning my webapp by deleting the directories /work and
>> >> /WEB-INF/classes, when I access to my site, there's only the header
>> >> which is displayed.
>> >>
>> >> The only way to repair this problem is to remove all my librairies
>> >> from eclipse, access to a page (which cause exceptions of course,
>> >> since there're no librairies anymore), put back my librairies in
>> >> eclipse, reload context of my webapp, and then it works.
>> >>
>> >> The problem is that I have the same problem on the production server,
>> >> and there's not eclipse to make such a manipulation.
>> >>
>> >> Do you know why I have this problem, and how I can clean or force a
>> >> reload of my webapp ?
>> >>
>> >> Thanks,
>> >>
>> >> piloupy
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message