WAR deployment problem

          ok this is really confusing and annoying!!! I have a .war file (servlet + jsps
          + descriptor) packaged up in the correct way, I have checked the docs like 100
          times.. the problem is, I'm running win NT and when I create the war file I'm
          executing 'jar' on a directory structure..
          WEB-INF/classes
          WEB-INF/web.xml
          *.jsp
          But when I view the resulting .war file in winzip, I see this..
          WEB-INF/classes/all classes.....
          web-inf/web.xml
          where on earth is this lowercase web-inf coming from ??
          as a result when i deploy this war file, it deploys fine and the init() method
          of the servlet is called, however when i try to access the servlet via it's alias
          (specified in web.xml) it can't be found.
          The exact same files work when used as an exploded directory (DefaultWebApp),
          and can be accessed via the alias.
          The MS-DOS name of the directory is WEB-INF so I simply can't understand where
          the "extra" lower case
          directory web-inf is coming from........
          Am I correct in assuming the lowercase web-inf is the problem ?? I'm not 100%
          sure cos the weblogic
          console can read & edit this xml file.
          Has anyone else experienced WAR deployment on windows problems like this? I'd
          love to get my hands on a unix box but my company suffer from unix-phobia :/
          any thoughts/suggestions/solutions greatly appreciated,
          thanks,
          sd
          

Explorer in Windows has an option to allow all upper case, for example.
          Peace,
          Cameron Purdy
          Tangosol, Inc.
          Clustering Weblogic? You're either using Coherence, or you should be!
          Download a Tangosol Coherence eval today at http://www.tangosol.com/
          "SD" <[email protected]> wrote in message
          news:[email protected]...
          >
          > I'm sorry but I don't understand what you mean by..
          >
          > >Case will mess you up. Set your explorer options so NT isn't constantly
          > >"fixing" your case.
          >
          >
          > under 'options' in windows Explorer I don't see anything
          > to with case ??
          >
          > Also - are there any war files around that I can just
          > get and install and access via their servlet-mapping just
          > as a sanity check for my weblogic installation ??
          > I can't get ANY servlet (in a war file) to be accessed via
          > it's servlet mapping. :( But these servlet mappings can
          > be seen and edited via the weblogic console.
          >
          > thanks,
          > sd
          >
          > >"SD" <[email protected]> wrote in message
          > >news:[email protected]...
          > >>
          > >> ok this is really confusing and annoying!!! I have a .war file
          (servlet
          > >+ jsps
          > >> + descriptor) packaged up in the correct way, I have checked the docs
          > >like
          > >100
          > >> times.. the problem is, I'm running win NT and when I create the war
          > >file
          > >I'm
          > >> executing 'jar' on a directory structure..
          > >>
          > >> WEB-INF/classes
          > >> WEB-INF/web.xml
          > >> *.jsp
          > >>
          > >> But when I view the resulting .war file in winzip, I see this..
          > >>
          > >> WEB-INF/classes/all classes.....
          > >> web-inf/web.xml
          > >>
          > >> where on earth is this lowercase web-inf coming from ??
          > >> as a result when i deploy this war file, it deploys fine and the init()
          > >method
          > >> of the servlet is called, however when i try to access the servlet
          > >via
          > >it's alias
          > >> (specified in web.xml) it can't be found.
          > >>
          > >> The exact same files work when used as an exploded directory
          > >(DefaultWebApp),
          > >> and can be accessed via the alias.
          > >>
          > >> The MS-DOS name of the directory is WEB-INF so I simply can't
          understand
          > >where
          > >> the "extra" lower case
          > >> directory web-inf is coming from........
          > >>
          > >> Am I correct in assuming the lowercase web-inf is the problem ?? I'm
          > >not
          > >100%
          > >> sure cos the weblogic
          > >> console can read & edit this xml file.
          > >>
          > >> Has anyone else experienced WAR deployment on windows problems like
          > >this?
          > >I'd
          > >> love to get my hands on a unix box but my company suffer from
          unix-phobia
          > >:/
          > >>
          > >> any thoughts/suggestions/solutions greatly appreciated,
          > >> thanks,
          > >> sd
          > >>
          > >
          > >
          >
          

Similar Messages

  • Mysterious .war deployment problem

    Hi,
    I apologize if this might not the proper forum, but I'm stuck, so any help will do.
    I'm using jboss 2.4.1 and tomcat 3.2.3. Currnetly, I'm
    experiencing weird problem, desperatly need help. I had
    matashop.webtier.Tree, matashop.webtier.TreeBuilder, and
    matashop.webtier.TreeBuilderImpl classes.
    After sometime, I decided to switch those three classes under
    matashop.util (so current structure is: matashop.util.Tree,
    matashop.util.TreeBuilder, matashop.util.TreeBuilderImpl).
    A class (matashop.util.CategoryTreePrinter) uses those three classes.
    A JSP (ShowCategories.jsp) uses matashop.util.CategoryTreePrinter.
    However, each time I deployed my ear (consists of jar and war), and
    access ShowCategories.jsp which uses matashop.util.CategoryTreePrinter, I got this
    exception (my platform is win2k) :
    ========================================================================
    javax.servlet.ServletException: matashop/webtier/TreeBuilder
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    etc...
    Root cause:
    java.lang.NoClassDefFoundError: matashop/webtier/TreeBuilder
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            at catalog._0002fcatalog_0002fShowCategories_0002ejspShowCategories_jsp_0._jspService(_0002fcatalog_0002fShowCategories_0002ejspShowCategories_jsp_0.java:191)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    etc...=================================================================================================
    I've check tomcat log, jboss log, it seems classpath is ok to me (I don't post here
    rightnow cause it's too long, but I'll put some part here if some of you think it's
    needed). I even clean tomcat/work, jboss/tmp/deploy, but it's just the same, I still
    got the same exception. I've rebuild all classes.
    I once suspect maybe the .war problem, so I tried to remove matashop.util.CategoryTreePrinter
    from the .war, and I got expected response when I access ShowCategories.jsp --
    complaining couldn't find matashop.util.CategoryTreePrinter. So I believe my
    .war is correct.
    Please help me, I've been working on this issues for days :(((((((((
    -- Verdi March --

    Check ur jsp. It seems in ur jsp u might have imported or given the class as matashop.webtier.TreeBuilder

  • Portlet Producer WAR Deployment Problem

    Hi All,
    Newbie here..
    I posted this question on the other forum but nobody answered. I'd like to try it here in the Webcenter page since I am trying to create a portlet for my webcenter.
    I created a very simple Portlet Producer Application. It is some sort of a hello world application.
    When I am trying to deploy my war file into the integrated Weblogic server, I am encountering below error on the deployment tab.
    [01:35:16 PM] [Deployer:149192]Operation 'deploy' on application 'HelloWorldPortlet' is in progress on 'DefaultServer'
    [01:35:17 PM] [Deployer:149193]Operation 'deploy' on application 'HelloWorldPortlet' has failed on 'DefaultServer'
    [01:35:17 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application HelloWorldPortlet on DefaultServer.: :oracle.mds.exception.MDSExceptionList:MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "WebCenterFileMetadataStore" is invalid.   
    MDS-00503: The metadata path "C:\Users\COMPUTER1\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain\servers\DefaultServer\tmp\_WL_user\HelloWorldPortlet\mj8mht\mds" does not contain any valid directories.
    [01:35:17 PM] Weblogic Server Exception: weblogic.application.ModuleException: :oracle.mds.exception.MDSExceptionList:MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "WebCenterFileMetadataStore" is invalid.   
    MDS-00503: The metadata path "C:\Users\COMPUTER1\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain\servers\DefaultServer\tmp\_WL_user\HelloWorldPortlet\mj8mht\mds" does not contain any valid directories.
    [01:35:17 PM]   See server logs or server console for more details.
    [01:35:17 PM] weblogic.application.ModuleException: :oracle.mds.exception.MDSExceptionList:MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "WebCenterFileMetadataStore" is invalid.   
    MDS-00503: The metadata path "C:\Users\COMPUTER1\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23\DefaultDomain\servers\DefaultServer\tmp\_WL_user\HelloWorldPortlet\mj8mht\mds" does not contain any valid directories.
    [01:35:17 PM] ####  Deployment incomplete.  ####
    [01:35:17 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)I am particularly not sure, what persistence-config file is the deployment module looking for.
    Please kindly help. Thanks

    Hi Yannick,
    Here's my adf-config.xml file. I didnt change or alter anything from here when I created my app.
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
                xmlns:config="http://xmlns.oracle.com/bc4j/configuration"
                xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
                xmlns:sec="http://xmlns.oracle.com/adf/security/config"
                xmlns:mdsC="http://xmlns.oracle.com/adf/mds/config">
      <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">
        <defaults useBindVarsForViewCriteriaLiterals="true"/>
        <startup>
          <amconfig-overrides>
            <config:Database jbo.locking.mode="optimistic"/>
          </amconfig-overrides>
        </startup>
      </adf-adfm-config>
      <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
        <adf-property name="adfAppUID" value="HelloWorldPortletApp-2972"/>
      </adf:adf-properties-child>
      <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
        <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
                                credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
      </sec:adf-security-child>
      <mdsC:adf-mds-config version="11.1.1.000">
        <mds-config xmlns="http://xmlns.oracle.com/mds/config">
          <persistence-config>
            <metadata-namespaces>
              <namespace path="/oracle/adf/portlet"
                         metadata-store-usage="WebCenterFileMetadataStore"/>
              <namespace path="/oracle/adf/portletappscope"
                         metadata-store-usage="WebCenterFileMetadataStore"/>
            </metadata-namespaces>
            <metadata-store-usages>
              <metadata-store-usage id="WebCenterFileMetadataStore"
                                    default-cust-store="true" deploy-target="true">
                <metadata-store class-name="oracle.mds.dt.persistence.stores.file.SrcControlFileMetadataStore">
                  <property name="metadata-path" value="../../mds"/>
                </metadata-store>
              </metadata-store-usage>
            </metadata-store-usages>
          </persistence-config>
          <cust-config>
            <match>
              <customization-class name="oracle.adf.share.config.SiteCC"/>
            </match>
          </cust-config>
          <cache-config>
            <max-size-kb>100000</max-size-kb>
          </cache-config>
        </mds-config>
      </mdsC:adf-mds-config>
    </adf-config>Thanks

  • WAR Deployment Problem (WEB-INF/web.xml not found)

              I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy it
              when it start up. Here is what I did,
              1. I jared all necessary files including WEB-INF\web.xml in the myapp.war file;
              here I used all uppercase for WEB-INF directory, but after I jared it, it shew
              up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file. I think
              this is the behavior of jar program.
              2. I appended the myapp.war to the weblogicclasspath in the start script;
              3. In weblogic.properties file, I specified two lines:
              weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              weblogic.httpd.defaultWebApp=myapp
              4. Then I start up the WebLogic server named "default". It shew the following
              error messages:
              java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              ml
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:177)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp' as d
              efault servlet context
              java.lang.NullPointerException
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application 'c:/weblo
              gic/default/myapp.war'
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
              at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:134)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Please help me find out what is wrong with this. Greatly Appreciated.
              Thanks in advance,
              Donald
              

              If it is still not working, try to set the weblogic.httpd.documentRoot =c:/weblogic/default
              in the weblogic.properties & try.
              "Donald Ye" <[email protected]> wrote:
              >
              >
              >I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy
              >it
              >when it start up. Here is what I did,
              >
              >1. I jared all necessary files including WEB-INF\web.xml in the myapp.war
              >file;
              >here I used all uppercase for WEB-INF directory, but after I jared it,
              >it shew
              >up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file.
              >I think
              >this is the behavior of jar program.
              >
              >2. I appended the myapp.war to the weblogicclasspath in the start script;
              >
              >3. In weblogic.properties file, I specified two lines:
              >weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              >weblogic.httpd.defaultWebApp=myapp
              >
              >4. Then I start up the WebLogic server named "default". It shew the following
              >error messages:
              >
              >java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              >ml
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:177)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp'
              >as d
              >efault servlet context
              >java.lang.NullPointerException
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application
              >'c:/weblo
              >gic/default/myapp.war'
              >java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in
              >jar file
              > at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:134)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >
              >Please help me find out what is wrong with this. Greatly Appreciated.
              >
              >Thanks in advance,
              >
              >Donald
              

  • War an ear deployment problem

    hi,
    I got a war and ear that share common classes. I would like to deploy both of them on the same application server.
    I started with weblogic and it worked fine.
    Now I am running it on Websphere - the problem is the ear application failed to start - it cant find one of it's property files even though it is in the class path.
    I see that the jar containing all the properties is in the class path - the application can access all other properties files except this one.
    The problematic properties file is my.commons.logging.properties which is a refactoring to the common.logging jar.
    I also see that if the war is not deployed - the ear is deployed without a problem.
    the war contains commons.logging.properties and because Websphere also had it's own common.logging i had to use "parent last" for the war deployment.
    If i change the load order of the applications(the ear is loaded first) - the properties file is found.
    I will be happy to hear any idea you got about this.
    I don�t understand how two different applications affect each other that way.
    Thanks!!!

    Sounds like a bug. You can report it to [email protected]
    -- Rob

  • Problem with war deployment

              hello everybody,
              i deployed the one .war file which contains 1 servlet and another 10 simple classes.i
              deployed using the console and everything shows fine.the servlet mapping everything
              seems to be perfect.but when i run the application nothing happens.i restared
              the server.
              thanks for helping.
              sada
              

              You will have to be more clear on what is happening.
              With you description, I assume that it is working fine in exploded format. There
              are couple of things that can go wrong on war deployment.
              1) Check your war file contents. Path of the contents should not include the war
              file name.
              For eg: /wstt/WEB-INF/classes/com/util/Sample.class
              if above is the fully qualified path of a class and if your war file name is wstt
              then war file should conatin the path as
              /WEB-INF/classes/com/util/Sample.class
              2) Check your Target cluster/server in your console for the war file.
              I hope this helps.
              - Albert
              "sada" <[email protected]> wrote:
              >
              >hello everybody,
              >i deployed the one .war file which contains 1 servlet and another 10
              >simple classes.i
              >deployed using the console and everything shows fine.the servlet mapping
              >everything
              >seems to be perfect.but when i run the application nothing happens.i
              >restared
              >the server.
              >
              >thanks for helping.
              >sada
              >
              

  • RE: [iPlanet-JATO] Re: Deployment problem

    Chidu,
    I think that you are mired in the very common confusion of the default
    behavior of the ApplicationServletBase.parsePathInfo() which will determine
    the controlling/handling ViewBean via a URL design pattern. Lets take a look
    at the URL
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp
    is decomposed as follows:
    /NASApp -> well, this is long story but is absolutely necessary, welcome to
    iAS
    /MigtoolboxSampleAppWar -> is the web application name, taken as the name of
    the WAR file when there is no EAR file (this allows the Servlet/JSP
    container to deferences the web application root under
    <ias>/APPS/modules/MigtoolboxSampleAppWar) I think this part of the URL is
    called th Context Path
    /MigtoolboxSample -> is the Servlet Path, and will either directly reference
    or match a Servlet Mapping
    for instance
    <servlet-mapping>
    <servlet-name>MigtoolboxSampleServlet</servlet-name>
    <url-pattern>/MigtoolboxSample/*</url-pattern>
    </servlet-mapping>
    tells the Servlet Container that the Servlet Path
    /MigtoolboxSample
    maps to the Module Servlet MigtoolboxSampleServlet
    This is how EVERY request makes its way to the "front controller" pattern in
    JATO. It is fundamental to JATO Applicatioan that every request pass
    through the ModuleServlet.
    every else on the URL past the Servlet Path is the PATH INFO. Based on this
    understanding, you will see why the
    ApplicationServletBase.parsePathInfo()
    is so important. In parsePathInfo() the PATH INFO is compared to the design
    pattern
    /VIEWBEANNAME*
    to determine the handling ViewBean from the first String Token in the path
    info. For instance, the starting URL of the Sample Application is
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage
    The PATH INFO is [IndexPage]
    and IndexPage[ViewBean] is the handling ViewBean. Therefore, any simiarl
    URL like
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.matt
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.mike
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.chidu
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.XXX
    will all result in the same handling View Bean
    IndexPageViewBean
    It is very important to understand that you CANNOT hit the JATO JSPs
    directly. You must hit the "front controller" ModuleServlet which will
    always delegate control to the handling ViewBean (a la, the "service to
    workers" pattern)
    You can attempt to hit the JSP directly but you need the right J2EE URL
    /NASApp/MigtoolboxSampleAppWar/MigtoolboxSampleApp/MigtoolboxSample/IndexPag
    e.jsp
    this URL will directly hit the JSP. However, you will recieve an error
    because the JATO framework quickly determines that there is no
    RequestContext in the HttpRequest attributes and assumes that the "front
    controller" was bypassed. Try it. You will get ERROR.
    Lets go back to what you are trying to do, place Models and Viewbeans in
    separate directories. I recommend that you move the Models. Models are
    ONLY referenced by TYPE via the ModelManager, the compiler will ensure that
    your code is correct and matches the packages, file locations, import
    statements, etc. ViewBeans, on the other hand are related to the
    ModuleServlet their are contained in and are loaded via type names according
    to a design pattern.
    if you want to separate models and Viewbean then simply move the Model and
    make sure everything compiles.
    you cannot move the ViewBeans
    if you do want to move the JSP peers of the Viewbeans, then you can put them
    anywhere in the web application doc root. When you do, update the
    DEFAULT_DISPLAY_URL as Mike suggested
    matt
    -----Original Message-----
    From: Mike Frisino [mailto:<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239026066196217193234150166091061">Michael.Frisino@S...</a>]
    Sent: Thursday, July 26, 2001 10:48 PM
    Subject: Re: [iPlanet-JATO] Re: Deployment problem
    Chidu,
    Did you have it running fine in the original default configuration, before
    you started changing things around? The URL should not access the .jsp
    directly. The URL should look more like this
    "/NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage", without the
    .jsp.
    Also, please read the "Migration Tech Notes" document that is
    linked to the
    main doc index page. There is some information in there related
    to trying to
    run the sample application under iAS (see Tech Note 4 in
    particular, "Note
    on running the iMT "MigtoolboxSample" in iPlanet Application Server )
    ----- Original Message -----
    From: <<a href="/group/SunONE-JATO/post?protectID=219015020150194233215218164140244063078048234051197">chidusv@y...</a>>
    Sent: Thursday, July 26, 2001 7:27 PM
    Subject: [iPlanet-JATO] Re: Deployment problem
    Hi Mike,
    I tried changing the url in all the viewbeans to reflect the new sub-
    directory for the viewbeans(I have placed the jsps and viewbeans in
    a sub-directory under MigtoolboxSampleApp/MigtoolboxSample). But I'm
    still not able to get access to the jsps. I basically see the
    message "GX Error Socket Error Code missing!!" error on the browser
    thrown by iPlanet, but the log doesn't tell me anything. Does the url
    which I give to access the jsp change accordingly, i.e., should I
    give something other
    than /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp.
    If I try to use any other url other
    than /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp, I
    see the FileNotFoundException in the log.
    I guess I'm still missing something.
    Thanks for your help.
    --Chidu.
    --- In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136158139046209">iPlanet-JATO@y...</a>, "Mike Frisino" <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239026066196217130152150">Michael.Frisino@S...</a>> wrote:
    Chidu.
    Did you also adjust the following member in each of the ViewBeans?
    public static final String DEFAULT_DISPLAY_URL=
    "/jatosample/module1/Index.jsp";
    Try adjusting this to be consistent with your new hierarchy.
    Also, if you still have problems, send us the error message thatyou recieve
    when you try to access the page. That would help.
    ----- Original Message -----
    From: <<a href="/group/SunONE-JATO/post?protectID=219015020150194233215218164036129208">chidusv@y...</a>>
    Sent: Thursday, July 26, 2001 4:48 PM
    Subject: [iPlanet-JATO] Deployment problem
    Hi,
    We have a requirement to seperate the models and viewbeans and
    keep
    them in seperate directories. Is it possible to seperate the
    viewbeans and models not be in the same directory?
    I tried seperating the two in the MigtoolboxSampleApp application
    provided by JATO. I changed the package and import statements
    accordingly in the viewbeans, jsps and the models. But when I
    deployed the application, I'm not able to access the Index page or
    any of the jsps. Does the ApplicationServletBase always look forthe
    viewbean in the same path as that of the module servlet?
    Any help will be appreciated.
    Thanks,
    Chidu.
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>

    Hi Mike,
    I tried changing the url in all the viewbeans to reflect the new sub-
    directory for the viewbeans(I have placed the jsps and viewbeans in
    a sub-directory under MigtoolboxSampleApp/MigtoolboxSample). But I'm
    still not able to get access to the jsps. I basically see the
    message "GX Error Socket Error Code missing!!" error on the browser
    thrown by iPlanet, but the log doesn't tell me anything. Does the url
    which I give to access the jsp change accordingly, i.e., should I
    give something other
    than /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp.
    If I try to use any other url other
    than /NASApp/MigtoolboxSampleAppWar/MigtoolboxSample/IndexPage.jsp, I
    see the FileNotFoundException in the log.
    I guess I'm still missing something.
    Thanks for your help.
    --Chidu.
    --- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
    >
    Chidu.
    Did you also adjust the following member in each of the ViewBeans?
    public static final String DEFAULT_DISPLAY_URL=
    "/jatosample/module1/Index.jsp";
    Try adjusting this to be consistent with your new hierarchy.
    Also, if you still have problems, send us the error message that you recieve
    when you try to access the page. That would help.
    ----- Original Message -----
    From: <chidusv@y...>
    Sent: Thursday, July 26, 2001 4:48 PM
    Subject: [iPlanet-JATO] Deployment problem
    Hi,
    We have a requirement to seperate the models and viewbeans and
    keep
    them in seperate directories. Is it possible to seperate the
    viewbeans and models not be in the same directory?
    I tried seperating the two in the MigtoolboxSampleApp application
    provided by JATO. I changed the package and import statements
    accordingly in the viewbeans, jsps and the models. But when I
    deployed the application, I'm not able to access the Index page or
    any of the jsps. Does the ApplicationServletBase always look for the
    viewbean in the same path as that of the module servlet?
    Any help will be appreciated.
    Thanks,
    Chidu.
    [email protected]

  • File Not Found Error: new WAR deployment

    I'm trying to find the path to my new WAR deployed JSP files. The following error occurs:
    Exception:
    java.io.FileNotFoundException: d:\oracle\ora9ias_test\apache\apache\htdocs\RAP_Editor_viaWAR\RapView1_Browse.jsp
    In my address bar I type: http://(oracle_home):7778/RAP_Editor_viaWAR/RapView1_Browse.jsp
    I don't know why it is looking under the \apache\apache\htdocs directory. What configuration step have I missed? I'm having a similar problem finding the demo apps as well.
    Thanks!
    -Tony.

    Well, I've found out that my HTTP path issues we're related to the Portal SDK install. The OC4J instance "JDev" seems to mess up JSPs and results in a FileNotFound exception. Its looking for JSPs in the wrong place - http://<oracle-home>/apache/apache/htdocs/j2ee/...
    The fix: comment out the include directive in httpd.conf that references JDev.
    Another BC4J JSP issue: Be sure your datatags.jar file is current or else you'll get an HTTP 500 error due to an unsupported attribute. The application.log file will show "Error: itermode is not a property of oracle.jbo.html.jsp.datatags.DataSourceTag".
    -Tony.

  • Deployment Problems of Enterprise Application in NWDS 7.1

    Hello Everyone,<br>
    <br>
    I am having a problem when trying to deploy an application I made to the server. The project consists of two DCs, one which is an Enterprise Application and the other is a Web Module. I have configured the web module to be a dependency of the Enterprise application, so that the .war file generated from the Web Module DC is contained within the .ear file created when the Enterprise Application DC is built. The only dependency that the Web Module DC has is "engine.jee5.facade," which is there by default when it is created. I have not added any code to either DC, because I was just trying to test if I could deploy something to the server before I got into that. When I build the Enterprise Application DC, both DCs build successfully (because of the dependency). When I deploy the Enterprise Application DC, I get an "[ERROR CODE DPL.DC.5089]" error message. When I checked the SDN for what that error code means, I get sent to <a href="http://wiki.sdn.sap.com/wiki/display/JSTSG/(JSTSG)(Deploy)Problems-P58">http://wiki.sdn.sap.com/wiki/display/JSTSG/(JSTSG)(Deploy)Problems-P58</a>, which is pretty vague.
    I did try to see if I could deploy the .ear by itself, without the war file within it (by removing the dependency on the Enterprise Application DC) and that seemed to work ok. Its just seems to be when the Web Module is a dependency of the Enterprise Application is when it fails. I have included the error message I get from NWDS below. Thanks in advance for any help you can offer.                                                                                <br>                                                                                <br>                                                                                SUMMARY<br>                
    ~~~~~~~~~~~~~~~~~~~<br>
    Successfully deployed:           0<br>
    Deployed with warnings:           0<br>
    Failed deployments:                1<br>
    ~~~~~~~~~~~~~~~~~~~<br>
    ASJ.dpl_dc.001085 [ERROR CODE DPL.DC.3077] An error occurred while deploying the deployment item [sap.com_test~sgj_ent_app_test_three].
    ; nested exception is:
         com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3297] An error occurred during deployment of [sdu id: [sap.com_test~sgj_ent_app_test_three]
    sdu file path: [/usr/sap/DM1/J00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/192/sap.comtestsgj_ent_app_test_three.ear]
    version status: [HIGHER]
    deployment status: [Admitted]
    description: []
    ]. Cannot update it. <br>
    <br>
    1. File:C:\Develop\workspace.jdi\2\DCs\sap.com\test\sgj_ent_app_test_three\_comp\gen\default\deploy\sap.comtestsgj_ent_app_test_three.ear<br>
         Name:test~sgj_ent_app_test_three<br>
         Vendor:sap.com<br>
         Location:PDI_J2EETST1_D<br>
         Version:20100716152020<br>
         Deploy status:Aborted<br>
         Version:HIGHER<br>
    <br>
         Description:<br>
              1. [ERROR CODE DPL.DS.5089] Exception during generating components of [sap.com/test~sgj_ent_app_test_three] application in [servlet_jsp] container.<br>
    <br>
    Exception:<br>
    com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE DPL.DCAPI.1027] DeploymentException.
    Reason: ASJ.dpl_dc.001085 [ERROR CODE DPL.DC.3077] An error occurred while deploying the deployment item [sap.com_test~sgj_ent_app_test_three].
    ; nested exception is:
         com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3297] An error occurred during deployment of [sdu id: [sap.com_test~sgj_ent_app_test_three]
    sdu file path: [/usr/sap/DM1/J00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/192/sap.comtestsgj_ent_app_test_three.ear]
    version status: [HIGHER]
    deployment status: [Admitted]
    description: []
    ]. Cannot update it.
         at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:715)
         at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:226)
         at com.sap.ide.eclipse.deployer.dc.deploy.DeployProcessor70.deploy(DeployProcessor70.java:112)
         at com.sap.ide.eclipse.j2ee.engine.deploy.view.deploy.action.DeployAction$DeployActionJob.run(DeployAction.java:222)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: com.sap.engine.services.dc.cm.deploy.DeploymentException: ASJ.dpl_dc.001085 [ERROR CODE DPL.DC.3077] An error occurred while deploying the deployment item [sap.com_test~sgj_ent_app_test_three].
    ; nested exception is:
         com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3297] An error occurred during deployment of [sdu id: [sap.com_test~sgj_ent_app_test_three]
    sdu file path: [/usr/sap/DM1/J00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/192/sap.comtestsgj_ent_app_test_three.ear]
    version status: [HIGHER]
    deployment status: [Admitted]
    description: []
    ]. Cannot update it.
         at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:188)
         at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:57)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:229)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:91)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:34)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3297] An error occurred during deployment of [sdu id: [sap.com_test~sgj_ent_app_test_three]
    sdu file path: [/usr/sap/DM1/J00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/192/sap.comtestsgj_ent_app_test_three.ear]
    version status: [HIGHER]
    deployment status: [Admitted]
    description: []
    ]. Cannot update it.
         at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:81)
         at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:110)
         at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:51)
         at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:163)
         ... 8 more
    Caused by: com.sap.engine.services.deploy.server.utils.DSRemoteException: [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5089] Exception during generating components of [sap.com/test~sgj_ent_app_test_three] application in [servlet_jsp] container.
         at com.sap.engine.services.deploy.server.DeployServiceImpl.catchDeploymentExceptionWithDSRem(DeployServiceImpl.java:4712)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:426)
         at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:67)
         ... 11 more
    Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5089] Exception during generating components of [sap.com/test~sgj_ent_app_test_three] application in [servlet_jsp] container.
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:496)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:249)
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:197)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:493)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:544)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2534)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:525)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:424)
         ... 12 more
    Caused by: java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException:
         at com.sap.engine.services.security.restriction.Restrictions.checkPermission(Restrictions.java:73)
         at com.sap.engine.services.security.restriction.Restrictions.checkPermission(Restrictions.java:54)
         at com.sap.engine.services.security.server.AuthenticationContextImpl.setProperty(AuthenticationContextImpl.java:533)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.SecurityUtils.initSecurityConfiguration(SecurityUtils.java:722)
         at com.sap.engine.services.servlets_jsp.server.deploy.util.SecurityUtils.createSecurityResources(SecurityUtils.java:143)
         at com.sap.engine.services.servlets_jsp.server.deploy.DeployAction.initXmls(DeployAction.java:778)
         at com.sap.engine.services.servlets_jsp.server.deploy.DeployAction.deploy(DeployAction.java:301)
         at com.sap.engine.services.servlets_jsp.server.deploy.UpdateAction.makeUpdate(UpdateAction.java:340)
         at com.sap.engine.services.servlets_jsp.server.deploy.WebContainer.makeUpdate(WebContainer.java:341)
         at com.sap.engine.services.deploy.server.utils.container.ContainerWrapper.makeUpdate(ContainerWrapper.java:279)
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:490)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:249)
         at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:197)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:493)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:544)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2534)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:525)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:424)
         at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.update(ApplicationDeployer.java:67)
         at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:110)
         at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:51)
         at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:163)
         at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:57)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:229)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:91)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:34)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Edited by: Savin on Aug 5, 2010 10:25 PM
    Edited by: Savin on Aug 5, 2010 10:26 PM
    Edited by: Savin on Aug 5, 2010 10:31 PM
    Edited by: Savin on Aug 5, 2010 5:27 PM
    Edited by: Savin on Aug 5, 2010 5:38 PM
    Edited by: Savin on Aug 5, 2010 5:44 PM

    Hi Veera/Abhi
    I have installed MinDB and all the required files on the PDA. It is synchronizing with the middleware.
    On my NWDS PDA  Simulator , the application is appearing but when i click on the application there is no data and it is giving exception
    2009-02-11 13:02:40 ...  (com.sap.tc.mobile.cfs.pers.PersistenceManager:release resultset) Thread: Finalizer Error: java.sql.SQLException: Result set is closed
    Madhu--
    Please find my ans to the following points mentioned by you
    1) BASIS SWCV must be assigned in the Distribution Model Software Component Version tab of the device.
    It is assigned
    2) Activate the "DISTRIBUTE_USER_DETAILS" Rule in the admin.
    Rule is activated
    3) Activate the "DISTRIBUTE_USER_AUTHORIZATIONS" Rule in the admin.
    Rule is activated
    4) Make sure that you have installed the following components in the following sequence in the PDA
    - Creme
    - MinDB/DB2e
    - PDA_eswt_container
    - PDA Runtime.
    Client is  installed in this sequence only. I referrred to help.sap.com while installing
    the application should atleast work in the NWDS PDA simulator. My basic problem is it is not picking  up the data. giving the above mentioned error.
    Regards
    Priya

  • Oc4j deployment problem

    i have a bc4j-web-application. i have deployed the jsp-application to the oc4j, running on my windows system.
    but after opening the jsp page, i got following error:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file mypackage
    \common\bc4j.xcfg in the classpath
    i have followed the instructions of the rc2-bc4j-webapp-deployment-tutorial but it doesn4t work.
    1. the bc4j.xcfg file is in the jar-file
    2. under projectsettings the path of the file is added to the classpaths of the jsp project
    3. the libary of the bc4j-prj is added to the selected libraries of the jsp project.
    4. under web-inf/lib (settings of the war deployment profile) the libraries (the classes of the bc4j project) are selected.
    but what must i do on the j2ee? what configurations must i do?
    is there any other possible problem which can cause this exception?
    or can somebody imagine, what i4m doing wrong? (maybe someone had the same problem).
    thanks in advance,
    andre

    I have faced this problem and the reason is that the jar for the businnes component is not containing all the files the file bc4j.xcfg in not included in the jar try to redeploy the application or if this error is only coming for one component then try making the jar using jar -cvf command
    the file bc4j.xcfg is located in folder classes/modulename/common/ folder
    To make a jar please copy the following folders at one place (in one folder)
    classes/modulename folder
    classes/all the other folder which you require
    classes/connection.xml
    src/Meta-Inf folder
    now use this command
    jar -cvf jarfilename.jar *.*
    not replace the previous jar with this one and your problem will be solved.

  • WAR Deployment Issue

    Hi All,
    The Application which is built on web services, EJB3.0, Toplinks Essential . When i deploying this application on WebLogic Application Server 10.3 everything works fine. But while Running the same application after deploying in WAR format gives some exception which i am listing below -
    "java.lang.IllegalArgumentException: Unknown entity bean class: class <name>, please verify that this class has been marked with the @Entity annotation."
    Warning-
    WARNING: Found unrecognized persistence provider "oracle.toplink.essentials.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    But i am not able to make out why i am getting this issue in case of WAR deployment.
    Looking forward to some positive response........
    Thanks.

    Well, your problem maybe that you need to separate EJBs from Web modules.
    WAR files are for Servlets, JSPs, JSFs, etc.
    EJB-JARs are for EJBs
    All should be packaged into an EAR...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                       

  • WAR file problem

    My apologies if this post has appeared before...not sure if my previous 2
              posts made it to the newsgroup.
              I am having a problem with a war deployment. I am trying to get the
              following architecture to work:
              1) servlet instantiates data bean and places it in session
              2) jsp uses data bean to create customized output
              However, the jsp cannot compile because the databean is not being found.
              The data bean class is in /WEB-INF/classes so the jsp should have access to
              it. I can compile the servlet fine so it is not a problem with my classpath
              to the data bean class.
              I have seen similar posts to this however I have yet to find a reply that
              solves the problem.
              Any help appreciated!
              Thanks,
              Derek
              

    There are a number of things I am finding difficult to get working with
              WebLogic that work perfectly as described in the spec under Orion app
              server, as well as Resin.
              It appears that the servlet mappings in web.xml don't work correct. I think
              I have the SP4 patch applied, but I don't have a clue how to find out if it
              is indeed using the latest patch or not. Also, the
              /servlet/mypackage.myclass call does not work on JSP pages in WebLogic. I
              read up on the ServletServlet it provides and it appears that it does not
              recognize the WEB-INF/classes folder as a location to look for any /servlet/
              paths. That is rather bothersome initially, although when I rework our site
              to using Struts for the front-end, that need should go away.
              My main quest is to get Struts working so I can get my darn site to log me
              in. I normally have the login button submit the form to a jsp page that
              calls upon a servlet in the <jsp:include
              page="/servlets/com.mycompany.package.MyClass" /> fashion, which used to
              work. It does not under WebLogic. Is there ANY way to get the
              WEB-INF/classes to be part of the class path when calling upon my own
              classes as per the Servlet 2.2 spec? Or does Orion, JRUN 3, and Resin all do
              it wrong?
              Thanks.
              "Derek Clayton" <[email protected]> wrote in message
              news:[email protected]...
              > Yup...it works for a jsp page that doesn't use anything but html.
              >
              > I just can't believe that weblogic claims to support war files as long as
              > you don't try to use jsps with dynamic content.
              >
              > "Kevin Duffey" <[email protected]> wrote in message
              > news:[email protected]...
              > > Are you able to see any JSP output? Try a simple test.jsp page that
              simply
              > > says HELLO and doesn't use anything other than HTML. See if that output
              > > shows. I had a similar problem where the JSP page wasn't even compiling
              > > initially, then it kept giving me ClassLoader problems. I found out the
              > > problem was that I had an older jsdk.jar in the WEB-INF/lib dir which
              was
              > > causing problems.
              > >
              > > Hope that may help.
              > >
              > > "Derek Clayton" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > My apologies if this post has appeared before...not sure if my
              previous
              > 2
              > > > posts made it to the newsgroup.
              > > >
              > > > I am having a problem with a war deployment. I am trying to get the
              > > > following architecture to work:
              > > >
              > > > 1) servlet instantiates data bean and places it in session
              > > > 2) jsp uses data bean to create customized output
              > > >
              > > > However, the jsp cannot compile because the databean is not being
              found.
              > > > The data bean class is in /WEB-INF/classes so the jsp should have
              access
              > > to
              > > > it. I can compile the servlet fine so it is not a problem with my
              > > classpath
              > > > to the data bean class.
              > > >
              > > > I have seen similar posts to this however I have yet to find a reply
              > that
              > > > solves the problem.
              > > >
              > > > Any help appreciated!
              > > >
              > > > Thanks,
              > > >
              > > > Derek
              > > >
              > > >
              > >
              > >
              >
              >
              

  • Weblogic 6.0 sp2: War deployment not working !!

    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment is not
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try to run
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie

    That's right - ActionServlet does Class.forName(actionClass) to load action
    class, and this uses ClassLoader which loaded the current class (ActionServlet)
    ClassLoaders always delegate to their parent before attempting to load
    the class themselves, so it wasn't working until you moved struts.jar to your
    WEB-INF/lib.
    BTW, Struts doc mentions this problem:
    lib/struts.jar - This JAR file contains all of the Java classes included
    in Struts. It should be copied into the WEB-INF/lib directory of your web
    application. WARNING - If you are going to be hosting multiple Struts based
    applications on the same servlet container, you will be tempted to place the
    struts.jar file into the shared repository supported by your container. Be
    advised that this will like cause you to encounter ClassNotFoundException
    problems unless all of your application classes are stored in the shared
    repository.
    Jamie Tsao <[email protected]> wrote:
    So I found the solution to this problem, but it doesn't really make sense to
    me.
    I originally had struts.jar outside of the WAR file, but in my CLASSPATH.
    Weblogic was able to load Strut's ActionServlet (controller), but when the
    ActionServlet was looking for the LoginForm (which was inside the WAR), it
    couldn't find it.
    I solved the problem by putting struts.jar inside the WAR (under
    WEB-INF/lib) instead that other directory. Now it works cause apparently
    ActionServlet is now in the same classloader as LoginForm, the classloader
    which loaded the WAR.
    I'm confused because original way should have worked since the classloader
    that loaded struts.jar from outside the war is the parent classloader for
    the classloader that loaded the WAR. did that make any sense ?
    anyone know why ?
    thanks,
    jamie
    "Jamie Tsao" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment isnot
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try torun
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie
    Dimitri

  • Tomcat deployment problems

    Hi,
    I have an application developed in JSC2_1 and migrated to VWP/NetBeans which I can run nicely on Sun Java Application Server 9.1. But I am trying to deploy it on tomcat server (5.5.17.,5.5.20) over few weeks. I even assembled tomcat server 6.0.14 and added jstl.jar, jsf-api.jar, jsf-impl.jar and tools.jar (from sun java jdk1.6.0_01) to the common library. Initially I got errors which I rectified. Now if I browse with mozilla firefox I see two panels and images and buttons are not loaded. If I use IE7 I find nothing. Log files do not show any error at all...Can anyone help with these deployment problems with tomcat??
    thanks in advance.
    dr. am mohan rao

    I have deployed my JSC 2.1 app to Tomcat 5.5.17 servers.
    My app is running on XP Pro (development server) and WIndows 2000 Server (deployment).
    I'm using MySQL as the database server.
    Did you export your WAR file as J2EE 1.4?
    Here are some links that might help:
    http://forum.java.sun.com/thread.jspa?threadID=5101183
    http://blogs.sun.com/david/entry/defining_java_studio_creator_2
    http://blogs.sun.com/winston/entry/redploying_to_tomcat

  • DEPLOY PROBLEM URGENT

    Hi,
    using JDeveloper 10.1.3.3 ADF BC & JSF. Until today we have deployed all our applications to: Standalone Oracle Enterprise Manager 10g Application Server Control 10.1.3.1.0 throught JDeveloper, I would right click on web.xml, create War deployment profile... and then right click test.deploy and Deploy to AppServer, and everything worked fine.
    But today we tried to move to:
    Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2
    Supported Target Application Servers 10.1.2.0.2
    and we cannot deploy any of our applications through JDeveloper, so we tried to do it manually through OC4J Home -> Applications -> Deploy WAR file... browsed and selected test.war entered Application Name and Map to URL... and got following error:
    Failed to deploy web application "Test". Failed to deploy web application "Test". . Nested exception
    Resolution:
    Base Exception:
    java.rmi.RemoteException
    deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns:xsi. deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns:xsi
    I've googled a bit and found that I should change following tag in web.xml
    <web-app 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"
    xmlns="http://java.sun.com/xml/ns/j2ee">
    with
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    since I've read:
    "To be more precise, deployment descriptors which refer to XML Schema definitions are
    only used in J2EE 1.4 and later, but not in J2EE 1.3 or earlier.
    OC4J 9.0.4.x and 10.1.2.x support J2EE 1.3 while OC4J 10.1.3 supports J2EE 1.4."
    Changing that tag underlines following in web.xml and says Element dispatcher not expected, but I can compile and run application without problems:
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    So I've, rebuilded and created .war and .ear files, and tried to deploy again, but this time I've got the following error:
    Failed to deploy web application "Test". Failed to deploy web application "Test". . The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
    Resolution:
    Please call Oracle support.
    Base Exception:
    java.lang.NoClassDefFoundError
    oracle/adf/share/logging/ADFLogger. oracle/adf/share/logging/ADFLogger
    I don't know what changes need to be done in my applications (which files to modify) to be able to deploy to Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2, if anyone has any suggestion or knows what should be done please help, this is quite urgent & important since we plan to migrate all of our applications to this new application server.
    Thanks in advance,
    Tomislav.

    No success at all.
    So far what I gathered from the link you posted and tried:
    Note:
    "J2SE 1.4.2 is in its Java Technology End of Life (EOL) transition period. The EOL transition period began Dec, 11 2006 and will complete October 30th, 2008, when J2SE 1.4.2 will have reached its End of Service Life (EOSL). Customers interested in learning more about Sun's Java Technology Support and EOL policy"
    I cannot find the version 1.4.0. so I've downloaded j2sdk1.4.0_04 and installed it.
    To configure JDeveloper to build projects with JDK 1.4:
    1.Install J2SE 1.4 on the machine running JDeveloper.
    2.Configure JDeveloper with the J2SE 1.4 that you installed:
    a.In JDeveloper, choose Tools > Manage Libraries. This displays the Manage Libraries dialog.
    b.In the Manage Libraries dialog, choose the J2SE Definitions tab.
    c.On the right-hand side, click the Browse button for the J2SE Executable field and navigate to the J2SE_1.4/bin/java.exe file, where J2SE_1.4 refers to the directory where you installed J2SE 1.4.
    d.Click OK.
    3.Configure your project to use J2SE 1.4:
    a.In the Project Properties dialog for your project, select Libraries on the left-hand side.
    b.On the right-hand side, click the Change button for the J2SE Version field. This displays the Edit J2SE Definition dialog.
    c.In the Edit J2SE Definition dialog, on the left-hand side, select 1.4 under User.
    4.Click OK in the Edit J2SE Definition dialog.
    5.Click OK in the Project Properties dialog.
    did that.
    When you run an Oracle JDeveloper 10.1.3 application using the Embedded OC4J server, the application is configured for JDK 1.5. If you then try to switch to JDK 1.4, you will see JSP compile failures. To remedy this you need to force the application files to be re-compiled when OC4J is restarted with JDK 1.4. To configure Embedded OC4J to JDK 1.4:
    1.Configure JDeveloper 10.1.3.4 according to the steps above.
    2.Stop the embedded OC4J server instance.
    3.Delete the following directory:
    ORACLE_HOME/j2ee/instance/application-deployments ( I guess this is the following directory: C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments)
    4.Start the embedded server again.
    did that.
    After doing the steps mentioned above I've created new test app with just one page and tried to run, got following error:
    OC4J startup failed
    org.xml.sax.SAXException: META-INF/boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar, line 241: Shared loader 'oc4j.internal' cannot be found.
         at oracle.classloader.util.XMLConfiguration.fail(XMLConfiguration.java:1279)
         at oracle.classloader.util.XMLConfiguration.addImport(XMLConfiguration.java:1253)
         at oracle.classloader.util.XMLConfiguration.startElement(XMLConfiguration.java:630)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1535)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1824)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1552)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at oracle.classloader.util.XMLConfiguration.configureLoaders(XMLConfiguration.java:277)
         at oracle.oc4j.loader.boot.XMLPlusClassPathBootConfiguration.configureLoaders(XMLPlusClassPathBootConfiguration.java:84)
         at oracle.classloader.util.InitialLoadersFactory.populateLoaders(InitialLoadersFactory.java:389)
         at oracle.classloader.util.InitialLoadersFactory.initLoaders(InitialLoadersFactory.java:230)
         at oracle.classloader.util.InitialLoadersFactory.create(InitialLoadersFactory.java:167)
         at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:26)
    Process exited with exit code 0.
    Also what do you mean by
    Did you install the ADF Runtime libraries from 10.1.3 on the OAS 10.1.2?
    In the document you linked to, it says:
    Before you can deploy applications that use ADF on third-party application servers, you need to install the ADF runtime libraries on those application servers. You can perform the installation using a wizard or you can do it manually:
    *For WebLogic, JBoss, and Tomcat, you can install the ADF runtime libraries from JDeveloper using the ADF Runtime Installer wizard. See Section 34.12.1, "Installing the ADF Runtime Libraries from JDeveloper".
    *For WebSphere, you have to install the ADF runtime libraries manually. See Section 34.12.2, "Configuring WebSphere 6.0.1 to Run ADF Applications".
    *For all application servers, you can install the ADF runtime libraries manually. See Section 34.12.3, "Installing the ADF Runtime Libraries Manually".
    but we're not using third party app servers since this is not standalone version, we used tomcat before, now colleague that installed OAS told me it doesn't use third party app servers.
    What do you mean by this:
    "If you did try including the ADF logger library in your deployment file."
    How do I do that?
    So now I cannot run embbed app server and test locally using j2sdk1.4.0_04 no matter what I try, and still no luck with deploy. I'm afraid that if I cannot do this with newly created test apps without any complexity, what kind of problems will I have to deal with real production apps...
    I'll keep trying and I'll post if I figure out anything,
    suggestions and help is more than aprechiated,
    thanks in advance,
    Tomislav.

Maybe you are looking for

  • Tabular form - field to open explorer select file name to same in field

    Hi I am using apex 4.1 and would like some help with a tabular form I have created. It is based on a table which has two fields description path_of_source_file in the form I would like to be able to open windows explored to select a file name and sav

  • Why won't my iPad won't send messages?

    My iPad2 won't send message to person I just received from.  The send button is blue but not active. When I try to send to send a new message to another person their name is red marked with ! and the send button is gray. It won't accept any new name

  • Where do I find username and password that ISP gave me???

    I'm trying to connect my new laptop to my Linksys E4200, but I have long forgotten the username and password that the ISP gave me. How do I find them or reset them? I'm lost!!

  • Incoming payment VAT for exchange difference

    I need to post the Incoming Payment (F-28 or F-36), with VAT tax about the exchange difference. When simulate the post, appears the automatic position with the exchange difference but do not appears the VAT for this difference. Anybody know where cus

  • Same Network, one computer loses internet, other doesn't...

    I've had non-stop internet issues since upgrading to Leopard. And there seems to nothing consistent that I've found other than, sometimes the Macbook Pro loses the internet (not network), and sometimes the G5 PPC desktop loses the internet (not netwo