Help.jsp web app war file (how to exclude resources)

Hi, I am making a jsp/JSF application and now wanted to deploy it on a glassfish server. this is the first time i am deploying so am still learning it as i go.
I wanted to clear out something before i go ahead.
My application has tons of resuorce files (mainly huge Picture and videos) which are roughly the size of 1-2 GB. I do not want to add them to my WAR file. is it possible to exclude the resources from the war file?
How difficult would it be for me to to then link the resources folder to the deployed application?
I am running against time. i need to clear the above out to make a decision.

thyscorpion wrote:
My application has tons of resuorce files (mainly huge Picture and videos) which are roughly the size of 1-2 GB. I do not want to add them to my WAR file. is it possible to exclude the resources from the war file?Yes.
How difficult would it be for me to to then link the resources folder to the deployed application?Create a servlet which access them by aforeknown file system path, reads the stream from the file and writes it to the response.
You may find this servlet example useful: [http://balusc.blogspot.com/2007/04/imageservlet.html] (specific for images).

Similar Messages

  • Error auto-deploying a Web App (.WAR file)

    Hello,
    Weblogic 6.1 throws a FileNotFoundException about 10% of the time for me when
    auto-deploying a Web app. Has anyone else run into this? I searched the newsgroups
    but didn't come up with anything, so I thought I'd start here.
    My build/deploy cycle is managed by an Ant build file that creates a WAR file
    of my web application and then drops it into $WL_HOME/config/mydomain/applications.
    Occasionally when I do this, I get the error shown below. Originally I was building
    the WAR file right in the ../applications directory, so I thought that might be
    an issue. So, I started building the WAR file in a staging directory and copying
    it into ../applications. No luck. Next, I tried deleting the original WAR file
    from ../applications, and THEN copying the new one over from the staging directory.
    Still fails occasionally.
    Let's see. This is Weblogic 6.1 on Win2K. The only other thing is that my dev/build/staging
    environment is on a network share, and it's from there that I'm copying the WAR
    file to my local machine (where WL is running).
    If someone has seen and/or knows what is up with this, great. If not, it's not
    a show-stopper.
    Thanks!
    Cheers,
    David
    ========================================================
    <Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException opening application
    mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
    java.io.FileNotFoundException: error in opening zip file
         at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
         at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
         at weblogic.management.mbeans.custom.Application.load(Application.java:387)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy8.load(Unknown Source)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
         at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
         at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
         at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)

    Michael,
    This is a problem with 6.1 SP2 also -- a very annoying error. Without auto deploy
    working properly, developers are spending alot of time waiting for WebLogic to restart.
    HELP!!! we need this fixed.
    I see the EXACT same stack trace (ERROR).
    Tom Markel
    Sr. Java Engineer
    Michael Young <[email protected]> wrote:
    Hi.
    This may be a known issue that was addressed in sp2. If you are not already
    at that sp level I suggest you upgrade.
    Regards,
    Michael
    David Ventimiglia wrote:
    Hello,
    Weblogic 6.1 throws a FileNotFoundException about 10% of the time forme when
    auto-deploying a Web app. Has anyone else run into this? I searchedthe newsgroups
    but didn't come up with anything, so I thought I'd start here.
    My build/deploy cycle is managed by an Ant build file that creates a WARfile
    of my web application and then drops it into $WL_HOME/config/mydomain/applications.
    Occasionally when I do this, I get the error shown below. OriginallyI was building
    the WAR file right in the ../applications directory, so I thought thatmight be
    an issue. So, I started building the WAR file in a staging directoryand copying
    it into ../applications. No luck. Next, I tried deleting the originalWAR file
    from ../applications, and THEN copying the new one over from the stagingdirectory.
    Still fails occasionally.
    Let's see. This is Weblogic 6.1 on Win2K. The only other thing is thatmy dev/build/staging
    environment is on a network share, and it's from there that I'm copyingthe WAR
    file to my local machine (where WL is running).
    If someone has seen and/or knows what is up with this, great. If not,it's not
    a show-stopper.
    Thanks!
    Cheers,
    David
    ========================================================
    <Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException openingapplication
    mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
    java.io.FileNotFoundException: error in opening zip file
    at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
    at weblogic.management.mbeans.custom.Application.load(Application.java:387)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy8.load(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Is it possible to import an existing Struts web app WAR file into Workshop?

    I browse the documents and tried using the workshop with no avail trying to import
    an existing Struts WAR file. If someone know of a way doing this, I would really
    appreciate a pointer or so. If this is not possible, please let me know so I will
    not end up pulling out all my hair....
    TIA

    Export the OMF from an audio app like ProTools or Logic as a stereo pair AIFF, then use that with your video. Chop it up if you need to checkerboard.
    Of course this will only work if the audio is very simple - overlapping audio will mess you up. If you can figure out the audio app part, you can split up your OMF into separate tracks.
    But then if you can't get it into an audio app, you're a bit hosed.

  • Sharing sessions between web applications (WAR files)

    I am using weblogic 6.1. The opinion I have read indicates that
              sessions cannot be shared between WAR files. That is, I cannot put an
              attribute on the session from a servlet/JSP in one WAR file and read
              it out from the other. The only justification I've seen is "security".
              Now, I find this rather difficult to accept for several reasons:
              1. I cannot fathom what kind of "security" would prevent me from
              sharing the session between two web applications that I wrote myself.
              Let's say I want to write a system that I divide up, for
              modularity/separate deployment purposes, into 5 different WAR files.
              Why should I not be able to just sign on once and pass that logon
              information in the session from one to the other? (I know, I can use
              cookies or URL rewriting - but that doesn't seem to be to be a good
              solution. And if you can share information through cookies, why not
              through sessions?) What about other user information like currently
              selected language?
              2. Several app servers (iPlanet and I have heard two others) allow you
              to share sessions between WARs. Why not weblogic?
              Thanks for any information you can give me. I have not been able to
              find anything in weblogic documentation about this. If I am
              misunderstanding the server capabilities, please enlighten me.
              Thanks,
              <>< gary
              

    http://www.weblogic.com/docs51/classdocs/webappguide.html
              --kumar allamraju
              Grant Lewis wrote:
              > I'm currently evaluating weblogic and I can't find any references in
              > their documentation set stating they support web applications or war
              > files. They explicitly state in their docs the Servlet 2.2 specification
              > has been supported since version 4.5. I'm evaluating version 5.1. Can
              > anybody clear up the confusion for me.
              >
              > Grant
              

  • TS1702 Help,have three apps saying waiting,how Do I get rid of them..??

    Help , have 3 apps on waiting,how do I delete them all. . .?.?

    do a hard reset. hold the home buttona dn the power button for 30 seconds or intell you see the apple logo

  • How to deploy web application .war file into SAP NetWeaver Engine?

    Hi All,
    I want to deploy web application which is developped using JAVA web technology into SAP netweaver Engine.
    I tried to deploy .war file through SDM but it complained the following error
    - Hide quoted text -
    "Error loading archive
    C;\Document and Settings\cr1adm\Desktop\MyProject.war
      (server side name is: F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)
    com.sap.sdm.util.sduread.IIIFormattedSduFileException: The information about development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    (F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)"
    Can any one please suggest how to deploy external web application into SAP netweaver engine.
    Is there any procedure to follow to do this.
    your inputs will be highly appreciated...
    Thanks in advance

    Hi,
    I think first you need to wrap it into an EAR file, then you can deploy it.
    As far as I know standalone deployment of WAR is deprecated as of 640.
    similar threads:
    How to deploy .war on NWDI
    Deploying an existing WAR file into the Portal
    Hopefully this tutorial also gives some idea:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Regards,
    Ervin

  • How to deploy my web application .war file into SAP netweaver Engine

    Hi All,
    I want to deploy web application which is developped using JAVA web technology into SAP netweaver Engine.
    I tried to deploy .war file through SDM but it complained the following error
    "Error loading archive
    C;\Document and Settings\cr1adm\Desktop\MyProject.war
      (server side name is: F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)
    com.sap.sdm.util.sduread.IIIFormattedSduFileException: The information about development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    (F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)"
    Can any one please suggest how to deploy external web application into SAP netweaver engine.
    Is there any procedure to follow to do this.
    your inputs will be highly appreciated...
    Thanks in advance
    JM

    You may need to convert the .war archive to SDA/SCA file  format before deploying it to SAP Netweaver Engine.
    Check out the below SAP NOTE if it is usefull.
    Note 1223957 - Usage of NetWeaver Packaging Tool.
    Apart from SDM you can also deploy the files through telnet...
    Note 859444 - How to deploy libraries on J2EE Engine 6.40
    1)Connect to telnet as below
    Start --> Run
    telnet hostname/ip address portno
    Ex: telnet xxx.xx.xx.x 5<Instance no>08
    2)Login with administrator id:
    Use the below command to deploy the files.
    deploy <directory path to the SDAs location> version_rule=all on_prerequisite_error=stop on_deploy_error=stop
    Example: deploy E:\usr\sap\trans\EPS\in\VCBASE03_0-10006939.SCA version_rule=all on_prerequisite_error=stop on_deploy_error=stop.
    Also have a look at this note which talks about the error you are getting.
    Note 1171457 - IllFormattedSduManifest/SduFileException during deployment
    Hope it helps.
    Edited by: Khaiser Khan Mohammed on Nov 7, 2010 12:17 PM

  • How to deploy fusion web application war file on weblogic

    Hi
    I am new to ADF. Please let me know how to create war file and the steps for deployment of war file . Its very urgent...

    Unresolved Webapp Library references for "ServletContext@1289849542[app:ws_ear module:WSAEEAPP-ViewController-context-root path:/WSAEEAPP-ViewController-context-root spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
    Specify the JSF library in the config.xml file
    <library>     <name>[email protected]_2-0-2</name>     ... </library>
    Refer the library in weblogic.xml
    <library-ref>      <library-name>jsf</library-name>      <specification-version>2.0</specification-version>      <implementation-version>1.0.0.0_2-0-2</implementation-version>      <exact-match>true</exact-match> </library-ref>
    The implementation version may be different.

  • Web application .war file

    I have a war file with the following structure
    index.jsp
    WEB-INF/web.xml
    WEB-INF/classes (all my servlets here)
    WEB-INF/lib (all my application jar files)
    The web.xml just defines all the servlets as follows
    =================================================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name> HtmlServlet </servlet-name>
    <servlet-class> <PKG PATH>.HtmlServlet </servlet-class>
    </servlet>
    <servlet>
    <servlet-name> ChartServlet </servlet-name>
    <servlet-class> <PKG PATH>.ChartServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> HtmlServlet </servlet-name>
    <url-pattern> /HtmlServlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name> ChartServlet </servlet-name>
    <url-pattern> /ChartServlet </url-pattern>
    </servlet-mapping>
    <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    =======================================
    WHen I run my application, the index.jsp starts compiling
    and throws an error
    java.lang.NoClassDefFoundError: org/omg/CORBA/ORB
    This class is in one of the jar files in my WEB-INF/lib folder.
    What am I missing? Do I have to declare something in my web.xml file or do I need to put that in weblogic.xml? Currently I dont
    have any weblogic.xml file.
    Thanks,
    Bharat Nagwani

    Hi Michael,
    I am having the same problem. can you provide more information. I was not
    able to find out the answer in the servlet 2.2 specification.
    Thanks,
    Rob
    Michael Girdley wrote:
    I believe that you need to register your helper classes in the Web.XML file
    in your Web application. Check out the servlet 2.2 specification for more
    information.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "bharat nagwani" <[email protected]> wrote in message
    news:3a71da38$[email protected]..
    I have a war file with the following structure
    index.jsp
    WEB-INF/web.xml
    WEB-INF/classes (all my servlets here)
    WEB-INF/lib (all my application jar files)
    The web.xml just defines all the servlets as follows
    =================================================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name> HtmlServlet </servlet-name>
    <servlet-class> <PKG PATH>.HtmlServlet </servlet-class>
    </servlet>
    <servlet>
    <servlet-name> ChartServlet </servlet-name>
    <servlet-class> <PKG PATH>.ChartServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> HtmlServlet </servlet-name>
    <url-pattern> /HtmlServlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name> ChartServlet </servlet-name>
    <url-pattern> /ChartServlet </url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    =======================================
    WHen I run my application, the index.jsp starts compiling
    and throws an error
    java.lang.NoClassDefFoundError: org/omg/CORBA/ORB
    This class is in one of the jar files in my WEB-INF/lib folder.
    What am I missing? Do I have to declare something in my web.xml file or doI need to put that in weblogic.xml? Currently I dont
    have any weblogic.xml file.
    Thanks,
    Bharat Nagwani

  • Error while running a report JSP in a war file from 9iAS server

    Hi,
    I've a web application archive file (war) which i m deploying to the web using OEM. The war file consists of many JSPs. Among those JSPs i have one Report JSP, which i m calling from another JSP which is like a parameter form for the report JSP. When i call the report JSP, it gave me the following error,
    javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
    javax.servlet.jsp.JspException: com.sun.corba.se.internal.iiop.ORB
    at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:334)
    at FMCardExp.jspService(_FMCardExp.java:58)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    The report tag in the report JSP is as follows,
    <rw:report id="report" parameters="server=repsvr&userid=scott/tiger@db">
    The report server is up and running and so is the database. This report JSP was generated from the reports builder and the opened in JDeveloper environment,in the war file project. It was then compiled and a war file was created. Surprisingly this report JSP works fine when i run my webapplication from the embedded OC4J instance for JDeveloper, but when i try to run it from the 9iAS server i get the above mentioned error. The deployment of the war file to the server is successful and the other JSPs work fine, only the reports JSP is not working. Do i need to have some settings for running the reports JSP, please advise.
    Thanks in advance
    Unmesh

    Can you please help me in deploying jdeveloper (9.0.3.1)war file to 9iAS release 1, when I try to run, none of the jsp's execute, I get java OutOf Memory error, I also think that there may be some version compatibility between jdev jdk and 9iAS jdk.
    Thanks,
    Kavitha

  • Web app .war problem

    I have a war file with the following structure
    index.jsp
    WEB-INF/web.xml
    WEB-INF/classes (all my servlets here)
    WEB-INF/lib (all my application jar files)
    The web.xml just defines all the servlets as follows
    =================================================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name> HtmlServlet </servlet-name>
    <servlet-class> <PKG PATH>.HtmlServlet </servlet-class>
    </servlet>
    <servlet>
    <servlet-name> ChartServlet </servlet-name>
    <servlet-class> <PKG PATH>.ChartServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> HtmlServlet </servlet-name>
    <url-pattern> /HtmlServlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name> ChartServlet </servlet-name>
    <url-pattern> /ChartServlet </url-pattern>
    </servlet-mapping>
    <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    =======================================
    WHen I run my application, the index.jsp starts compiling
    and throws an error
    java.lang.NoClassDefFoundError: org/omg/CORBA/ORB
    This class is in one of the jar files in my WEB-INF/lib folder.
    What am I missing? Do I have to declare something in my web.xml file or do I need to put that in weblogic.xml? Currently I dont
    have any weblogic.xml file.
    Thanks,
    Bharat Nagwani

    This is the standard way as I understand it also. This works on other app
    servers. We are having this same problem, any resolution yet?
    "bharat nagwani" <[email protected]> wrote in message
    news:3a727270$[email protected]..
    >
    Yes, the class file is in a jar file. Isn't supposed
    to see all the jar files in the war files. That is
    standard structure for war files.
    Thanks,
    Bharat
    "Jeff Ward" <[email protected]> wrote:
    Is the class in a .jar or a .zip? WL can't see the .zip files inside of
    the lib.
    -Jeff Ward
    "bharat nagwani" <[email protected]> wrote:
    I have a war file with the following structure
    index.jsp
    WEB-INF/web.xml
    WEB-INF/classes (all my servlets here)
    WEB-INF/lib (all my application jar files)
    The web.xml just defines all the servlets as follows
    =================================================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name> HtmlServlet </servlet-name>
    <servlet-class> <PKG PATH>.HtmlServlet </servlet-class>
    </servlet>
    <servlet>
    <servlet-name> ChartServlet </servlet-name>
    <servlet-class> <PKG PATH>.ChartServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> HtmlServlet </servlet-name>
    <url-pattern> /HtmlServlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name> ChartServlet </servlet-name>
    <url-pattern> /ChartServlet </url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    =======================================
    WHen I run my application, the index.jsp starts compiling
    and throws an error
    java.lang.NoClassDefFoundError: org/omg/CORBA/ORB
    This class is in one of the jar files in my WEB-INF/lib folder.
    What am I missing? Do I have to declare something in my web.xml file or
    do I need to put that in weblogic.xml? Currently I dont
    have any weblogic.xml file.
    Thanks,
    Bharat Nagwani

  • Deploying Java Web Application (WAR-File) into a cluster environment

    Hi,
    we have a web application which has to read from and write to the file system.
    Since a short time we have a cluster environment (2 parallel servers) and since thisa time we have the problem, that files are worked double in the cluster. The application is working on both servers now and so we have this problem.
    Does anybody know how we have to deploy the application correctly in a cluster environment or do we have to change anything in our source code of the application?
    I didn't find any documentation about this.
    At the moment we have deployed the application on one of the two servers only, but I think there must be a better way to solve this problem.
    Thanks for your replies.
    Regards
    Thorsten

    Hi,
    I think first you need to wrap it into an EAR file, then you can deploy it.
    As far as I know standalone deployment of WAR is deprecated as of 640.
    similar threads:
    How to deploy .war on NWDI
    Deploying an existing WAR file into the Portal
    Hopefully this tutorial also gives some idea:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Regards,
    Ervin

  • Web app context file in java web server?

    I'm being forced to move an application from Tomcat 5.5 to Web Server 6.1. I'm used to putting my app's context information into a context xml file that in Tomcat 5.5 is deployedin in $tomcat_home/conf/Catalina/localhost/. I define my jdbc connection pool there, as well as environment entries for the application. That way I can use the same war file, but run the application with different configuration settings.
    It doesn't seem like Web Server 6.1 supports that, or am I missing something in the documentation. I thought the notion of the context file was generic to the servlet container spec even in the 2.3 servlet spec....but maybe that's specific to Tomcat. So now how can I pass environment information to the application?

    The SJS webserver does not support context.xml, you are correct.
    However, most of the things done in context.xml can be done through other ways.
    JDBC conncetion pools are global to the server instance, and are declared in server.xml
    http://docs.sun.com/source/819-0130/agapuirf15.html#wp297682
    The web apps descriptors allow to configure web apps parameters. In SJS webserver there are two descriptors, the standard web.xml, and sun-web.xml.
    http://docs.sun.com/source/817-6251/pwadeply.html
    Regarding passing environment information, what exactly do you have in mind? the web server supports JNDI resource-env-ref, that can be used to pass environment entries to a web-app.
    If you have any particulars needs, or more specific questios, feel free to post them here.

  • PageCheckSeconds (precompile jsp, stored in war file) (Weblogic 6.1)

    Hi,
              I'm trying to stop the webserver from trying to recompile/check my jsp pages. I have set the pageCheckSeconds param to -1 but that doesn't seem to work. Looking at the weblogic.log file I get:
              [WebAppServletContext(601285,kcs,/kcs)] WorkflowServlet: init>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: init>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param verbose initialized to: true>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param packagePrefix initialized to: jsp_servlet>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param compilerclass initialized to: javac>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param srcCompiler initialized to weblogic.jspc>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param superclass initialized to weblogic.servlet.jsp.JspBase>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param workingDir initialized to: C:\apps\bea\wlserver6.1\config\kces\applications\.wlnotdelete\wlap17684\WEB-INF\_tmp_war_kc_kc_kcs>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param pageCheckSeconds initialized to: -1>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: initialization complete>
              [WebAppServletContext(601285,kcs,/kcs)] Generated java file: C:\apps\bea\wlserver6.1\config\kces\applications\.wlnotdelete\wlap17684\WEB-INF\_tmp_war_kc_kc_kcs\jsp_servlet\__index.java>
              If I take out the jsp class files from the war file and set the param workingDir (weblogic.xml) to the directory where the jsp class files are located... it works. But now I have a packaging problem that I can easily solve by keeping the jsp class files within the war file. As you can see from the log messages above, the pageCheckSeconds value is set to -1... yet the checking occurred anyway. Is there a way to specify the name of the war file that is located within an EAR file using the workingDir param?
              Thanks
              David
              [att1.html]
              

    You say: "If I take out the jsp class files from the war file and set the param workingDir (weblogic.xml) to the directory where the jsp class files are located... it works. "
              Did you get this to work in a cluster using admin/managed servers, or just with a single server?
              -Greg
              Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              "David Kostiew" <[email protected]> wrote in message news:[email protected]...
              Hi,
              I'm trying to stop the webserver from trying to recompile/check my jsp pages. I have set the pageCheckSeconds param to -1 but that doesn't seem to work. Looking at the weblogic.log file I get:
              [WebAppServletContext(601285,kcs,/kcs)] WorkflowServlet: init>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: init>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param verbose initialized to: true>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param packagePrefix initialized to: jsp_servlet>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param compilerclass initialized to: javac>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param srcCompiler initialized to weblogic.jspc>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param superclass initialized to weblogic.servlet.jsp.JspBase>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param workingDir initialized to: C:\apps\bea\wlserver6.1\config\kces\applications\.wlnotdelete\wlap17684\WEB-INF\_tmp_war_kc_kc_kcs>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: param pageCheckSeconds initialized to: -1>
              [WebAppServletContext(601285,kcs,/kcs)] *.jsp: initialization complete>
              [WebAppServletContext(601285,kcs,/kcs)] Generated java file: C:\apps\bea\wlserver6.1\config\kces\applications\.wlnotdelete\wlap17684\WEB-INF\_tmp_war_kc_kc_kcs\jsp_servlet\__index.java>
              If I take out the jsp class files from the war file and set the param workingDir (weblogic.xml) to the directory where the jsp class files are located... it works. But now I have a packaging problem that I can easily solve by keeping the jsp class files within the war file. As you can see from the log messages above, the pageCheckSeconds value is set to -1... yet the checking occurred anyway. Is there a way to specify the name of the war file that is located within an EAR file using the workingDir param?
              Thanks
              David
              [att1.html]
              

  • Guide to developing SECURE TOMCAT/JSP web apps - ??

    Hi,
    It would be very useful to have a checklist or guidelines to ensure a JSP/tomcat web site one develops is secure, in particular for the scenario where the web application is not huge/complex &/or is developed by part-time developers. That is I guess I'm generally asking for the easiest way of ensuring one develops a secure JSP/tomcat app.
    Q1 - Does anyone know of a tutorial/checklist for ensuring a JSP/tomcat web app is secure? The types of things I'm thinking of include the following items, which I've put forward as specific questions to the mail group in their own right.
    Q2 - How do you ensure directory's under doc root can't be viewed? (ie users see a directory listings)
         - is putting in an index.html in each sub-directory a solid answer?
         - can this be handled in one hit via WEB.XML entries? if so an example if possible?
    Above and beyond basic User Authentication checking (eg username/password check at beginning of session) what is an easy but secure way of checking -:
    Q3 check that user (ie specific) is allowed to access a specific JSP page? (assuming the web app is a totally JSP based solution, ie no controller servlet frontend, ie and that all JSP pages are effectively assessable under docroot). Easy way of doing this?
         eg (a) put specific check at beginning of each JSP page?
         (b) other?
    and
    Q4 given that a user is allowed to access that JSP page, check that he is allowed to view the data which he has requested? (ie stop people determining how the URL with parameters is constructed and manually changing the parameters - eg changing "http://www.test/test.jsp?id=3", manually "http://www.test/test.jsp?id=4". Easy way of doing this?
         eg (a) put specific check at beginning of JSP page?
         (b) other
    Q5 Is it generally acceptable, given appropriate precautions are taken, to setup a web site with all JSP files assessable under doc root, and that the manner in which the user navigates around the application is based on direct calls from the browser to the next JSP page with parameters? (again one concern I have is eg changing "http://www.test/test.jsp?id=3", manually "http://www.test/test.jsp?id=4"). If this is not acceptable what is recommended?
         (a) as above put a specific check at the beginning of the JSP page
         (b) for example having to specifically put a controller servlet as a front end, and then direct to JSP pages which are hidden?
    - in this case how can one hide specific directories under doc root?
         (c) other??
    Q6. Regarding image security I assume one really does have to store them outside doc root and develop a small "getImage" servlet so that requests to images can be verified to ensure that (assuming the app lets users load images) the end user can't see another user's image?
    Q7. Any other general checklist items for a simple JSP/tomcat web site re security one should check for???
    Thanks in Advance
    Greg

    Have you ever looked at the Jakarta struts framework for developing web apps? You could then incorporate your custom designed security both into your own extension of the controller servlet (check if particular user has access to certain pages / actions). You can also design your own custom tags which determine whether a particular user has access to certain parts of the page. You cal also perform additional checks in the actions, to ensure that the user does have access to certain actions (i.e. checking parameters etc.)

Maybe you are looking for

  • 10.6.2 display problem

    I just installed 10.6.2. Upon restart, I immediately noticed that the Dock icons looked slightly off, slightly not as sharp or crisp, but very subtle. Then, once in Safari, iCal, Mail, I noticed that letters look slightly fuzzy. This is in menus, web

  • Source system connection in RSA1

    Hi, I am not able to create a source connection under the SAP source system in RSA1. Though I create a source connection under SAP source system, it gets automatically created in BI system. I would like to create it under SAP source ssytem. Please gu

  • Parsing input stream from a socket

    Hi, i must read a byte stream from a socket. My problem is that i cannot determine when a stream ends because there are no terminator characters. I tried to use the read() method of BufferedReader class but it blocks when server statement ends. Is th

  • Annoyed. I thought it was resolved but it's not.

    I still can't view my broadband usage under the 'My services' section. I've requested help before on the forum and marked it as a solution because I was provided with a form to email off however having recieved my email from the BT help desk/complain

  • Cannot install KB2962409, error 800F0922

    Hi, I tried for hours and hours to install update KB2962409 that I need to solve a problem with Windows 8.1 and I'm not able to install it on my HP Probook 650 G1 with SSD Drive. (the laptop is 3 weeks old). I tried multiple threads found with follow