File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Godaddy - Struts Tiles Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Godaddy - Struts Tiles Problems" Watch "Godaddy - Struts Tiles Problems" New topic
Author

Godaddy - Struts Tiles Problems

santiago esteva
Greenhorn

Joined: Jul 13, 2008
Posts: 5
HI everyone. I was hoping to find somebody that had solved this problem.
I am deploying a CRUD application in Godaddy. I have the shared Linux hosting plan with Java enabled. Godaddy Details: JDK 1.5 - Tomcat 5.0.27
I am using Struts 1.3.8 and Tiles.
The War file is exploded and when I try to access the application: I get the following:

type Exception report

message

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

exception

org.apache.jasper.JasperException: Module 'null' not found.
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor258.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

root cause

java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:364)
org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:285)
org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:289)
org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:268)
org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:82)
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor258.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

Unfortunately, in Godaddy you can only write to /tmp; therefore, I can not use Log4 to see a more detailed log.

For the error message it seems to be complaining about the tags but the thing is that I tested the application locally with the same variables and it works just fine.
If I try to access other part of the application the errors are very similar, about tags and MessageResource.
IN Struts 1.3.8 there is no need to define taglibs as long as you have the proper .jar included. Just in case, below is the web.xml and struts-config.xml:

web.xml:


struts-config.xml:

[ July 13, 2008: Message edited by: santiago esteva ]
[ July 13, 2008: Message edited by: santiago esteva ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
santiago esteva
Greenhorn

Joined: Jul 13, 2008
Posts: 5
I am terribly sorry about the incident. I have read the rules and I will make sure to follow them. Thanks for the heads-up!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This could mean that Struts just isn't finding the struts-config.xml file. Here's a thread in another discussion group that seems to indicate this:

http://www.junlu.com/msg/301482.html


Merrill
Consultant, Sima Solutions
santiago esteva
Greenhorn

Joined: Jul 13, 2008
Posts: 5
Thanks for the pointer. I verified the web.xml and got into the File Manager to see if the struts-config was there and everything seems to be in place.
In the wbe.xml I have:


While I was waiting for some miracle...I tried EATJ free account to test the app. I deployed it and it worked without any change. It seems to be a problem at Godaddy then. This is actually the worst notice since I have all my web sites in Godaddy and I was trying to avoid hiring another service since I am already paying Godaddy. They are good at hosting sites but it seems I am doomed on regards to Java apps.

I might try talking to support services...

If you have any other idea it will be extremely welcomed.

Thanks for your help!!! I am glad having joined this forum.
ju zhi
Greenhorn

Joined: Jul 13, 2008
Posts: 2
is too long


hello .am from Chinese .
ken amy
Greenhorn

Joined: Jul 13, 2008
Posts: 7

[ July 13, 2008: Message edited by: ken amy ]
 
wood burning stoves
 
subject: Godaddy - Struts Tiles Problems