War application (Tomcat)

I have got exception after several rebuilding war application on Tomcat4.1.
2003-02-19 15:31:52 StandardContext[billing]: Resources start failed:
2003-02-19 15:31:52 StandardContext[billing]: Context startup failed due to previous errors
2003-02-19 15:31:52 StandardContext[billing]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[billing] has not been started
     at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
     at org.apache.catalina.core.StandardService.start(StandardService.java:497)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
     at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
     at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Anybody knows what reason?

Hi,
This may help. I received the same error message when I had incorrectly configured my conf/server.xml file with the wrong Context information for my application. It was trying to load the application from an expanded file structure rather than from the WAR file.
I had deployed the WAR file into the webapps folder but my server.xml context docBase attribute was pointing to a recTool folder not the recTool WAR.
<Context path="/recTool" docBase="recTool" debug="1"
reloadable="true" crossContext="true">
As the webapps/recTool folder didn't exist, it could load files from this context (i.e. web application). What I actually wanted was for the WAR file to be accessed directly.
<Context path="/recTool" docBase="recTool.war" debug="1"
reloadable="true" crossContext="true">
This sorted the 'LifecycleException: Container StandardContext[recTool] has not been started' error out in my case. Hope it helps you.
Regards,
Simon

Similar Messages

  • How can I deploy the WAR application in the Tomcat

    How can I deploy the WAR application in the Tomcat. Do I have to do any manifest file.
    Thanks
    S. Nikov

    First of all, which version of Tomcat are you using?
    Deploying a WAR file in Tomcat is very easy. Just put the WAR file in the %TOMCAT_HOME%\webapps directory and start Tomcat. It will automatically find the WAR.
    Please read the Tomcat documentation: start Tomcat and point your browser to http://localhost:8080
    Jesper

  • Error on deploying war to Tomcat

    Hi,
    I am a new bie trying to develop a Web application.
    I have deployed a war to tomcat 5.0.25, when I try to access the ContextRoot (there is a default.jsp file in the war, that should be invoked on eneterinh the COntextRoot in the browser address bar) it gives me an error saying:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:519)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         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:810)
    root cause
    java.io.FileNotFoundException: /usr/local/tomcat/work/Catalina/localhost/FTPSchedulerWeb/org/apache/jsp/default_jsp.java
         java.io.FileOutputStream.open(Native Method)
         java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         java.io.FileOutputStream.<init>(FileOutputStream.java:70)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         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:810)I developed the application using eclipse3.1 and created a WAR file using the same. Now I do not know if you can generate a WAR file using eclipse and deploy it on Tomcat5.0.25.
    Also, should I include the JDK 1.4 lib/jar files in the war file? Is that causing this error?
    Please help me. Thanks in advance.

    Hi,
    Thank you for your suggestion. your point about the folders could be right.
    Because for some reason, the folders org, org/apache, org/apache/grp under:
    /usr/local/tomcat/work/Catalina/localhost/FTPSchedulerWeb/
    were not getting created. And so we manually created them and attached them to the necessary group, to get proper file permissions.
    But my doubt still remains as to why those folders were not created. Well there is one point I want to ask here, in teh Tomcat server web.xml file, the following code is not present:
    <webapp>
    �����������
    ���.
    ���.
    <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>jsp</servlet-name>
            <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
            <servlet-name>jsp</servlet-name>
            <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    ����..
    ���.
    ���.
    </webapp>Could that be a possible reason as to why the server is unable to create those folders? Well, I do not know the actual reason. Please let me know what possibly could be the reason for this problem.
    Thanks a lot for your help!!

  • How can i deploy adf-richclient-demo.war to tomcat?

    how can i deploy adf-richclient-demo.war to tomcat or
    how can i use adf faces 11G in tomcat or
    how long will the next version out?
    thank you!

    Hi,
    the demo is a WAR file. So if you have a tomcat version that supports JSF 1.2 then you should be able to deploy it like any other JEE WAR file
    Frank

  • Faulting application tomcat.exe, version 1.1.0.0, faulting module jvm.dll,

    All,
    My application is running in a Tomcat, JBoss environment. Occassionally Tomcat crashes in jvm.
    The error is:
    Faulting application tomcat.exe, version 1.1.0.0, faulting module jvm.dll, version 0.0.0.0, fault address 0x0015405e.
    The OS is Windows Server 2003.
    JRE is 1.4.2_03
    Has anyone seen this? I saw a thread where a number of people had this problem but no solution was posted.
    Is there any fix available?
    Any help would be greatly appreciated.
    Sudhir

    1.4.2_03 is very old at this point. 1.4.2_17, the latest release has many, many, many fixes. Moving to this latest release may solve this problem:
    http://java.sun.com/j2se/1.4.2/download.html
    -Rogerr

  • Weblogic War application sending the requests every 3 minuts

    HI,
    There are 2 managed servers in one unix box.
    i have one war application deployed in cluster level. This war application will search the logs and will give particular content as a result.
    The Jsp page will send the request and it is able to get the correct results within 3 minutes. if there are so many logs, it is giving unrealiable results as war application is sending the request again and in the interval of 3 mins.
    Request parametes are get by servlet and this servlet will create the unix shellscript in background and it will execute in a box.
    0-3 mins 1st .sh creating and executing..
    3-6 mins 2nd .sh creats and starts the execution, once the 1 one is completed...
    its becomes infinite loop...
    after some time Browser is going to diagnostic error state..
    to avoid this i tried to give some parameters in weblogic.xml file...but its not working..
    please fine below weblogic.xml file
    ====================================
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <session-descriptor>
    </session-descriptor>
    <jsp-descriptor>
    <page-check-seconds>-1</page-check-seconds>
    <debug>true</debug>
    </jsp-descriptor>
    <container-descriptor>
    <resource-reload-check-secs>-1</resource-reload-check-secs>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <logging>
    <log-filename>/wls_domains/b2borap2/application_MT/logs/messagetracker.log</log-filename>
    </logging>
    </weblogic-web-app>
    =======================================================
    and web.xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <listener>
    <listener-class>
    com.tm.messagetracker.listeners.MTrackerSession
    </listener-class>
    </listener>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>com.tm.messagetracker.Controller</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    =========================================
    anyone please help me on above......Thanks in advance..

    How is it related to Oracle B2B? If you need help on Weblogic front then please post your query in Weblogic Webapp forum -
    WebLogic Server - WebApp / Servlet / JSP / Plugin
    Regards,
    Anuj

  • War application in weblogic6.0

    i have a war application with the following directory structure.(for jsp tag libraries)
    .jsp file
    WEB-INF/.jsp file, .tld file, web.xml.
    WEB-INF/classes/tagclass.
    i am able to deploy this file in weblogic 6.0, but what extra settings are required to call this jsp file. for eg. setting in server.xml or config.xml or application.xml (whatever is applicable, I dont know??)and what uri do i type in the browser to access this war application.

    1.
    create folder say examples
    copy all your jsp & html files in that directory.
    2.
    create foo > web-inf > classes (hope u can understand)
    inside foo create web-inf, put your web.xml file in that folder, in web-inf folder create classes folder and put all your servlets and beans in that folder
    restart server so that it is registered into config.xml other wise deploy it.
    access your file through http://localhost:port/foo/xyz.jsp

  • How to convert WAR application to be able to deploy it with JSPM and SDM?

    We have to be able to deploy an application packaged in WAR file usign the JSPM and SDM GUI tools.
    Using the Deploy tool there are no problems to build EAR file from the WAR and deploy it successfully to tha Application Server.
    How should we convert our WAR application, or the EAR file created with the DeployTool in order to be able to use these 2 tools?
    Using that EAR file with the JSPM and SDM GUI tools doesn't work:
    JSPM
    The ear file is copied in the inbox directory, but there is the following message:
    No applicable support package stack(s) found for deployment in inbox directory
    server\sapmnt\trans\EPS\in
    SDM GUI:
    When providing the EAR file created with the DeployTool, the SDM GUI fails to add it:
    com.sap.sdm.util.sduread.IllFormattedSduFileException: The information about the development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation is missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    After adding these attributes, we couldn't manage to provide valid manifest header.
    How can we modify/create valid manifest in order to be able to use the SDM GUI tool?
    Please, give us directions how to convert our WAR package in order to use these tools?

    Hi Sam
    Check out the below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/1b/92e4e701b242c2833a7adde6ecad09/frameset.htm
    If you have an already built war file then most probably the easiest way to assemble it and deploy it will be to use the deploy tool (http://help.sap.com/saphelp_nw04/helpdata/en/35/e3ee3da7138e5be10000000a114084/frameset.htm) Usually we use the NetWeaver Developer Studio to build and deploy J2EE Applications (http://help.sap.com/saphelp_nw04/helpdata/en/fe/a3996fa314f94f8a0c3475b08636d0/frameset.htm).
    OR
    As i understand you the source files arent available so rebuilding is out of question.
    0. Add web-j2ee-engine.xml in the same path as web.xml
    <web-j2ee-engine>
    <login-module-configuration/>
    </web-j2ee-engine>
    1. Create a Dummy EAR file.
    2. Add the WAR file to the base directory (path should be blank if you view the EAR in WinZip).
    3. Open the application.xml and add the entry for the WAR file
    <application id="Application_ID">
    <display-name>EAR_Name</display-name>
    <module id="WebModule_1127381405488">
    <web>
    <web-uri><WAR NAME>.war</web-uri>
    <context-root>sampleContextRoot</context-root>
    </web>
    </module>
    </application>
    Note: The number in module id has some significance, for the time being you have any random number.
    Deploy the EAR.
    Reward points if usefull

  • Session is not getting invalidated when i access more then 1 war applications

              I am experiencing the following problem and i do not understand
              the reason. I have an application (3 jsps) in a directory
              called /private under weblogic 6 sp1
              directory "DefaultWebApp_myserver". The login.jsp, logout.jsp
              and logError.jsp exist in directory "DefaultWebApp_myserver"
              below is the web.xml deployed with the default web application
              ----------------------------------------- web.xml ----
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>/private/checkCredentials.jsp</welcome-file>
              </welcome-file-list>
              <security-constraint>
              <web-resource-collection>
              <web-resource-name> MySecureBit0 </web-resource-name>
              <description>no description </description>
              <url-pattern>/private/*</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
              <role-name>NBAD_DOMAIN</role-name>
              </auth-constraint>
              </security-constraint>
              <login-config>
              <auth-method>FORM</auth-method>
              <realm-name>MyRDBMS Realm</realm-name>
              <form-login-config>
              <form-login-page>Login.jsp</form-login-page>
              <form-error-page>LoginError.jsp</form-error-page>
              </form-login-config>
              </login-config>
              </web-app>
              I have another application war. This application consist of
              2 jsp files. Below is the web.xml
              ------------------------ end web.xml -----------------------
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>/private/checkCredentials.jsp</welcome-file>
              </welcome-file-list>
              <security-constraint>
              <web-resource-collection>
              <web-resource-name> MySecureBit0 </web-resource-name>
              <description>no description </description>
              <url-pattern>/*</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
              <role-name>Engineer</role-name>
              </auth-constraint>
              </security-constraint>
              <login-config>
              <auth-method>FORM</auth-method>
              <realm-name>MyRDBMS Realm</realm-name>
              <form-login-config>
              <form-login-page>../Login.jsp</form-login-page>
              <form-error-page>../LoginError.jsp</form-error-page>
              </form-login-config>
              </login-config>
              </web-app>
              ------------------------------ end web.xml ----------------------
              Now i login in the default application that i have i link that takes me to the
              second app (the war); then i go to the default
              app and i logout. When i logout i invalidate the session. but it
              seems that the session is not getting invalided because i can
              enter the default
              application and the war test application without login in.
              If i do not access the test war application from the default application the session
              is invalidate and i get the login page.
              I hope i am clear.
              Thanks
              Ibrahim
              

              I asked a similar question some time ago and the answer that I got was that each
              application (war file) has its own session object. You cannot transfer information
              from one application to another via the session id.
              Vladimir
              "ibrahim" <[email protected]> wrote:
              >
              >I am experiencing the following problem and i do not understand
              >the reason. I have an application (3 jsps) in a directory
              >called /private under weblogic 6 sp1
              >directory "DefaultWebApp_myserver". The login.jsp, logout.jsp
              >and logError.jsp exist in directory "DefaultWebApp_myserver"
              >below is the web.xml deployed with the default web application
              >----------------------------------------- web.xml ----
              ><?xml version="1.0" ?>
              ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              >1.2//EN"
              >"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              ><web-app>
              ><welcome-file-list>
              > <welcome-file>/private/checkCredentials.jsp</welcome-file>
              ></welcome-file-list>
              ><security-constraint>
              > <web-resource-collection>
              > <web-resource-name> MySecureBit0 </web-resource-name>
              > <description>no description </description>
              > <url-pattern>/private/*</url-pattern>
              > <http-method>GET</http-method>
              > <http-method>POST</http-method>
              > </web-resource-collection>
              > <auth-constraint>
              > <role-name>NBAD_DOMAIN</role-name>
              > </auth-constraint>
              ></security-constraint>
              ><login-config>
              > <auth-method>FORM</auth-method>
              > <realm-name>MyRDBMS Realm</realm-name>
              > <form-login-config>
              > <form-login-page>Login.jsp</form-login-page>
              > <form-error-page>LoginError.jsp</form-error-page>
              > </form-login-config>
              ></login-config>
              ></web-app>
              >---------------------------------------------------------
              >I have another application war. This application consist of
              >2 jsp files. Below is the web.xml
              >------------------------ end web.xml -----------------------
              >
              ><?xml version="1.0" ?>
              ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              >1.2//EN"
              >"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              ><web-app>
              ><welcome-file-list>
              ><welcome-file>/private/checkCredentials.jsp</welcome-file>
              ></welcome-file-list>
              ><security-constraint>
              > <web-resource-collection>
              > <web-resource-name> MySecureBit0 </web-resource-name>
              > <description>no description </description>
              > <url-pattern>/*</url-pattern>
              > <http-method>GET</http-method>
              > <http-method>POST</http-method>
              > </web-resource-collection>
              > <auth-constraint>
              > <role-name>Engineer</role-name>
              > </auth-constraint>
              ></security-constraint>
              ><login-config>
              > <auth-method>FORM</auth-method>
              > <realm-name>MyRDBMS Realm</realm-name>
              > <form-login-config>
              > <form-login-page>../Login.jsp</form-login-page>
              > <form-error-page>../LoginError.jsp</form-error-page>
              > </form-login-config>
              ></login-config>
              ></web-app>
              >------------------------------ end web.xml ----------------------
              >Now i login in the default application that i have i link that takes
              >me to the
              >second app (the war); then i go to the default
              >app and i logout. When i logout i invalidate the session. but it
              > seems that the session is not getting invalided because i can
              >enter the default
              >
              >application and the war test application without login in.
              >If i do not access the test war application from the default application
              >the session
              >is invalidate and i get the login page.
              >I hope i am clear.
              >Thanks
              >Ibrahim
              >
              

  • How to deploy WAR in Tomcat

    I deploy WAR package into Tomcat,but no work!!
    27 三月 2009 08:42:57,993 [http-80-Processor25] ERROR Revision: 13 .pingDB(DatabaseService.java:69) - pinging db: TAW_PRIVATE_DATASOURCE
    27 三月 2009 08:42:58,009 [http-80-Processor25] ERROR Revision: 13 .getDBConnection(DatabaseService.java:499) - got exception when try to get db connection: java.lang.UnsupportedOperationException: Not supported by BasicDataSource
    27 三月 2009 08:42:58,009 [http-80-Processor25] DEBUG Revision: 13 .getDBConnection(DatabaseService.java:508) - close connection
    27 三月 2009 08:42:58,009 [http-80-Processor25] ERROR Revision: 13 .pingDB(DatabaseService.java:83) - got sql error in pingDb, retVal = false
    27 三月 2009 08:42:58,009 [http-80-Processor25] ERROR Revision: 9 .retriveNewLiveDB(DatabaseConnections.java:65) - All the databases are down!
    27 三月 2009 08:42:58,009 [http-80-Processor25] ERROR RegionalizationLibrary.populateBean(RegionalizationLibrary.java:210) -
    java.lang.NullPointerException
         at com.taw.database.TableDataSet.<init>(TableDataSet.java:32)
         at com.taw.database.TableDataSet.<init>(TableDataSet.java:27)
         at com.taw.clients.am.regionalization.RegionalizationLibrary.loadTemplateName(RegionalizationLibrary.java:247)
         at com.taw.clients.am.regionalization.RegionalizationLibrary.loadTemplate(RegionalizationLibrary.java:238)
         at com.taw.clients.am.regionalization.RegionalizationLibrary.populateBean(RegionalizationLibrary.java:206)
         at com.taw.clients.am.regionalization.RegionalizationLibrary.<init>(RegionalizationLibrary.java:64)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:87)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    27 三月 2009 08:42:58,009 [http-80-Processor25] DEBUG RegionalizationLibrary.getLanguagesFormatter(RegionalizationLibrary.java:492) - ****Creating new LanguagesFormatter
    27 三月 2009 08:42:58,040 [http-80-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[TAW].[jsp].invoke(StandardWrapperValve.java:253) - Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at com.taw.clients.am.regionalization.RegionalizationFormatter.<init>(RegionalizationFormatter.java:12)
         at com.taw.clients.am.regionalization.LanguagesFormatter.<init>(LanguagesFormatter.java:13)
         at com.taw.clients.am.regionalization.RegionalizationLibrary.getLanguagesFormatter(RegionalizationLibrary.java:493)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:88)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    My "context.xml":
    <Context reloadable="true" crossContext="true">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <Resource name="jdbc/cca" auth="Container"
    type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@127.0.0.1:1521:ORCL"
    username="CC81" password="cc81" maxActive="200" maxIdle="10"
    maxWait="-1"/>
    </Context>
    My "web.xml":
    <context-param>
    <param-name>databasePlatform</param-name>
    <param-value>ORACLE</param-value>
    </context-param>
    <context-param>
    <param-name>databaseSchema</param-name>
    <param-value>ADMINCC81</param-value>
    </context-param>
    <context-param>
    <param-name>databaseDatasource</param-name>
    <param-value>java:/comp/env/jdbc/cca</param-value>
    </context-param>
    <context-param>
    <param-name>databaseUser</param-name>
    <param-value>CC81</param-value>
    </context-param>
    <context-param>
    <param-name>databasePassword</param-name>
    <param-value>cc81</param-value>
    </context-param>
    <resource-ref>
    <description>Oracle Datasource</description>
    <res-ref-name>jdbc/cca</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>

    The 3 application servers that are supported are BEA Weblogic, Oracle Application Server and IBM Websphere.
    Tomcat was used of the V7 remote DB application.

  • WAR files (Tomcat) and deployment descriptor

    Hello,
    I am currently writing a small utility to package a web application for Jakarta Tomcat as a .war file.
    I have a functional version that imports the deployment descriptor web.xml, but I'd like to make it possible for the user to edit or create from scratch that file. I use the DOM API to make a logical model of my web.xml, but the parser won't accept the external dtd definition :
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    Here is my parser :
    private void parse(File in) {
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse(in); (((*)))
    catch (...)
    }//parse
    ---------------------------------------------It seems I have no further controls on DocumentBuilder and DocumentBuilderFactory.
    The builder.parse call generates this exception :
    java.net.NoRouteToHostException: Operation timed out: no further information
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:389)The problem seems to be located in DOM's DefaultHandler entity resolver, but I don't ee clearly what to do.
    Thanks for helping.

    Hi,
    I already tried every combination of settings with
    DocumentBuilderFactory.setNamespaceAware
    DocumentBuilderFactory.setValidating
    DocumentBuilderFactory.setCoalescing
    DocumentBuilderFactory.ExpandEntityReferencesI had the same result. Here is the exact dump :
    java.net.NoRouteToHostException: Operation timed out: no further information
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
            at java.net.Socket.<init>(Socket.java:273)
            at java.net.Socket.<init>(Socket.java:100)
            at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
            at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
            at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
            at sun.net.www.http.HttpClient.New(HttpClient.java:289)
            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
    .java:379)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:472)
            at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:389)
            at org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntit
    y.java:88)
            at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:2986)
            at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav
    a:2721)
            at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
            at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
            at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
            at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
            at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
    .java:179)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:161)
            at DOMView.main(DOMView.java:96)This shows that the entity resolver tries to access the distant DTD, so I tried to implement myself the EntityResolver interface, but I didn't well understood
    what to do with that InputStream it has to return.

  • Accessing .war on tomcat using apache

    i am trying to deploy .war file in the tomcat server that communicates with apache to fulfill the dynamic requests.
    Now when i am making war I am able to access the application when I use tomcat only.
    But when used inconjunction with apache web server it does not shows the page giving page not found error.
    where is the problem?
    I have used jk connector for connecting the two servers.
    Are there some changes that i need to do in the configuration file that i need to do to make it happne? Please help.

    i am trying to deploy .war file in the tomcat server that communicates with apache to fulfill the dynamic requests.
    Now when i am making war I am able to access the application when I use tomcat only.
    But when used inconjunction with apache web server it does not shows the page giving page not found error.
    where is the problem?
    I have used jk connector for connecting the two servers.
    Are there some changes that i need to do in the configuration file that i need to do to make it happne? Please help.

  • How to deploy the .war to tomcat

    Hello All,
                 How to deploy the war file into tomcat server & work? Can any body enlighten me how to proceed and test the application?

    Hi,
    assumed you talk about Tomcat in general.
    Simply copy you archive (xyz.war) into the subdir \webapps of your tomcat installation.
    Invocation: http://hostname:port/xyz/resource
    -> where xyz is the name of your archive and
    -> resource is what you have specified within web.xml (<servlet-mapping> - tag) or a jsp / html you have in your archive.
    -> host is your machine (try localhost for instance)
    -> port usually is 8080
    Hope that helps
    M.

  • Deploying .war into tomcat 5.5.12

    I am still new to web based applications in tomcat.
    I would appreciate if some explain me how to create .war file and deploy into tomcat.
    Thanks

    Hi,
    Tell us about ur System settings including tools, IDE etc...
    All the Best
    Ganesh

  • Not able to deploy Analytics.war in Tomcat.

    Hi,
    I have configured Tomcat v6.0 server with OBIEE.
    I am able to successfully deploy the xmlpserver.war and login into http://localhot:8080/xmlpserver and able to view the BI Publisher.
    But tried deploying the analytics.war. It throws the following error in the Tomcat Server.
    SEVERE: ContainerBase.addChild: start:
    LifecycleException: Error initializaing : java.lang.IllegalArgumentException:
    The archive [jar:file:/E:/Tomcat_6.0/apache-tomcat-6.0.26/webapps/analytics.war!
    /] is malformed and will be ignored: an entry contains an illegal path [./]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    217)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
    1)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
    at org.apache.catalina.core.StandardService.start(StandardService.java:5
    19)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Please suggest a solution for this issue.
    Thanks & Regards,
    Vijay.

    Edited by: Srikanth Mandadi on Sep 20, 2010 2:55 AM

Maybe you are looking for

  • Need to extract only decimal numbers for a glob of text [SOLVED]

    If you have a look at /dev/zero's thread here, you'll see that users have been posting the output of his script which are numbers that range from 2 to 5 decimal places.  If I dump this entire thread to txt file, how can I: 1) Delete everything except

  • Only one user don't get mails with IMAP

    Strange Problem. I have stored 4 accounts on my iPhone and get mails only from 3 from the same PO. With my own account "rupert" I get a message:"Server mail.company.at does not respond" But i can send mails with my account very well. This error occur

  • Use OWB with java or web service

    Instead of using Oracle warehouse builder GUI design and control center, may I use Java or Web services to access the functionality of warehouse builder. where can I find these Java or web services API document. Thanks

  • Can't get WD MyBook to work w/my mac, Disc Utility won't reformat

    Hello! I purchased a Western Digital external hard drive, a My Book, which is supposed to work with my mac - I have a PowerPC G4 running Tiger (10.4.11). Tried to partition and reformat with disc utility - but I get an error that states : partition f

  • String Index out of bound exception

    I am trying to get substring from string. I have the following String var = "20051221032435" String var2 = var.substring(0,4)+"/"+var.substring(4,2)+"/"+var.substring(6,2)However, when i tried step by step run, it showed the first part (0,4) substrin