Deploying war file on Tomcat: file path problem

Hello all,
i am using my eclipse ide for automatically deploy my webapplication to Tomcat. For Database connectivity i configured hibernate. To configure hibernate i am using the following code:
package de.wfm.hibernate.hibernateUtil;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class ESDBFactory {
     private static SessionFactory sf;
     private static Session session = null;
     private static String pathToCfgFile = "de\\"
                         + "wfm\\hibernate\\hibernateUtil\\esdb.cfg.xml";
     public static synchronized Session getSession() throws HibernateException {
          if (session==null) {
               if (sf==null) {
                    sf = new Configuration()
                         .configure(pathToCfgFile).
                         buildSessionFactory();
          session = sf.openSession();
          return session;
}When i use this in the ide all is fine. But when i export my application to a war file and deploy it on Tomcat i got the exception:
2006-07-28 10:06:10 StandardWrapperValve[Urlaubsplanung Servlet]: Servlet.service() for servlet Urlaubsplanung Servlet threw exception
javax.faces.FacesException: #{User.doLogin}: javax.faces.el.EvaluationException: org.hibernate.HibernateException: de\wfm\hibernate\hibernateUtil\esdb.cfg.xml not foundHow to avoid this? What do i have to do to set the file path correctly?
Regards,
ak

hmm.. ic
The .war file when drop in the webapps dir and u restart tomcat, it auto create a dir with your .war filename and the content of .war file is copied to there.
Am i rite to say so?
And wat about the web.xml?
If i need to add users and password how can I accomplished it in tomcat web.xml?
Last but not least, thanks for taking the time to reply. :D

Similar Messages

  • Calling servlets in tomcat 4 (path-problem)

    Hi,
    I have copied the IsItWorking-Servlet in webapps/examples/Web-Inf/classes.
    To call the servlet through a browser I have to write:
    http://server-name:8080/examples/servlet/IsItWorking .
    This works fine. But ..unfortunately I have to call the servlets in the following way:
    http://server-name:8080/examples/IsItWorking.
    Which xml-File defines the parameter "servlet" ??

    Hi,
    edit the web.xml under the \examples\web-inf.
    add the following
    <servlet>
    <servlet-name>
    IsItWorking
    </servlet-name>
    <servlet-class>
    IsItWorkingServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    IsItWorking
    </servlet-name>
    <url-pattern>
    /IsItWorking
    </url-pattern>
    </servlet-mapping>

  • 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.

  • Customizing AM Images & Facing Problem in Update & Deploy War files

    Hey Guys!
    This is Yash Bansal from Gurgaon, India. i am new to access manager. i am now customizing it and facing problem in customizing.
    I have customized images which is present in directory path:
    opt/SUNWam/web-src/services/images/
    and updated services.war file which is present in directory path:
    opt/SUNWam/war/
    with command
    jar -uvf services.war /opt/SUNWam/web-src/services/images/login-backimage.jpg
    then deployed configuration from the web server 7.0 admin console.
    after that when i open the url
    http://<hostname>/amserver/console
    then Page Not Found error comes in the browser.
    Just wanted to ask you guys am i doing the steps right. please help if someone know how to update and deploy war file on Sun Web server 7.0.
    Thanks & Regards,
    Yash Bansal

    Hi!
    Deploying the configuration does not (re)deploy the application. Webserver stores a copy of the deployed application and all configurations in the admin instance. When you change anything in the webserver console it is first written there and only applied to the productive instance when you deploy configuration.
    When you add images, jsps or something else to /opt/SUNWam/... and want it redeployed you have to use amconfig command. in /opt/SUNWam/bin there is a file called amsamplesilent. You have to fill the values in this file and then use
    ./amconfig -s amsamplesilent
    I believe for a redeploy you have to set DEPLOY_LEVEL to 21, not sure here, check documentation.
    I personally usually do not redeploy for images and such, I simply copy them directly the deployed location.
    Why http://.../amserver/console does not work anymore, I have no idea. But at least after a redeploy it should be there again.
    hth Chris

  • Tomcat error when deploying WAR file

    Hi
    I have written my first program using Creator 2. It runs with no problems when i use the sun appserver. however I wanted it to run on tomcat and having deplowed the war file on tomcat when i run the program I get the following error message which i will add at the end of the message.
    Is this because tomcat is using java \jre1.5.0_06 library and Creator 2 deploy using j2ee1.4 ?
    ERROR MESSAGE:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:123)
         com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

    hi Marco
    Thanks for the advice. I have made some progress but still getting an error when i deploy on tomcat but not on the bundeled server. I will add the error at the end and hope you may be able to directly me again. There is another Q regarding the page you adviced me to look at . It suggests in step 2 copying two .jar files but fails to indicate copying them to which directory. Can u help?
    ERROR:
    Cannot read USERS database: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users' at line 1)
    Thanks
    zak

  • Deploying WAR files in Tomcat

    I placed cdmanagersample.war file under c:/tomcat5.0/webapps directory and restarted Tomcat. Then I went to web browser and typed http://127.0.0.1/cdmanagersample. I get the following error.
    HTTP Status 404 - /cdmanagerSample
    Shouldn't Tomcat extract the war file and deploy it as it should. Any reason why it didn't?

    Here's my server.xml file now:
    <!--
    Context fragment for deploying cdManagerSample.war
    -->
    <Context path="/cdmanagersample " docBase="../webapps/cdmanagersample " debug="0" reloadable="true" >
    <!-- <Context path="/cdManagersample" docBase="../webapps/cdManagerSample.war"
    debug="0" privileged="true"> --->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    resourceName="UserDatabase"/>
    </Context>
    When I try strating Tomcat by saing catalina run, I get following:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0>cd bin
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>catalina run
    Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 5.0
    Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5.0
    Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5.0\
    mp
    Using JAVA_HOME: C:\j2sdk1.4.2_03
    Jan 28, 2004 11:21:52 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndp
    nt.java:302)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:18
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnecto
    java:1366)
    at org.apache.catalina.core.StandardService.initialize(StandardService
    ava:633)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.j
    a:2413)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
    Jan 28, 2004 11:21:52 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindExce
    ion: Address already in use: JVM_Bind:8080
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnecto
    java:1368)
    at org.apache.catalina.core.StandardService.initialize(StandardService
    ava:633)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.j
    a:2413)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
    Jan 28, 2004 11:21:52 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2453 ms
    Jan 28, 2004 11:21:53 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 28, 2004 11:21:53 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.16
    Jan 28, 2004 11:21:53 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jan 28, 2004 11:21:53 AM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Jan 28, 2004 11:21:53 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache S
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
    Jan 28, 2004 11:21:54 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=t
    e
    Jan 28, 2004 11:21:54 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnN
    l=true
    Jan 28, 2004 11:21:55 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', ret
    nNull=true
    Jan 28, 2004 11:21:58 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache S
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
    Jan 28, 2004 11:21:59 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache S
    tware Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
    Jan 28, 2004 11:21:59 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /cdmanagersample from URL fil
    C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/cdmanagersample
    Jan 28, 2004 11:22:00 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=t
    e
    Jan 28, 2004 11:22:00 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnN
    l=true
    Jan 28, 2004 11:22:00 AM org.apache.struts.util.PropertyMessageResources <init
    INFO: Initializing, config='cdmanager.ApplicationResources', returnNull=true
    Jan 28, 2004 11:22:00 AM org.apache.struts.action.ActionServlet initApplicatio
    ataSources
    SEVERE: Initializing application data source org.apache.struts.action.DATA_SOU
    E
    java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
    at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataS
    rce.java:529)
    at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSourc
    java:381)
    at org.apache.struts.util.GenericDataSource.setLogWriter(GenericDataSo
    ce.java:345)
    at org.apache.struts.action.ActionServlet.initApplicationDataSources(A
    ionServlet.java:942)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:457)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrappe
    java:1044)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
    7)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardCont
    t.java:3948)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
    271)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBa
    .java:866)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    0)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:63
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostD
    loyer.java:316)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:859
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:6
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:4
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.ja
    :393)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecy
    eSupport.java:166)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:113
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:112
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:5
    at org.apache.catalina.core.StandardService.start(StandardService.java
    19)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2
    3)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Jan 28, 2004 11:22:00 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:C
    Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
    Jan 28, 2004 11:22:01 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:C:\Program Fil
    \Apache Software Foundation\Tomcat 5.0\webapps\ROOT
    Jan 28, 2004 11:22:01 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL f
    e:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-exam
    es
    Jan 28, 2004 11:22:01 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:
    rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
    Jan 28, 2004 11:22:01 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndp
    nt.java:302)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEnd
    int.java:319)
    at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:2
    at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.jav
    1436)
    at org.apache.catalina.core.StandardService.start(StandardService.java
    28)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2
    3)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Jan 28, 2004 11:22:01 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: Protocol handler start failed: java.net.BindException: Ad
    ess already in use: JVM_Bind:8080
    at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.jav
    1438)
    at org.apache.catalina.core.StandardService.start(StandardService.java
    28)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2
    3)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Jan 28, 2004 11:22:01 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 9224 ms
    StandardServer.await: create[8005]: java.net.BindException: Address already in
    se: JVM_Bind
    java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
    at java.net.ServerSocket.bind(ServerSocket.java:318)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:5
    at org.apache.catalina.startup.Catalina.await(Catalina.java:637)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:599)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Jan 28, 2004 11:22:01 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Jan 28, 2004 11:22:01 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080
    Jan 28, 2004 11:22:01 AM org.apache.coyote.tomcat5.CoyoteConnector stop
    SEVERE: Coyote connector has not been started
    Jan 28, 2004 11:22:01 AM org.apache.catalina.core.StandardHostDeployer remove
    INFO: Removing web application at context path /admin
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>

  • Problem regarding running war file in Tomcat 4.1

    i uploaded a war file in Tomcat application manager..
    Running status of application is false ...
    By pressing START in COMMANDS still it shows false in RUNNING ..
    i got error
    FAIL - Application at context path /kannan could not be started...........

    hi
    restart your system and again you deploy in tomcat manager,
    or
    better you place your .war file under webapps and restart ur tomcat server once again ..
    after u c one folder create with ur war file name,
    after u go and access
    thats it..
    i hope it will helps u

  • [b]problem with deploy .war file

    Hi
    I am trying to deploy a war file. I have Oracle 9iAS (release 2) in Sun Solaris server.
    I am using the enterprise manager gui to try to deploy a .war file as follows.
    My .war file has the structure: folder META-INF, folder WEB-INF, and other folders. THe folder
    WEB-INF has the file web.xml and the folder classes.
    I connect to enterprise manager at port 1810 and go to the OC4J home page and under
    deployed applications, I choose under applications "Deploy WAR file". It takes me to the next page
    where I enter the war file (pippo.war)
    Application Name: pippo
    Map to URL: /pippo
    THe only choice I have then is to click the Deploy button. I then get the response
    "Failed to deploy web application "pippo". Jar file: /var/tmp/jar29056.tmp is missing its standard xml descriptor located at WEB-INF/web.xml"
    In that path there is not that file, there are 2 folders, one with the file .war and one with the file .ear
    I have no idea what this error message means.
    The documentation for deploying servlets in 9ias using enterprise manager makes no mention of this.
    Thanks,
    Marcella

    Marcella,
    Are you using Oracle9iAS 9.0.3 ?
    Does this happen with any war file ?
    Are you able to deploy a ear file without problems ?
    Can you please test if you can deploy your war in a
    OC4J standalone environment ? steps from the general faq available at http://otn.oracle.com/tech/java/oc4j
    How can I deploy a WAR file to OC4J standalone ?
    The command line deployment tool (admin.jar) requires an EAR file as it's deployment archive. To deploy a WAR file using this, you must package the WAR file within a EAR file.
    You can manually deploy a WAR file to OC4J However following are the steps involved in deploying a WAR file in OC4J.
    1. Copy the file to D:\oc4j\j2ee\home\applications where d:\oc4j is the location OC4J is installed in.
    copy mywar.war D:\oc4j\j2ee\home\applications
    2. Open the application.xml file in D:\oc4j\j2ee\home\config directory
    and add the following after the <web-module id="defaultWebApp" path="../default-web-app" />
    line:
    <web-module id="mywar" path="../applications/mywar.war" />
    3. Open the default-web-site.xml file in D:\oc4j\j2ee\home\config directory and add the following after the <default-web-app application="default" name="defaultWebApp" /> line:
    <web-app application="default" name="mywar" root="/mywar" />
    In Oracle9iAS Release 2; deployment of applications is done either using EM or via the DCM commands.
    thanks,
    -Prasad

  • An issue of deploying war file on tomcat 5.5

    Hi,
    I know the regular process to deply a war file is like this - stop tomcat server, remove your previous war file and directory, say abc.war and dir abc, copy your new version abc.war into webapps and restart tomcat server.
    However, I found an interesting issue today - I was deploying a new release war file as described. While I stopped tomcat, removed all previous version direcotry, and restarted tomcat server, I got an http 404 error saying that the resource /abc/ is not available. I noticed that the org folder was not generated at work/Catalina/locahost/abc.
    I stuck there for a long time to try to fix but did not find a solution. I am pretty sure the war file should be ok since it works fine on my local machine. This only happened in the unix box. Later, occasionally, I removed the director abc without stopping the tomcat server. In another word, I removed the war file while tomcat is still running. A new abc directory was created soon and now it works.
    Anyone has any idea about that? Thanks!
    Michael

    Any thoughts? Thanks

  • How to deploy WAR file in tomcat.?

    Can anybody please provide step by step information of deploying war file to Jakarta tomcat without IDE.
    I am working on Windows XP with jakarta tomcat 4.1.30.
    Thanks in advance.
    Regards,
    Aman Aggarwal

    See if tomcat runs as a service in your operating system. If you can locate it, you can set the start type to automatic. A very crud way is to run the tomcat startup file from autoexe.bat.
    I don't know how to do this in Linux. Here is a link for tomcat 6. Maybe it is the same in tomcat 4
    [http://tomcat.apache.org/tomcat-6.0-doc/setup.html]
    Edited by: nirvan on Dec 29, 2008 9:15 AM

  • Problem deploying war file in cluster wls 10 mp1

    Hi,
    Weblogic throws the following exception while i am deploying a war file in clusters with 6 servers distributed in 2 physical machines.
    <Mar 6, 2008 12:22:52 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application 'siiaf'.>
    <Mar 6, 2008 12:22:52 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:88)
    Truncated. see log file for complete stacktrace
    java.util.zip.ZipException: Error opening file - /usr/local/bea/user_projects/domains/sctDomain10/stage/siiaf/siiaf.war Message - error in opening zip file
    at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
    at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:70)
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:61)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    Truncated. see log file for complete stacktrace
    >
    <Mar 6, 2008 12:22:52 PM CST> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69)
    at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
    at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
    at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:88)
    at weblogic.management.deploy.internal.MBeanConverter.createApplicationForAppDeployment(MBeanConverter.java:66)
    at weblogic.management.deploy.internal.MBeanConverter.setupNew81MBean(MBeanConverter.java:314)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.compatibilityProcessor(ActivateOperation.java:72)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.setupPrepare(AbstractOperation.java:295)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:86)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.util.zip.ZipException: Error opening file - /usr/local/bea/user_projects/domains/sctDomain10/stage/siiaf/siiaf.war Message - error in opening zip file
    at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:81)
    at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:70)
    at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:61)
    The staging mode of all servers is "stage".
    I think the problem is the file size because my war file size is 45 mb aprox.
    When i delete some files within the file and the size is minor (2 mb) , the deploy process ends successfully.
    I appreciate your help
    GPA

    Can you verify the integrity of your staged war file? This problem could be due to a bug in the container.You may want to open a support case with BEA

  • Deploy war file developed by rational to tomcat 5.5

    i've developed an application using rational application developer then exported it to war file
    then i want to deploy this war file to tomcat server
    could someone help me!!!
    thanx in advance

    If it's a standard WAR file, properly done, just drop it in the Tomcat /webapps directory and start up Tomcat. Use the WAR file name as the context.
    %

  • Deploying .war file on Tomcat 4.1?

    Hi,
    I would like to know whether anyone know how to deploy a .war file onto Tomcat 4.1? Or can this be done?
    And what about web.xml? Is it different from a web.xml written for BEA's Weblogic Server?
    Thanks

    hmm.. ic
    The .war file when drop in the webapps dir and u restart tomcat, it auto create a dir with your .war filename and the content of .war file is copied to there.
    Am i rite to say so?
    And wat about the web.xml?
    If i need to add users and password how can I accomplished it in tomcat web.xml?
    Last but not least, thanks for taking the time to reply. :D

  • Path problem while refering the file in tomcat

    In the jsp file i am going to update one property file which resides in the same folder using file output stream.
    it gives path problem.how can refer the path of that file

    try using getServletContext().getRealPath(java.lang.String path)..You can check out the API for more detail regarding this method.

  • Deploying war files with JBuilder 5 to Tomcat 4

    Hi,
    I'm developing a webapp in JBuilder 5. When I copy my war file to tomcat 3.2 webapps directory and start tomcat it works just fine, but when I copy my war file to the webapps directory in tomcat 4 I have the following error when I start tomcat 4:
    ERROR reading java.io.ByteArrayInputStream@33f8f6
    At Line 15 /web-app/servlet/
    All the examples in Tomcat 4 works just fine, and if I create a war file from the command prompt it also works, but the war file generated with JBuilder 5 doesn't work.
    does this sound familiar?
    please help

    Hi Lilja,
    ran into this myself, and had to do a full web search to find the answer.
    JBuilder5 will let you change the Tomcat version a certain project uses, but it won't necessarily like it.
    Creating a new project with Tomcat 4 as the default server, and then putting your existing files into it seems to work.
    Dodgy, I know, but blame Borland. ;-)
    Ta,
    Martin Hughes

Maybe you are looking for

  • HDATE feature with quota generation

    Hi: Currently, I am referencing date type 'SD' in IT0041 using feature HDATE (determining entry date) for calculating seniority in generating absence quotas. A customer is requesting a new date type, 'AL', to be created and we begin generating their

  • Not able to edit user defined reports

    Hi, I've run into an issue recently with user defined reports. After some time, I'm not able to edit them. This only happens on some of them. Is there a way to work around this? Thanks.

  • Ajax issues

    I am working with ajx project in servlet and jsp in which i have used inner html pages within the index page but when i try to submit in the inner page it submits the values to the index page action.. please help me making the inner page submit butto

  • Gradual speed slowdown - can anything be done?

    When the Infinity service arrived in our area, I was delighted to see the cabinet is only maybe 40m from my house and when the engineer connected me up, he said the line was "perfect" and I would get the maximum possible speed. Actually, I didn't, bu

  • PDF ACTION

    I want to use the srw package to open another report and pass the parameter. I currently use the hyperlink prop but I don't like the way the path shows when you mouse over the link. I'm having some trouble with using the SRW.SET_PDF_ACTION() package.