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.

Similar Messages

  • How to deploy JSPs in Tomcat 5.5

    hello all
    i am Mayuresh Trivedi. i don't know how to Deploy Jsps in Tomcat 5.5. i m using MYSql as Backend. i m trying to use "import" command in Jsp so it shows me error like under :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Syntax error on token "import", delete this token
    Generated servlet error:
    Syntax error on token "import", delete this token
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
    so , can any body help me please ?

    hi
    first create a arbitrary folder in \webapp folder in tomcat home foder.
    for instance \webapp\myJSP
    second you must create a folder with this name : \WEB-INF under myJSP folder
    then make a web.xml in that
    so write in web.xml this :
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <description>
    myJSP
    </description>
    <display-name>JSP 2.0 Examples</display-name>

  • How to deploye .war files in SOA_Server1 ?

    Hi,
    I was created Auto Generated Task form for Human Task in 11G.After that how to deploye .WAR files manually in
    "Infra -Soa(Soa_srerver1)" .Plz help me now

    When you auto-generated the UI it would have defaulted to creating a web app project in your application. When you deploy the BPMN process, there are three steps in the wizard:
    1. Deploy Configuration
    2. Task flow deployment
    3. Select Server
    In step 2 you can select some of all of the UI projects in the app and deploy them as part of deploying the composite. The build/deploy process will automatically create the war(s) and ear file. Once they're deployed, you can leave them un-selected to avoid redeploying them each time you just change the process definition. If you make changes to the UI, you can just select them again during deployment and select the option to overrwrite the EAR.

  • How To Deploy WAR Weblogic

    please need help
    How To Deploy WAR Weblogic server 11gr1
    thanks for your help

    would this help you
    http://www.sagecomputing.com.au/papers_presentations/JDEV11g-WebLogic10.3.pdf

  • 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

  • How to deploy war files

    Hi, I am absolutely new to solaris. I just find out how to run apache server, (did it by command: svcadm enable apache2) Now I have a war file that I want to use but I have no idea how to. I found the DocumentRoot "/var/apache2/htdocs" , so I copy the war file in that directory... now I have no idea what to do.. I read tomcat should extract it somehow automatically, but nothing happens.

    What you are talking about is Apache httpd server.
    And what you need to deploy war (WebARchive) file is Apache Tomcat Servlet Container. You see, Apache httpd and Apache Tomcat are two different things.
    So, download Tomcat, put your war file into webapps catalog, run the Tomcat, and that is basically it. Application in the war file should be accessible in its context through the browser.

  • 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

  • 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 to deploy war webapp on standalone weblogic ?

    Hi All
    We have several war files and an ear file. A few war files are shared libraries, other war files are webapp and an ear file.
    How do we deploy a war file to standalone weblogic ?
    Must we explode the war file in order for weblogic to deploy or can we deploy a war like an ear file using ojdeploy ?
    Any steps to configure meta-data files to allow successful deployment ?
    What steps do we need to perform ?
    Thank you
    Sincerely

    hi user,
    i don't see any jdev version and also i dont see that standalone deployment in production? or else ?
    better google it is the rightway.
    Anyhow,
    deploying the war file:
    JDeveloper Frequently Asked Questions: FAQ #3 - How to deploy an ADF application on a standalone WebLogic server directl…
    http://www.sagecomputing.com.au/papers_presentations/2009_WLS_JDEV.pdf
    deploying in production.
    How-To: ADF Deployment Guide
    deploy using ojdeploy the famous chris blog is there.
    https://wikis.oracle.com/display/jdeveloperandadf/ADF+Build+and+Deploy

  • How to Deploy WAR file in solaris

    I want to deploy WAR file in Solaris.

    Install Java on Solaris.
    Install Tomcat (or whatever app server you want to on Solaris)
    Deploy the WAR file in the standard place for that app server.
    ie Tomcat would be [TOMCAT]/webapps directory.

  • How to Deploy .war on J2EE

    Hi,
    Can anyone tell me how do i deploy .war file on J2EE engine. While searchin for the solution, i learnt that i need to convert .war file to .ear file, is that right?. Can anyone tell me how do i do that. what tool to use and the procedure. I dnt want to do the conversion from .war to .ear and deployment through NWDS.
    Regards,
    naveen

    Hi,
    Thanks for the reply. I was able to convert the .war file to .ear file using the deploy tool as suggested by you. But i'm having problem connecting to the J2EE engine.Our portal is active at port 50000 and hence wanted to
    deploy the EAR on the port 50000.While tryin to connect to port
    50000 we get the followin error,but connection to other port (50004) does not
    throw any error. I tried resetting the user 'Administrator' and the port to 50000 using config tool, but still the same error is being displayed. I also restarted the J2EE engine after makin the changes.
    ERROR: Cannot connect to Host: [localhost] with user name: [Administrator]
    Check your login info.
    Exception is:
    com.asap.engine.services.jndi.persistent.exceptions.NamingException:
    Exception while trying to get InitialContext. [Root exception is
    com.sap.engine.services.security.exceptions.BaseLoginException: Cannot
    create new RemoteLoginContext instance.]
    Please assist in solving the above issue.

  • How to deploy .WAR or .EAR  or .SDA file

    dear friends,
    I created a dictionary file and an ear file.
    From Netweaver studio i configured SAP J2EE Engine with the IP address and the port number as 3601 ( even i tried 3601, 50000)
    But after selecting file and click on deploy, it is giving
    Deployment aborted message.
    But i can deploy .par file from netweaver with out any problem.
    Can anybody tell me how to deploy .ear and .sda files
    What are other ways i can deploy
    early reply appreciatd
    kantha

    Hi Kantha,
    you can try to deploy via SDM (Software Deployment Manager)! Check this link for more info: http://help.sap.com/saphelp_webas630/helpdata/en/05/4fac3e00c8b014e10000000a114084/content.htm
    Hope this helps,
    Robert

  • How to Deploy war file in oracle apps 12

    Hi,
    Please advice the steps to deploy war file on the Oracle apps release 12.
    Thanks..

    Hi,
    Have a look at the following note, it may be helpful.
    Note: 557221.1 - Oracle WebCenter 10g Application Creation and Deployment Guide for Oracle E-Business Suite Release 12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=557221.1
    Regards,
    Hussein

  • How to deploy war file in wesphere5.1

    hi
    i am new to websphere 5.1. i am trying to deploy war file in websphere admin it giving an error that ear file is corrupt. same file is working with weblogicc..
    so please tell me step by step .
    if is there any other site where can i get the step step process..
    thanks
    anagh

    first step: read documentation
    second step: apply gathered knowledge
    a few pointers, if i am not mistaken your problem is that a weblogic ear uses weblogic specific application.xml, you might wanna focus on that

  • How to deploy war file in embedded Tomcat in UCM

    Hi ,
    Can anyone please share the steps to configure embedded Tomcat in UCM, And steps to deploy individual JSP and War file.
    thanks,
    Edited by: user4884609 on Feb 13, 2012 4:23 PM

    one more question :
    The Url to access war file is something like this :
    http://localhost/idc/groups/jsp/documents/webapps/testwar/test.jsp
    Can we have friendly URL for war file ? something like http://localhost/testwar/test.jsp or may be http://localhost/idc/testwar/test.jsp ?

Maybe you are looking for

  • How do I use just the audio from a clip without the video?

    Can't remember how to use just the audio from a clip, without the video.  FCP X can't select like FCP&

  • About spfile creating in oracle 10g while creating a new database

    hi everyone, i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the scr

  • Help - Mac is VERY Slow for gaming/Video - Etrecheck Report Included

    my macbook. 13-inch, Aluminum, Late 2008 Processor  2.4 GHz Intel Core 2 Duo Memory  4 GB 1067 MHz DDR3 Graphics  NVIDIA GeForce 9400M 256 MB Software  OS X 10.8.3 (12D78) I recently updated to Yosemite and notice a severe drop in my mac functioning.

  • Can not query AP Payment Batch.

    Hi All, Our payables department setup a payment batch today and it completed without any error. When we try to query the batch by batch name, the query returns nothing. We can see the rest of the batches that were processed today but not this one. Is

  • How to use node functions in Message mapping !!

    Hi  Gurus, I have got one issue in message mapping, please can any one put some ideas on this !! Source Structure <Group_ZA>  0..unbound      <D02_ZA>           0.. unbound          ZA_01             0..1   - QA          ZA_02             0..1      2