Problems with generated JSP files

I got X-app working, i even generated the webapp, the problem is, when i try to view search.jsp i get the following error:

The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception

org.apache.jasper.JasperException: This absolute uri (http://www.softwareag.com/xtools/xapplication) cannot be resolved in either web.xml or the jar files deployed with this application

how do i resolve this? please help. i’ve tried restarting tomcat, changing the generated directory to the tomcat/webapps dir, nothing seems to work.

-Sumier


X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 4.0
JDK Version : 1.4.0
X-Application Version: 3.1.2, 3.1.1
Tamino Version : 3.1.1
Platform : NT, Win2k, Solaris, …
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

[This message was edited by Christian Freytag on 22 Apr 2002 at 09:42.]

Have you view the log file? It causes of the problem is on the file.

Dave Low

Could you please post a complete error message?
Who is complaining about the URL, Tomcat? When?

Is Tomcat running properly, i.e. if you point your browser to “http:\localhost:8080”, do you
see Tomcat’s welcome page?

Can you start the property example, i.e. do you
get the search page if you point your browser to
"http:\localhost:8080\property\search.jsp" ?

Suppose your application is generated to
… “webapps\yourapp”, do you get a directory
listing if you point your browser to
“http:\localhost:8080\yourapp” ?


Michael

In general you could switch to JDK 1.3.1 and
Tomcat 3.3. There are known problems with your
setup (setter/getter method problems, not what
you described).

Software AG Germany, Darmstadt

Hello,

I changed the icon of this topic from to because the following icons should be used only by the administrators of the assistance forum to flag the current state of a topic.

: an administrator sets this icon for a topic, if X-Application has a bug which has to be fixed.
: he changes this icon, if X-Application has a solution posted as reply to the topic folder or to the contribution list.
: he changes this icon, if the bug is solved for the next version of X-Application.

Thank you for your understanding.

Bye,
Christian.

Ok, this is a Tomcat 4.0.3 error. Its a Http 500 Internal server error: i’m gonna copy and paste the first few lines (its quite a huge error report).
------------------------------------------------


type Exception report

message Internal Server Error

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


exception

org.apache.jasper.JasperException: This absolute uri (http://www.softwareag.com/xtools/xapplication) cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1162)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:758)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)



and it goes on.

i don’t really know what to do about this.
any help would be really appreciated.
thanks

sumier

The problem is due to mis-config for tag library. Does your web.xml contain the following lines?

http://www.softwareag.com/xtools/xapplication
/WEB-INF/jsp/xapplication.tld


and xapplication.tld file exists?
Can you post your web.xml?

Dave Low

yeah, the web.xml file within the web-inf folder of the folder in which i generated the app has the lines you specified. Also there is an xapplication.tld too. i’ll post web.xml below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN”
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd”>


DIAGNOSISfalse


CODEDtrue


TAMINO_URLhttp://localhost/tamino/cars


TAMINO_COLLECTION1Accessories


TAMINO_DOCTYPE1accessories


USER_IDsumier


PASSWORDsumier


http://www.softwareag.com/xtools/xapplication
/WEB-INF/jsp/xapplication.tld

It seems to me that everything is ok. You can try
1) Stop tomcat
2) Delete all the files and directory under work
3) Restart tomcat again
To see whether the error still exist.

Dave Low

I have switched to JDK 1.3 & Tomcat 3.3 is generating the following error:

Error: 500
Location: /demp/search.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException: E:\tomcat3\webapps\ROOT\demp\search.jsp(4,8) Unable to open taglibrary http://www.softwareag.com/xtools/xapplication : Could not locate TLD http://www.softwareag.com/xtools/xapplication
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:734)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java:790)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:731)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:479)

The TLD file that it cannot find is already present in the directory. I cannot seem to figure out what is wrong. Are there any environment variables that I may have to set, like put any jar files in the classpath?
Thanks,
Sumier

Hi Sumier,

I think I’ve the solution to your problem:

You placed your webapp directory in the Tomcat [TOMCAT_HOME]/webapps/ROOT directory which has its own WEB-INF subdir which conflicts with the one used for your application.

Solution:
Just move your web application up one level into [TOMCAT_HOME]/webapps
Please, refrain from using the ROOT subdir for X-Applications

Thank you for your contribution

Stefan Schwalm
Software AG, Darmstadt

Hi schwalm!
thanks for the help, it finally worked. i was going out of my mind trying to figure it out.

:slight_smile: