IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Error when accessing Xapplication

webMethods Community Member

webMethods Community MemberMon December 01, 2003 01:43 PM

  • 1.  Error when accessing Xapplication

    Posted Tue November 18, 2003 02:47 PM

    X-Application Version: 3.1.3
    TaminoVersion :4.1.1,
    Platform Solaris 8,
    WebContainer : Tomcat 4.1.29
    JDK Version : 1.4.1,

    I receive an http Status 404 when attempting to access http://localhost:8080/xapp.

    I have updated the version of tomcat according to the previous post. http://tamino.forums.softwareag.com/viewtopic.php?p=13883

    Any other suggestions on why I’m receiving the 404 error.

    Thanks.


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: Error when accessing Xapplication

    Posted Tue November 18, 2003 03:23 PM

    Hello,

    1) Please try out whether you Tomcat is running in general on port 8080:
    - Insert the URL ‘http://localhost:8080’ within your Browser
    => The standard page of Tomcat should be shown.
    If this URL fails look into the server.xml file of your Tomcat configuration directory and check which port is used.
    Start the Tomcat in a console:
    1.1) Change to …/tomcat…/bin
    1.2) Invoke “catalina run”
    1.3) Check if there is an error message when Tomcat is started


    2) If the 1) was successful, look into the directory

    .../tomcat-.../webapps



    Is there a file called xapp.xml?

    If no, an installation step of X-Application failed. There is one step that creates the context files to your Tomcat webapps directory.

    If the file exists, please open it with a text editor and check the attribute value ‘docBase’ of the element ‘Context’. Does this path refer to a directory of your X-Application installation?

    ...xapplication_...\examples\jsp\ROOT



    If also the check 2) is ok, I have no other idea what could be wrong with your installation.

    Bye,
    Christian.


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: Error when accessing Xapplication

    Posted Tue November 18, 2003 05:45 PM

    step 1 is succesful. I get the Tomcat main page.
    step 2 however: there is no xapp.xml file. Is it possible to perform that one steop of the install, the step that creates the context files to the Tomcat webapps directory?

    Thanks


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: Error when accessing Xapplication

    Posted Wed November 19, 2003 09:18 AM

    Hello,

    there is one command that creates the xml file within your Tomcat home directory. To generate the file:

    1) Open a console.
    2) Change to the X-Application installation directory
    3) invoke ‘build1 setup.tomcat’

    Is this step successful and does your webapps directory contain a list of XML files starting with xapp… ?

    If not, please post the text of the console output to the community.

    Many thanks.

    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino


  • 5.  RE: Error when accessing Xapplication

    Posted Wed November 19, 2003 02:04 PM

    When I try to execute ‘build1 setup.tomcat’ I get build1:not found. I check the permission on this file and they are “wide open” 777.

    I even tried ./build1 setup.tomcat and build setup.tomcat.

    What am I doing wrong?


    #Tamino
    #API-Management
    #webMethods


  • 6.  RE: Error when accessing Xapplication

    Posted Wed November 19, 2003 02:23 PM

    Hi,

    you’ll need to add the extension “.sh”: ‘build1.sh setup.tomcat’.

    Bye
    Thorsten


    #API-Management
    #Tamino
    #webMethods


  • 7.  RE: Error when accessing Xapplication

    Posted Wed November 19, 2003 03:14 PM

    yes. I had the .sh extension. When I run build1.sh setup.tomcat I get “build1.sh: not found”.

    When I run ‘./build1.sh setup.tomcat’ I get “./build1.sh: CMDLINE=setup.tomcat: is not an identifier”

    Thanks


    #webMethods
    #Tamino
    #API-Management


  • 8.  RE: Error when accessing Xapplication

    Posted Thu November 20, 2003 08:33 AM

    Hi Green,
    when you execute the script via ./build1.sh … the standard shell is called. Unfortunately, this seems to be the “normal” shell, the script however needs the “Bourne” shell or “Born again” shell bash. Please try the following:
    bash ./build1.sh setup.tomcat
    Regards,
    Gerald


    Gerald Ristow
    Tamino R&D


    #API-Management
    #Tamino
    #webMethods


  • 9.  RE: Error when accessing Xapplication

    Posted Fri November 21, 2003 02:04 PM

    Making progress…when I executed
    bash ./build1.sh setup.tomcat I get the following error:

    Buildfile:ncconfig/build.xml
    init:
    BUILD FAILED
    file:/opt/xapplication_411/ncconfig/build.xml:75: Please run setup before calling build


    #Tamino
    #webMethods
    #API-Management


  • 10.  RE: Error when accessing Xapplication

    Posted Fri November 21, 2003 02:46 PM

    Hello,

    is it possible with the tip of Gerald to run the setup.sh?

    Bye,
    Christian.


    #API-Management
    #Tamino
    #webMethods


  • 11.  RE: Error when accessing Xapplication

    Posted Fri November 21, 2003 04:34 PM

    There is only a setup.cmd and setup.lock. I was told from a previous post that the setup.cmd is for Windows only.

    I tried what Gerald suggested
    bash ./build1.sh setup.tomcat

    and got an error stating
    BUILD FAILED
    file:/opt/xapplication_411/ncconfig/build.xml:75: Please run setup before calling build


    #Tamino
    #API-Management
    #webMethods


  • 12.  RE: Error when accessing Xapplication

    Posted Fri November 21, 2003 04:50 PM

    Hello,

    excuse my. It was typo. I mean the command

    build.sh setup



    Bye,
    Christian.


    #API-Management
    #Tamino
    #webMethods


  • 13.  RE: Error when accessing Xapplication

    Posted Fri November 21, 2003 05:26 PM

    Ok…

    ./build.sh setup ran with the following error:

    examples API:

    [javac] /opt/xapplication_411/tools/bin/antRun:jikes: not found
    BUILD FAILED
    file:./misclib.xml:435: Compile failed; see teh compiler error output for details.

    The log directory show this same output


    #webMethods
    #API-Management
    #Tamino


  • 14.  RE: Error when accessing Xapplication

    Posted Mon November 24, 2003 07:12 AM

    Hello,

    open the file build.sh with a text editor and adapt the settings for the Java compiler to your environment.

    1) Disable the ANT option for the jikes compiler (remove -Dbuild.compiler=jikes)

    ANT_OPTS=“-Xms100m -Xmx512m”

    2) Check the environment variable for the JAVACMD.

    Is the environment variable for your JSDK correct? Look if JAVA_HOME points to an installed JSDK on your machine.

    Invoke the setup again.

    Bye,
    Christian.


    #Tamino
    #webMethods
    #API-Management


  • 15.  RE: Error when accessing Xapplication

    Posted Mon November 24, 2003 03:41 PM

    ok…the build seemed to work. I got build successful.

    Then I launched http://localhost:8080/xapp. and I got the index.html page (X-Application Examples).

    However when I click on “Simple” I get a 404 error /xappl.simple/index.html - the requested resource /xapp/simple/index.html) is not available.


    #webMethods
    #API-Management
    #Tamino


  • 16.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 09:10 AM

    Hello,

    let’s check your webapps directory of your Tomcat:

    I send the former post for the xapp.xml file. This file seams to be ok.

    There are other xml files starting with xapp… that define a context for e.g. an example, the generator, a tutorial etc.

    One of these files is xappsimple.xml. It defines the context for the simple example. Please, open this file with a text editor and check the attribute ‘docBase’ if the path for this directory is correct. It should point to

    <your installation sub-dir> /xapplication_411/examples/jsp/simple



    If the directory path is not a valid path, please correct the content of the attribute docBase.

    For the next step is open a browser and enter the URL

    http://localhost:8080/xapp/simple/index.html



    The summary of simple examples should appear.

    Bye,
    Christian.


    #Tamino
    #API-Management
    #webMethods


  • 17.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 02:15 PM

    In the tomcat/webapps directory there are only 2 xapp* files (xapp.xml and xappdir.xml).

    Is this to assume that something was not built correctly during the build?


    #Tamino
    #webMethods
    #API-Management


  • 18.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 02:37 PM

    Hello,

    no. That is correct: xappdir.xml maps a context to the installation directory of X-Application (/xapp/dir) while xapp.xml maps a context to the root directory of X-Application’s web directory (/xapp).

    Bye,
    Christian.


    #API-Management
    #Tamino
    #webMethods


  • 19.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 03:22 PM

    My installation directory of xapplication is /opt/xapplication_411.
    I have included the listing for xappdir.xml



    <Logger className=‘org.apache.catalina.logger.FileLogger’ prefix=‘xappdir_log. ‘suffix=’.txt’ timestamp=‘true’/>


    And for xapp.xml


    <Context path=“/xapp” docBase=“/opt/xapplication_411/examples/jsp/ROOT”">
    <Logger className=‘org.apache.catalina.logger.FileLogger’ prefix=‘xappdir_log. ‘suffix=’.txt’ timestamp=‘true’/>




    I simply want to ensure I modify the correct file.

    Should both docBase be set to: “/opt/xapplicaton_411” ???

    Thanks for the help.


    #webMethods
    #Tamino
    #API-Management


  • 20.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 04:13 PM

    Hello,

    these files are correct. I was talking about the file xappsimple.xml

    Does this file exist within the Tomcat’s webapps directory?

    If yes, check this file.

    If it’s not created during the setup step, add this file manually with the following content

    <!-- This file was generate by X-Application - do not edit! -->
    <Context path="/xapp/simple" docBase=="/opt/xapplication_411/examples/jsp/simple">
    <Logger className='org.apache.catalina.logger.FileLogger' prefix='xappsimple_log.' suffix='.txt' timestamp='true'/></Context>



    Bye,
    Christian.


    #webMethods
    #API-Management
    #Tamino


  • 21.  RE: Error when accessing Xapplication

    Posted Tue November 25, 2003 04:52 PM

    This file did not exist in tomcat/webapps. I created the xappsimple in the webapps directly as posted. I stopped and restarted tomcat


    I go to http://localhost:8080/xapp/simple/index.html and receive the following:

    http status 404 - /xapp/simple/index.html

    the requested resource /xapp/simple/index.html) is not available.


    #API-Management
    #Tamino
    #webMethods


  • 22.  RE: Error when accessing Xapplication

    Posted Thu November 27, 2003 07:16 AM

    Hello,

    when you restart Tomcat, there is a console output. These output displays information about the contexts that are loaded.

    Could you post this text to the community?


    Did you call your file just ‘xappsimle’ or did you call it ‘xappsimle.xml’. The suffix ‘.xml’ is necessary. Otherwise, I am not sure if Tomcat will recognize the file as a context mapping.

    Could you post also the file ‘xappsimple.xml’ you created as an attachment to your next post?

    I will try to analyze why Tomcat did not accept your simple example.

    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino


  • 23.  RE: Error when accessing Xapplication

    Posted Mon December 01, 2003 01:39 PM

    I did indeed create xappsimple.xml.

    The following is a portion of the log file after tomcat was restarted:

    StandardWrapper[examples:default: loading container servlet default
    StandardWrapper[examples:invoker: loading container servlet default
    StandardHost[localhost]:Removing web appliation at context path /admin
    StandardHost[localhost]:Removing web appliation at context path /webdav
    StandardHost[localhost]:Removing web appliation at context path /xapp/dir
    StandardHost[localhost]:Removing web appliation at context path /examples
    StandardHost[localhost]:Removing web appliation at context path /tomcat-docs
    StandardHost[localhost]:Removing web appliation at context path /xapp
    SessionListener: contextDestroyed()
    ContextListener: contextDestroyed()
    StandardHost[localhost]: Removing web application at context path
    StandardHost[localhost]: Removing web application at context path /xapp/simple
    StandardHost[localhost]: ContainerBase.removeChild:stop: LifecycelException: Container StandardContext[/xapp/simple] has not been started


    **************
    Let me know if I should post more…I had to type this in manually, because I’m trying to get xapp to run on a standalone Solaris box

    Thanks for the help.


    #webMethods
    #API-Management
    #Tamino


  • 24.  RE: Error when accessing Xapplication

    Posted Mon December 01, 2003 01:43 PM

    Also the xappsimple.xml file is as follows:





    #webMethods
    #Tamino
    #API-Management


  • 25.  RE: Error when accessing Xapplication

    Posted Tue December 02, 2003 08:32 AM

    Hello,

    The console output indicated a problem when starting the web-application xapp/simple. However, the error message is not very helpful to get more information about the reason for the occurred problem.

    Could you check, if there is any log-File that contains a stacktrace or more detailed error message?

    Tomcat saves log files normally within the directory.

    …\jakarta-tomcat-…\logs

    Interesting files are:

    localhost_log.<date>.txt
    xappsimple_log.<date>.txt



    Bye,
    Christian.


    #Tamino
    #webMethods
    #API-Management


  • 26.  RE: Error when accessing Xapplication

    Posted Tue December 02, 2003 03:28 PM

    The xappsimple_log.txt file indeed had errors. The first two lines of the file are as follows:

    StandardContext[/xapp/simple]: Resources start failed: java.lang.IllegalArgumentException: Document base /opt/xapplication_411/examples/jsp/simple does not exist or is not a readable directory.

    I checked the permisions of all the above directories and they all are rwxr-xr-x


    #API-Management
    #webMethods
    #Tamino


  • 27.  RE: Error when accessing Xapplication

    Posted Tue December 02, 2003 08:21 PM

    I am using Tomcat 4.1.29. I updated the xerces version per a previous post. Do you think this version of Tomcat could still be the problem?

    I tried looking on apache’s site for the 4.1.18 version, but can’t seem to locate it. Any ideas of where I can find it. I’ll try going back to that version to see if I have the same problems


    #webMethods
    #API-Management
    #Tamino


  • 28.  RE: Error when accessing Xapplication

    Posted Tue December 02, 2003 11:31 PM

    Please disregard the last post regarding the 4.1.18 version of tomcat. I located it on the archive page of the jakarta site.

    I will install this version and repost my results.

    Thanks for the help.


    #webMethods
    #API-Management
    #Tamino


  • 29.  RE: Error when accessing Xapplication

    Posted Wed December 03, 2003 02:26 PM

    Ok. I installed tomcat 4.1.18, and received similar results.

    The first couple lines of the xappsimplelog.date.txt file states
    StandardContext[xapp/simple]: Resources start failed
    StandardContext[xapp/simple]: Context startup failed due to previous errors
    StandardContext[xapp/simple]: Exception during cleanup after start failed.

    I did notice is the xapp_log.date.txt and xappdir_log.date.txt files there is an error that states:

    ContextConfig[/xapp/dir]: Missing application web.xml, using defaults only.

    Should web.xml been created with loading xapplication? Or is this the same web.xml file that is often in /tomcat/webapps/webdav/WEB-INF folder?


    #API-Management
    #webMethods
    #Tamino


  • 30.  RE: Error when accessing Xapplication

    Posted Wed December 03, 2003 03:20 PM

    Hello,

    the non-existing web.xml file indicates that the examples were not created correctly.

    Please,

    (1) open a console
    (2) change to your X-Appplication installation directory
    (3) invoke ‘build1.sh examples.jsp’ ( !! use the required shell !! when invoking the build1.sh)

    and post the output to the community. There must be one step that fails.

    Many thanks.

    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino


  • 31.  RE: Error when accessing Xapplication

    Posted Wed December 03, 2003 04:32 PM

    I built from the bash shell. (bash build1.sh examples.jsp)

    Received:

    BUILD FAILED
    java.lang.OutOfMemoryError

    I’m wondering is this physical memory? Does some system parm have to be set? This is the first time I’ve seen this error.


    #webMethods
    #API-Management
    #Tamino


  • 32.  RE: Error when accessing Xapplication

    Posted Wed December 03, 2003 06:05 PM

    I checked the webapps folder. And there are certainly more *.xml files than the previous run.

    I can now access http://localhost/tamino/xapp/index.html

    Click on Simple. I get the Simple Examples for JSP Tags (I wasn’t getting this at first)

    Now when I click on any of the links (ex. Hello, Display, Create). I get 500 error
    org.apache.jasper.JasperException: TaminoStoreException.

    I’m thinking this is because the build did not complete fully


    #API-Management
    #webMethods
    #Tamino


  • 33.  RE: Error when accessing Xapplication

    Posted Wed December 03, 2003 07:05 PM

    OK. The TaminoStore Exception Error is Solved (the database wasn’t running).

    Now, when I click on the Hello example. I get 500: org.apache.jasper.JasperException:Schema Property not found in collection cmat.

    cmat is indeed the name of my collection


    #Tamino
    #webMethods
    #API-Management


  • 34.  RE: Error when accessing Xapplication

    Posted Thu December 04, 2003 01:48 PM

    Hello,

    you can check whether the collection is created or not with the Tamino Tool ‘X-Plorer’.

    If it’s not created the install step for creating the example schema / data failed (OutOfMemoryException ?).

    What you could do ist to invoke the installation of the schema / data:

    (1) Open a console
    (2) Change to your X-Appplication installation directory
    (3) Invoke ‘build1.sh setup.collection’ ( !! use the required shell !! when invoking the build1.sh)

    The normal out should look like this

    Buildfile: ncconfig\build.xml
    
    init:
    
    buildLib:
    
    setup.collection:
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\property\property.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\property\PropCustomer.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\patient\patient.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\invoice\invoice.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\invoice\customer.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\tsd\any.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\tsd\anyWithSiblings.tsd -> http://.../welcome_4_1_1/colName
    
    defineSchema.internal:
    [java] defining tsd schema: C:\user\xapp\xapplication_411\testsuite\xmlfiles\tsd\anyHtml.tsd -> http://.../welcome_4_1_1/colName
    [java] FileDataDefinition in http://.../welcome_4_1_1/colName
    [java]     C:\user\xapp\xapplication_411\testsuite\xmlfiles\property\data.xml
    [java]     C:\user\xapp\xapplication_411\testsuite\xmlfiles\patient\data.xml
    [java]     C:\user\xapp\xapplication_411\testsuite\xmlfiles\property\PropCustomerData.xml
    [java] done
    
    BUILD SUCCESSFUL
    Total time: 46 seconds
    



    Bye,
    Christian.


    #webMethods
    #Tamino
    #API-Management


  • 35.  RE: Error when accessing Xapplication

    Posted Thu December 04, 2003 04:26 PM

    THAT WORKED!!!

    Thanks so much. Now i can view all the links on the http://localhost:8080/xapp EXCEPT

    for the generator link.

    When I click on the Generator Link I get http 404: /xapp/generator/welcome.html

    Does this need to be built as well?


    #Tamino
    #API-Management
    #webMethods


  • 36.  RE: Error when accessing Xapplication

    Posted Thu December 04, 2003 04:47 PM

    Hello,

    Congratulations.

    There is also a separate build tag for the generator. Use the same steps as for building the schema / data, but invoke:

    build1.sh generator



    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino


  • 37.  RE: Error when accessing Xapplication

    Posted Thu December 04, 2003 06:04 PM

    Ok Thanks. Getting closer.

    That build1.sh generator completed successfully. So I attempted to generate a new app.

    I went through each step:
    Configuration: entered the URL and collection
    Define Schema: entered and got a SUCCESS message
    Generate: entered schema name, doctype and application directory, and clicked GENERATE

    This routed me to http://localhost:8080/xapp/generator/process.html
    which just had a blank page.

    I went to my tomcat/webapps directory and there was indeed a new directory with the same name as my schema name. That directory had several *.gif files, search.jsp. structure.xml, application.xml, config.xml and a WEB-INF directory which had a jsp sub directory, lib sub dir and web.xml sub

    The only file in the jsp directory was xapplication.tld - the tag libs.

    Should it have generated something else?

    How can I access this application.


    #API-Management
    #webMethods
    #Tamino


  • 38.  RE: Error when accessing Xapplication

    Posted Thu December 04, 2003 08:00 PM

    Ok. I think its the version of JAVA I’m using, which is 1.4.2_02. Based on this previous post http://tamino.forums.softwareag.com/viewtopic.php?p=14169

    I’ll try configuring another JAVA version.

    Thanks


    #webMethods
    #API-Management
    #Tamino


  • 39.  RE: Error when accessing Xapplication

    Posted Mon December 08, 2003 04:05 PM

    It was the JAVA version. I installed JDK 1.4.1_05 and it generated successfully.

    Thank you for all the help.


    #webMethods
    #Tamino
    #API-Management