Unable to access Tamino X-Application Generator GUI

X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : WinXP Prof
WebContainer : Tomcat 3.3a
JDK Version : 1.3.1_06

Hello,

I have successfully installed Tomcat, started it and did the setup of x-application.

Unfortunately I am not able to access the Generator GUI via http://localhost:8080/xapp/generator/GuiServlet
This causes an HTTP 404 error.

When I request the URL http://localhost:8080/xapp/generator/
I see the files, located in C:\XAPPLICATION_313\generator (e.g. Gui.html).

I have already read the topics belonging to this problem and I think my server.xml is ok.

Could somebody help me?

Best regards

Thorsten

That’s strange.

What do you get if enter the URL http://localhost:8080/? You should see Tomcat’s welcome page.

If this works, please try to start one of X-Applications example applications using http://localhost:8080/xapp. Does this work?

Michael

Software AG Germany, Darmstadt

Dear Michael,

it is really very mysterious.

I entered http://localhost:8080 and I saw the welcome page of Tomcat and under http://localhost:8080/xapp I saw the Index page of the examples (http://localhost:8080/xapp/index.html).

But first I could not execute the examples.


The Hyperlink of the property example (http://localhost:8080/xapp/property/Home.jsp) caused the following error message:

Error: 500
Location: /xapp/property/Home.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException: C:\XAPPLICATION_313\examples\jsp\property\Home.jsp(1,0) Unable to open taglibrary http://www.softwareag.com/xtools/xapplication : C:\XAPPLICATION_313\examples\jsp\property\WEB-INF\jsp\xapplication.tld (Das System kann den angegebenen Pfad nicht finden)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(Unknown Source)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown Source)
at org.apache.jasper.compiler.Parser$Directive.accept(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)


But I tried it several times and suddenly (I do not know why) the examples were running and furthermore I could access the Generator GUI.

But when I try to generate an application the following error message appears:

Application directory created--------------------------------------------------------------------------------Error: 500
Location: /xappgen/GuiServletInternal Servlet Error:
java.lang.NullPointerException
at com.softwareag.tamino.db.API.invocation.http.THTTPInvocation.doInvoke(THTTPInvocation.java:109)
at com.softwareag.tamino.db.API.invocation.TInvocationRetryOnConnectionTimeoutHandler.retryAfterSessionModeUpdate(TInvocationRetryOnConnectionTimeoutHandler.java:71)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.retryAfterSessionModeUpdate(TAbstractInvocation.java:485)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.doTemplateInvoke(TAbstractInvocation.java:381)
at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.invoke(TAbstractInvocation.java:176)
at com.softwareag.tamino.db.API.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:56)
at com.softwareag.tamino.db.API.accessor.TGenericAccessorImpl.execute(TGenericAccessorImpl.java:96)
at com.softwareag.tamino.db.API.connection.TTransactionModeCoordinatorImpl.useLocalTransactionMode(TTransactionModeCoordinatorImpl.java:113)
at com.softwareag.tamino.db.API.connection.TConnectionImpl.useLocalTransactionMode(TConnectionImpl.java:231)
at com.softwareag.xtools.xapplication.store.TaminoStore.query(TaminoStore.java:555)
at com.softwareag.xtools.xapplication.store.TaminoStore.readTsd(TaminoStore.java:1352)
at com.softwareag.xtools.xapplication.store.TaminoStore.readTsd(TaminoStore.java:1320)
at com.softwareag.xtools.xapplication.businessdocument.Schema.read(Schema.java:153)
at com.softwareag.xtools.xapplication.generator.Generator.readSchema(Generator.java:683)
at com.softwareag.xtools.xapplication.generator.Generator.(Generator.java:290)
at com.softwareag.xtools.xapplication.generator.Generator.(Generator.java:257)
at com.softwareag.xtools.xapplication.generator.GuiServlet.generateApplication(GuiServlet.java:594)
at com.softwareag.xtools.xapplication.generator.GuiServlet.callGenerator(GuiServlet.java:520)
at com.softwareag.xtools.xapplication.generator.GuiServlet.fillLayout(GuiServlet.java:415)
at com.softwareag.xtools.xapplication.generator.GuiServlet.processRequest(GuiServlet.java:325)
at com.softwareag.xtools.xapplication.generator.GuiServlet.doPost(GuiServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)

Hello,

Possible reasons for the exception:

- The use of Tomcat 3.3a: we tested X-Application with 3.3.1
- Communication error between Tamino and X-Application

Since the exception comes from the Tamino API for Java (this is the communication layer between Tamino and X-Application), I asked my colleagues who have developed this API about the reason of this exception.

To analyze the error, they need a protocol of your session. How to trace a session, I have made a post before. Have a look at
Protocolling the HTTP transfer between Tamino and X-Application.

However, before tracing the session, could you make a trial with Tomcat 3.3.1?

You can download this version from jakarta-tomcat-3.3.1.zip

Bye,
Christian.

Hello Christian,

there seemed to be a problem with tomcat. I have downloaded and installed tomacat 3.3.1 and now I am able to generate applications.

But unfortunately this is not the happy end, becauese I can not start the generated application.

When I start the Application Launcher (from X-Plorer) I can select my X-Application and press the Start button. After a short while the following error message appears:

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

org.apache.jasper.JasperException: Unable to compile The compiler has run out of stack space. Consider using the “-J-oss” command line option to increase the memory allocated for the Java stack.

at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
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)


I have downloaded and run the httpSniffer, but I was not able to trace the launching process.

My structure.xml is larger than 3 MB. I thought that this could be a problem and so I reduced it to 7 KB, but it did not help. The error message was the same.

Do you have an idea, how I can solve the problem?

Best regards

Thorsten

Hello,

does this error also occur if you start your application from the browser?

1) start Tomcat
2) open a browser
3) invoke the URL http://localhost:8080/dblp/search.jsp

If yes, could you have a look at your JSP search.jsp?

If it’s to large, Tomcat is unable to compile the page because the generated servlet code of Tomcat consists of one mehtod. If this method is to large, the Java compile fails.

In this case, you can edit the structure.xml file. It resides within the directory

%TOMCAT_HOME%\webapps\dblp

where you generated the application. Put a comment around fields you don’t require within the search page of your application, e.g.

<search>
  <input ....>
  <!--
  <input ...>
  <input ...> 
  -->
</search>



Then, invoke the generator and use the regenerate option.

You can do the same think with other pages if you are not able to compile them (e.g. browse or view).

Bye,
Christian.

Reducing the size of your structure file should help. Did you re-generate the JSP pages after you reduced the structure file size?

Michael

Software AG Germany, Darmstadt

Hello,

now my application works.

I have forgotten to regenerate the application after reducing the structure file.

Now I did it and there is no error left.

I thank you all a lot for your help.

Best regards
Thorsten