Path Changes from hot deploy to war file deploy

We are using hot-deploy in our development environment. When we move from
          hot-deploy to war file deployment in the test environment, we have to recode
          all of our servlets to point to a new URL for our JSPs. Obviously, this
          slows up war file deployment. We'd like to keep hot deploy for development
          purposes, but need to resolve this issue.
          Hot deploy environment:
          wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver linked
          to our content (JSP, HTML, source code, etc.) directory, in this case
          /u1/webapps/zq.
          wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver/WEB-INF/
          classes/com linked to our class library structure.
          Here's what works in hot deploy:
          gotoPage("/zq/jsp/ZipQuote.jsp", request, response );
          We must change it to this when we move to a war file:
          gotoPage("/jsp/ZipQuote.jsp", request, response );
          Here's gotoPage:
          private void gotoPage( String address, HttpServletRequest request,
          HttpServletResponse response )
          throws ServletException, IOException
          RequestDispatcher dispatcher =
          getServletContext().getRequestDispatcher( response.encodeURL( address ));
          dispatcher.forward( request, response );
          Is there anything in the web.xml file we can change so that we can continue
          to use
          gotoPage("/zq/jsp/page.jsp", request, response )
          like in the hot deploy environment? I've played around with the
          <servlet>/<jsp-file> and <servlet-mapping>/<url-pattern> pairs, but with no
          luck. Any suggestions? Anything with adding a package declaration to our
          JSPs and/or precompiling them in the war file?
          I suppose it would be possible to put a JspLoc variable in the
          <context-param> or <env-entry>. Then, gotoPage( JspLoc + "page.jsp",
          request, response ) would work in both environments, but that seems
          inelegant and would add complexity and overhead.
          Thanks,
          Eric
          <servlet>
          <servlet-name>ZipQuote</servlet-name>
          <jsp-file>/zq/jsp/ZipQuote.jsp</jsp-file>
          </servlet>
          <servlet-mapping>
          <servlet-name>ZipQuote</servlet-name>
          <url-pattern>/zq/jsp/ZipQuote.jsp</url-pattern>
          </servlet-mapping>
          

OK, I've removed the link from applications/DefaultWebApp/zq to
          /u1/webapps/zq and linked applications/zq to /u1/webapps/zq instead. Still
          working out a couple issues (like acessing other classes), but this looks
          like it will work. Thanks for the help.
          "Dimitri Rakitine" <[email protected]> wrote in message
          news:[email protected]
          > It sounds like in your development environment you deploy your application
          > as a defaultwebapp ("/"), and, in the test environment you deploy it as a
          > regular webapp with context-root "zq", so, you probably should change one
          > of these to match another.
          >
          > Eric F <[email protected]> wrote:
          > > We are using hot-deploy in our development environment. When we move
          from
          > > hot-deploy to war file deployment in the test environment, we have to
          recode
          > > all of our servlets to point to a new URL for our JSPs. Obviously, this
          > > slows up war file deployment. We'd like to keep hot deploy for
          development
          > > purposes, but need to resolve this issue.
          >
          > > Hot deploy environment:
          > > wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver
          linked
          > > to our content (JSP, HTML, source code, etc.) directory, in this case
          > > /u1/webapps/zq.
          > >
          wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver/WEB-INF/
          > > classes/com linked to our class library structure.
          >
          > > Here's what works in hot deploy:
          > > gotoPage("/zq/jsp/ZipQuote.jsp", request, response );
          >
          > > We must change it to this when we move to a war file:
          > > gotoPage("/jsp/ZipQuote.jsp", request, response );
          >
          > > Here's gotoPage:
          > > private void gotoPage( String address, HttpServletRequest request,
          > > HttpServletResponse response )
          > > throws ServletException, IOException
          > > {
          > > RequestDispatcher dispatcher =
          > >
          getServletContext().getRequestDispatcher( response.encodeURL( address ));
          > > dispatcher.forward( request, response );
          > > }
          >
          > > Is there anything in the web.xml file we can change so that we can
          continue
          > > to use
          > > gotoPage("/zq/jsp/page.jsp", request, response )
          > > like in the hot deploy environment? I've played around with the
          > > <servlet>/<jsp-file> and <servlet-mapping>/<url-pattern> pairs, but with
          no
          > > luck. Any suggestions? Anything with adding a package declaration to
          our
          > > JSPs and/or precompiling them in the war file?
          >
          > > I suppose it would be possible to put a JspLoc variable in the
          > > <context-param> or <env-entry>. Then, gotoPage( JspLoc + "page.jsp",
          > > request, response ) would work in both environments, but that seems
          > > inelegant and would add complexity and overhead.
          >
          > > Thanks,
          >
          > > Eric
          >
          > > <servlet>
          > > <servlet-name>ZipQuote</servlet-name>
          > > <jsp-file>/zq/jsp/ZipQuote.jsp</jsp-file>
          > > </servlet>
          > > <servlet-mapping>
          > > <servlet-name>ZipQuote</servlet-name>
          > > <url-pattern>/zq/jsp/ZipQuote.jsp</url-pattern>
          > > </servlet-mapping>
          >
          >
          >
          > --
          > Dimitri
          

Similar Messages

  • How to go from a .wsdl to .war file to deploy on Tomcat ? (using jax-rpc?)

    I have created a .wsdl file using XMLSpy and I want to deploy the service on tomcat. I have been unsuccessful in using the "wscompile -import" option.
    Does anyone know how to cross-compile a .wsdl file into a .war so it can be deployed on tomcat? If there is another way other than a .war file, that is fine too...
    Currently, I am using WSDL2Java tool by Apache Axis. I take my .wsdl file use the WSDL2Java tool to get the java files, Then I run the java files through wscompile, wsdeploy etc.... the problem with this approach is that the .wsdl file produced by the wsdeploy does not support the document encoding (everything switched to rpc) and no literal either (I think).
    If anyone has figured out a better way of going from .wsdl to java or .war or tomcat.. please let me know.. I'm running out of options...
    Thank you !

    The link worked correctly for me. You can also refer to a recently published whitepaper at
    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html. Scenario 5 in second part (https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario5) of the whitepaper describes how to achieve your scenario.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    Thanks for your interest in JAX-RPC.
    Regards,
    -Arun

  • Changing database connection details aftre WAR file deployment

    Hello,
    I create a WAR deployment file and distribute this to a Tomcat web container. The package unpacks as expected however the production database details are different from my devlopment environment. The database connection name is the same. I thought if I simply change the connection details in the connections.xml file and restart the web app this would do the trick. It does not. What am I missing?

    Maybe your application is using a connection as defined in data-sources.xml. Check there.

  • Need help changing from SQL dbo to mdf file

    My project was started using dbo is there a way to change this to an mdf without changing out the database.

    I think you answered my question the datasets in my project are connected to sqlexpress instance, Iwant to remove this connection and add a connection to an MDF file in my project. Maybe this will help explain my question better. 
    You cannot directly add connection to mdf file.But you can achieve this by first attching this MDF file to SQL express( this has some limitations like max of  4 Gfile can be attached to Sql server 2008 and 10 G for 2012).Is this you want to achieve ?
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Motion paths change from smooth to linear when I reopen a project

    Hi All
    I'm using Motion 3 and I am finding that after setting my bezier points to smooth, then saving the project, when I reopen the file all the points I had previously set to smooth are now linear?!
    Does anyone have a clue why this is happening and how I can fix it?
    Thanks in advance.

    Thanks to the people at The Cow!
    It would appear that LOCKING layers causes this to happen. Like other people I thought that locking my layers would prevent accidental changing of parameters but locking the layer actually causes this parameter change.
    I hope Apple sort out this glitch.

  • SJWS SP3 - Not including some jars from war file

    I have a problem when deploying my application using the new Java Web Server SP3 that when my application is deployed my weblogic.jar and j2ee.jar are not included in the classpath that is created.
    I have turned on finest detail logging and it does not say why these jar files are not being included in the path.
    They are in the war files lib dir just like all the other jars(about 14 of them).
    The only way I can get the app to run under SJWS is to add these other two files manualy to the classpath in the server.xml file.
    This app runs fine under JRun 4.0 with no issues.
    Why is this server dropping these jars and not even telling me it did it? What can I do to make it include these files in the proper classpath?
    Thx

    Here are the log entries.
    finer: WebappLoader[/vc]: WEB3107: Deploy WAR /WEB-INF/lib/weblogic.jar to
    C:\Sun\WebServer6.1\https-mis-lt-23974.corporate\webapps\XXXXXXX\WEB-INF\lib\weblogic.jar
    finer: WebappLoader[/vc]: WEB3107: Deploy JAR /WEB-INF/lib/j2ee.jar to
    C:\Sun\WebServer6.1\https-mis-lt-23974.corporate\webapps\XXXXXXX\WEB-INF\lib\j2ee.jarAs you can see it see's the two jar files from my WAR file.
    But when I try and run the app, have a look at the CLASSPATH it created. The two jar's are missing. WHY??????????????
    info: for host 127.0.0.1 trying to GET /vc/login/jsp/login_redirect.jsp, service
    -j2ee reports: WEB2798: [] ServletContext.log(): WEB4077: Classpath from the ser
    vlet context is:
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/NetComponents.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/aseclient.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/client.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/dbswing.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/dx.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/xxx-xxxxtags.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/xxx-xxxxxtags.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/internetbeans.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/jbcl.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/jcert.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/jnet.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/log4j.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/regexp.jar;
    C:/Sun/WebServer6.1/https-mis-lt-23974.corporate/webapps/XXXXXXX/WEB-INF/lib/xerces.jar;
    /C:/Sun/WebServer6.1/bin/https/jar/webserv-rt.jar;/C:/j2sdk1.4.2_04/lib/tools.jar;
    /C:/Sun/WebServer6.1/bin/https/jar/webserv-ext.jar;
    /C:/Sun/WebServer6.1/bin/https/jar/webserv-jstl.jar;
    /C:/Sun/WebServer6.1/bin/https/jar/ktsearch.jar;
    /C:/app/XXXXXXX/;
    /C:/j2sdk1.4.2_04/jre/lib/ext/dnsns.jar;
    /C:/j2sdk1.4.2_04/jre/lib/ext/ldapsec.jar;
    /C:/j2sdk1.4.2_04/jre/lib/ext/localedata.jar;
    /C:/j2sdk1.4.2_04/jre/lib/ext/sunjce_provider.jar

  • JSP is not updated after redeploying new war file

    Hi
    I have a simple code change in JSP in a war file. When I redeploy the war file, I do not see modified JSP. Very strange.
    I am using Weblogic 8.1 and copying new war file under Admin/upload folder.
    Thank you
    RM

    Here are the steps:
    1. Modify JSP
    2. Run ant to create new war file
    3. Copy war file to Weblogic's Admin/upload/web_module_name folder
    Redeploy Application from console or restarting admin and appserver does not seem to unjar modified war file into Admin/upload and Stage folders. Can someone tell me how to force weblogic to take this new war file to deploy into Stage area?

  • Reposting Question about WAR files because...

    ... because I am truly at my wits end and almost out of time for this project. My apologies. Can someone please help? Thanks.
    +=====================
    I know this should be trivial but it is just not working for me...
    I have a (Tomcat 3.2.3) application consisting of various html and jsp and tld files currently under \webapps\alan\app1. The tags refer to handlers and tei files in \webapps\WEB-INF\classes\alan\app1. The web.xml file in \webapps\WEB-INF does not refer to any of these elements at the moment. Everything works just fine.
    I want to create an app1.war file for all the above which can be deployed somewhere else entirely, say c:\bob. According to what I read in various places, all I need to do is create a web.xml file that adds a <servlet> tag for the jsp files (using <jsp-file> rather than <servlet-class>), create an app1.war file using the jar utility, and add a <context> block to server.xml to define a virtual path to c:\bob\app1.war. I did all these but Tomcat (after restart) cannot find my jsp files.
    I believe I must be specifying something incorrectly. Would the context block be something like:
    <context path="/whatever" docBase="c:\bob\app1.war" crossContext="false" debug="0" reloadable="true" trusted="false">
    Also, in the original location I pointed my browser at alan1/app1/fu.jsp and Tomcat found the files easily (since they were under webapps). Is it enough to just add to the web.xml file blocks like
    <servlet><servlet-name>fu</servlet-name><jsp-file>fu.jsp</jsp-file>
    or must I add something else to web.xml?
    Perhaps the problem is in the URL I type into the browser address?? Should it be
    http://host/whatever/fu
    or
    http://host/whatever/fu.jsp
    or
    http://host/whatever/alan/app1/fu.jsp
    where "/whatever" is the virtual path to c:\bob\app1.war defined in server.xml?
    Actually I tried all these (and other combinations) but without luck...
    Please excuse the simplicity of this question but I just cannot seem to get the war file working

    Your context is incorrect. The docBase parameter is relative to the Tomcat install directory. The following should work, provided tomcat is installed on the same drive as the jsp files etc:
    <context path="/whatever" docBase="../bob/app1"
    crossContext="false" debug="0" reloadable="true"
    trusted="false">
    The above works for the directory c:\bob\app1 with jsp & html in it, but I couldn't get it to work for a war file.
    The idea of war files is that you upload them to a server, which unpacks them wherever it wants, and automatically adds the context to its list (so you really don't need to worry about context settings in server.xml, unless you want to define a custom url that maps to your files)
    You can see this in action if you just put your war file in %TOMCAT_HOME%\webapps and start the server (don't make any other changes) - it will expand the war file automatically and add the context.
    In fact, this would be a good first step to make sure your war works and you can access the jsps after you've changed the web.xml file
    Incidentally, you wouldn't need to change the web.xml file, either, unless you specifically want to map an "alias" name to your jsps/servlets. If you're happy with just typin their actual names in your urls, then don't touch web.xml. If, however, you want the user to type "http://host/whatever/fu" instead of "http://host/whatever/fu.jsp", then you'd need to mess with web.xml
    I'd advise doing one minimalist step at a time, since Tomcat will bite & scratch you otherwise ;-)

  • War file created in Eclipse works, but fails when created by Ant

    Hi,
    I am having trouble getting my flex war file to work when I create it using Ant, even though the same war works fine when I create it from my Eclipse Export War function. This is a critical problem and any ideas or suggestions would be greatly appreciated.
    I have a working installation of LCDS running under JBoss 4.0.5 (in a CENTOS (Red Hat) environment). I have implemented a datatier in Java to interact with my PostgreSQL 8.x database. The Java code, plus the necessary flex jars and xml files and some mxml test programs, are all in an Eclipse J2EE project that I created from the flex samples.war file. It all works fine when I use Eclipse to create a WAR from the project and deploy it in JBoss. My problem is this: When I create a WAR piece by piece using Ant, then deploy it to JBoss, that WAR does not work. The error I get is this:
    javax.servlet.ServletException: Invalid Configuration: see previous failures. flex.webtier.util.ServiceUtil.setupFlexService(ServiceUtil.java:55) flex.webtier.server.j2ee.MxmlServlet.init(MxmlServlet.java:57), etc.
    When I look at the log I see this problem:
    "You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.",
    but that error is in the server log even when I use the good WAR file.
    I have compared the two wars but cannot find any substantial difference between them.
    Thanks in advance!

    Have you tried enabling debug level logging and removing the category filters in services-config.xml? It should show all the destinations being created, and if any are failing. To get the maximum level of log detail, something like this should work:
    ><logging>
    >
    > <target class="flex.messaging.log.ConsoleTarget" level="Debug">
    >
    > <properties>
    >
    > <prefix>[Flex] </prefix>
    >
    > <includeDate>false</includeDate>
    >
    > <includeTime>false</includeTime>
    >
    > <includeLevel>false</includeLevel>
    >
    > <includeCategory>false</includeCategory>
    >
    > </properties>
    >
    > </target>
    >
    > </logging>
    Have a check that your remoting destinations are shown starting correctly for both WAR files, and see if there are any messages in the log that might be relevant.

  • Deploying a war file from iasconsole

    Hi All,
    I am trying to deploy war file web application.
    In iasconsole i deployed it successfully.
    =========================================
    specify the war file location: rpmxxx
    Application name: rpmxxx
    Map to URL: /applications/rpmxxx
    =========================================
    Then i modified the following xml files under j2ee/home/config
    application.xml
    =========================================
    <web-module id="rpmxxx" path="/oracleas/9iserver/APPSERV/j2ee/home/applications/rpmxxx/rpmxxx.war"/>
    =========================================
    server.xml
    =========================================
    <application name="rpmqa" path="../applications/rpmxxx.ear" auto-start="true" />
    =========================================
    default-web-site.xml
    =========================================
    <web-app application="rpmxxx" name="rpmxxx" load-on-startup="true" root="/applications/rpmxxx"/>
    =========================================
    http-web-site.xml: i changed the port number from 8888 to 8588, and add a line of application
    =========================================
    <web-site port="8588" display-name="OC4J Java HTTP Web Site">
    <web-app application="rpmxxx" name="rpmxxx" root="/rpmxxx" />
    =========================================
    After all these are done, i tried to access the url http://hostname.company.com:8588/rpmxxx/index.jsp.
    It gives me the error "The page can not be displayed"
    I am not sure where i did it not right.
    Please help and advise.
    Thanks,
    leim

    user8749043 wrote:
    Hi All,
    I am trying to deploy war file web application.
    In iasconsole i deployed it successfully.
    =========================================
    specify the war file location: rpmxxx
    Application name: rpmxxx
    Map to URL: /applications/rpmxxx
    =========================================
    Then i modified the following xml files under j2ee/home/config
    application.xml
    =========================================
    <web-module id="rpmxxx" path="/oracleas/9iserver/APPSERV/j2ee/home/applications/rpmxxx/rpmxxx.war"/>
    =========================================
    server.xml
    =========================================
    <application name="rpmqa" path="../applications/rpmxxx.ear" auto-start="true" />
    =========================================
    default-web-site.xml
    =========================================
    <web-app application="rpmxxx" name="rpmxxx" load-on-startup="true" root="/applications/rpmxxx"/>
    =========================================
    http-web-site.xml: i changed the port number from 8888 to 8588, and add a line of application
    =========================================
    <web-site port="8588" display-name="OC4J Java HTTP Web Site">
    <web-app application="rpmxxx" name="rpmxxx" root="/rpmxxx" />
    =========================================
    After all these are done, i tried to access the url http://hostname.company.com:8588/rpmxxx/index.jsp.
    It gives me the error "The page can not be displayed"
    I am not sure where i did it not right.
    Please help and advise.
    Thanks,
    leimFind the following log file at ORACLE_HOME/opmn/logs/OC4J~<instance>~default_island~1

  • Special string in the deployment path when deploy a war file

    Hi,
    When I deploy a war file on a managed server using admin console, it always creates a special string as the sub-directory name. For example, the generated path is:
    $ORACLE_MIDDLEWARE_HOME/user_projects/domains/base_domain/servers/MyManagedServer/tmp/_WL_user/MyDeploymentName/4e5qtq/.
    Where is "4e5qtq" come from? Where to define? Can I give it a fixed name?
    Thanks,
    Richard

    It's an internally generated identifier, you can't change or control it in any manner AFAIK.
    Can you help me understand why it's important that you be able to control it, or even predict it?
    -steve-

  • Unable to deploy a war file: could path length in a war file be an issue on WIN2K?

    Hi all,
    I am unable to auto deploy a web app as a war file but has no problem to auto deploy it as an exploded directory that I drop under the
    $PortalHome/config/mydomain/applications directory of the WebLogic Server installation.
    Portal Server runs under W2K.
    I noticed that the generated war file located under $PortalHome/config/mydomain/applications.wlnotdelete contains files which path is 10 level deep and may be over
    255 char.
    Could this be a problem?
    The error I got is:
    ####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101059> <[portalServer] Loading efs40 from WAR file:
    D:\Bea\wlportal4.0\.\config\portalDomain\applications\.wlnotdelete\wl_comp19136.war>
    ####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101031> <[WebAppServletContext
    (23419224,personalizedPortal,/personalizedPortal)] extracting classfiles to D:\Bea\wlportal4.0\config\portalDomain\applications\.wlnotdelete\WEB-INF
    \_tmp_war_portalServer_portalServer_personalizedPortal:>
    ####<Dec 27, 2001 3:29:20 PM PST> <Error> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101034> <[WebAppServletContext
    (23419224,personalizedPortal,/personalizedPortal)] failure extracting WAR classes>
    java.io.IOException: The system cannot find the path specified
         at java.io.Win32FileSystem.createFileExclusively(Native Method)
         at java.io.File.checkAndCreate(File.java:1162)
         at java.io.File.createTempFile(File.java:1247)
         at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:95)
         at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3359)
         at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3330)
         at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:854)
    <snip>
    Thanks for any input.

    Puthanampatti, thanks for responding.
    What is the complete command line to deploy the war to a managed server, not Admin Server ?
    Our thinking is to deploy an exploded war directory but copy the descriptor files first.
    What do you think ?

  • Class file missing from war file deployment

    I have a web application that is being deployed to a war file. I have deployed several times successfully. Then with the latest changes, there is a class file that does not get included into the war file. It does get compiled and does exist in the project directory.
    The class file is in a seperate project from the project where the war file deployment profile is; however both projects are in the same workspace.
    There are several other classes in the project that contains the missing class file that does get included in the war file. I don't see anywhere in the profile where these files are selected individually.
    I'm at a loss as to how to fix this problem other than add the file after deployment.
    Appreciate any help or ideas...
    Keith...

    Hi Keith,
    You may want to follow this thread....
    class object missing from ear file
    Brigette

  • Unable to deploy the war file generated from jdeveloper to tomcat

    Hi
    I was able to deploy the war file after modification in the web.xml but unable to run the servlet application
    Please Help
    Dolphy

    After going thru all the steps specified in online help to deploy the web application in Tomcat server.
    I am getting the following error
    first the webapps could not be deployed because of url pattern
    <servlet-mapping>
    <servlet-name>mypackage1.BIController1</servlet-name>
    <url-pattern>mypackage1.BIController1</url-pattern>
    </servlet-mapping>
    which when i change to
    <servlet-mapping>
    <servlet-name>mypackage1.BIController1</servlet-name>
    <url-pattern>\mypackage1\BIController1</url-pattern>
    </servlet-mapping>
    deploys the application
    but i get the following errors in the tomcat log file
    2004-05-03 10:34:12 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-05-03 10:34:12 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-05-03 10:34:12 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[webapp1]Marking servlet uix as unavailable
    2004-05-03 10:34:13 StandardContext[webapp1]Error loading WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    StandardClassLoader
    delegate: true
    repositories:
    file:C:\tomcat\shared\classes\
    ----------> Parent Classloader:
    StandardClassLoader
    delegate: true
    repositories:
    file:C:\tomcat\common\classes\
    file:C:\tomcat\common\endorsed\xercesImpl.jar
    file:C:\tomcat\common\endorsed\xmlParserAPIs.jar
    file:C:\tomcat\common\lib\ant.jar
    file:C:\tomcat\common\lib\commons-collections.jar
    file:C:\tomcat\common\lib\commons-dbcp-1.1.jar
    file:C:\tomcat\common\lib\commons-el.jar
    file:C:\tomcat\common\lib\commons-pool-1.1.jar
    file:C:\tomcat\common\lib\jasper-compiler.jar
    file:C:\tomcat\common\lib\jasper-runtime.jar
    file:C:\tomcat\common\lib\jmx.jar
    file:C:\tomcat\common\lib\jsp-api.jar
    file:C:\tomcat\common\lib\naming-common.jar
    file:C:\tomcat\common\lib\naming-factory.jar
    file:C:\tomcat\common\lib\naming-java.jar
    file:C:\tomcat\common\lib\naming-resources.jar
    file:C:\tomcat\common\lib\servlet-api.jar
    ----------> Parent Classloader:
    [email protected]
    oracle.cabo.servlet.UIXServlet
    java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    2004-05-03 10:34:13 StandardContext[webapp1]Servlet /webapp1 threw load() exception
    javax.servlet.ServletException: Wrapper cannot find servlet class oracle.cabo.servlet.UIXServlet or a class it depends on
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:989)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    ----- Root Cause -----
    java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Thanks
    Dolphy

  • How to deploy a war file from a different app server to the SAP one

    Hello,
    I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?

    Hi Roy,
    in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
    You can do this using Netweaver Developer studio.
    Perform the following steps:
    - Start NWDS
    - Create a New Enterprise Application Project
    - Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
    - Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
    - Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
    => You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
    - Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
    - Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
    You are done
    The EAR file is generated and will be created in your workspace.
    Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
    Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
    You can now deploy the ear file to SAP J2EE
    Hope this helps (Reward points for helpful answers are appreciated!)
    Cheers

Maybe you are looking for

  • Error in installing GWPA

    Hii I want to install GWPA in my eclipse. I have installed android sdk.But i am getting  the following error , while installing GWPA I have used the following document for installing GWPA How to install Gateway Productivity Accelerator (GWPA) plugin

  • Failed To Renew Ip Address.

    Please help me i've about had it with my wireless adapter. Read carefully. I have a linksys wireless adapter and router. I have 2 xboxes and 2 computers in my house all which use the linksys router. Both xboxes and the 1 of the computers (laptop) can

  • Directory service console not able to open in a Domain Controller

    Hai, I have a 2008 domain controller. when i open the users and computer console i get the below error data from "domain name" is not available from domain controller because: the search filter cannot be recognized. try again later, or choose another

  • Boxes appear between letters? need help...

    I am writting a program and want to print the contents of a buffer to a text file, but boxes appear between all letters and spaces in the text file. Any ideas?

  • Modify BeanInfo programatically at runtime?

    I'm trying to customize the order in which properties are stored for a JavaBean, based on information gathered at runtime. These are classes generated by JAXB from an XSD schema. The problem is that I need the properties returned in the same order in


HashFlare