Fedora Linux Support Community & Resources Center
  #1  
Old 8th August 2006, 08:20 PM
sentry Offline
Registered User
 
Join Date: Jul 2005
Posts: 591
Help with struts app

Okay, so I've got tomcat5 and struts installed and I'm trying something very simple...

Basically I am copying the struts-blank directory to a new directory location for my first struts web app. I use cp -Rp struts-blank new-project and everything looks like it copies over cleanly links and all.

When I try to access this new site I get this error:
Code:
type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/struts-logic.tld
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.15.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)

root cause

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/struts-logic.tld
	org.apache.jasper.compiler.TldLocationsCache.init(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.TldLocationsCache.getLocation(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.JspCompilationContext.getTldLocation(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Parser.parseDirective(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Parser.parseElements(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Parser.parse(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.ParserController.doParse(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.ParserController.parse(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Compiler.generateJava(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.JspCompilationContext.compile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.15.jar.so)
	org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.15.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
I'm new to struts but not a new developer and this is confusing to me. It looks like it should work indeed some of the documentation I have seen recomends that you copy struts-blank to a new location to use as a skeleton for your app. So what am I doing wrong?

I just hope that this is not an omen for what's to come
Reply With Quote
  #2  
Old 9th August 2006, 07:57 PM
sentry Offline
Registered User
 
Join Date: Jul 2005
Posts: 591
Anyone have any idea?
Reply With Quote
  #3  
Old 10th August 2006, 06:01 PM
sentry Offline
Registered User
 
Join Date: Jul 2005
Posts: 591
Answered my own question.

I had installed a JRE from SUN onto my machine as per Stanton Finley's tutorial http://stanton-finley.net/fedora_cor...otes.html#Java.

I installed the official java from SUN using jpackage and undid the changes I did to get my old JRE up and voila, it works.

I'm not certain if gcj is the culprit or the fact that I didn't have a proper SDK for Java on my machine. I'm still refreshing my Java skills/learning. But I am so happy right now

So if anyone else has a problem with struts apps similar to mine, try installing the latest Java with jpackage.
Reply With Quote
Reply

Tags
app, struts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Current GMT-time: 19:20 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat