How to deploy a Web Application in Apache Tomcat?

Hi,
I am a SAP Master Data management guy.
But I have been assigned some Java J2EE work.
I need help.
I want to deploy a JSP Page in Apache Tomcat 5.5.26 Server.
The procedure I followed is:
I wrote a JSP :
helloworld.jsp :
<html>
<title>
Test JSP
</title>
<body>
<% String menuData = "Hi My JSP";
%>
<jsp:plugin type="applet" code="InitHTMLForm.class" codebase="./WEB-INF/classes"
width="250"
height="50"
jreversion="1.5.0_15"
>
<jsp:fallback>
Unable to start plugin!
</jsp:fallback>
</jsp:plugin>
</body>
</html> This JSP is embedding an Applet Code.
import java.io.IOException;
import java.util.Random;
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Event;
import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.Color;
import java.awt.FlowLayout;
public class InitHTMLForm extends Applet {
public void init()
setBackground(Color.blue); // Set background color to blue.
setForeground(Color.white); // Set foreground color to white.
setLayout(new FlowLayout()); // Set flow style.
ActionListener l= null;;
Button b = new Button();
add(b);
b.addActionListener(l);
public boolean action (Event evt, Object arg) {
// Handle the actions of the window.
// Button hit
if (evt.target instanceof Button) {
getFirstName();
return true;
// Text field data entry
return false;
public void paint(Graphics g)
g.setFont(new Font("Helvetica", Font.PLAIN, 8));
g.drawString("Hello world!", 50, 25);
public void mouseClicked (Event e)
int c =e.clickCount;
System.out.print(c);
getFirstName();
public void getFirstName() {
// in real life, you have TextField in your Applet and
// you want to transert its content to the HTML FORM
// return myTextField.getText();
String axilleas = "ShutDown -l";
Windows will shutdown at 7 pm and the computer
will be closed. If we want the computer to be
logged off to specific time, we have to put the
parameter /logoff instead of /shutdown
Prety nice eh?
Runtime nikos = Runtime.getRuntime();
try
nikos.exec(axilleas);
catch(IOException e)
System.out.println(e);
} The Applet is working fine with itself.
I have tested it. It logs off my Computer.
Now, the point is the JSP is failing to load the Applet in the web browser.
I have followed this deployment structure.
Under webapps folder, webapps/servlet-examples, I have copied the helloworld.jsp.
Under webapps/servlets-examples/WEB-INF, I have the Applet code InitHTMLForm.class.
The web.xml is under the webapps/servlets-examples/WEB-INF.
I have this structure of the web.xml:
<web-app>
<servlet>
<servlet-name>helloworld.jsp</servlet-name>
<servlet-class>helloworld.jsp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>helloworld.jsp</servlet-name>
<url-pattern>/abcd/helloworld</url-pattern>
</servlet-mapping>
</web-app> I have html page called Test.html which is placed under
/webapps/servlet-exapmles/
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<form name="myform" id="myform" method="post" action="abcd/helloworld">
<input type="Submit" value="Submit">
</input>
</form>
</body>
</html> Now, my first problem I am unable to access the html page from internet browser:
http://localhost:8080/abcd/helloworld
It is giving page not found error: 404 but when I am accessing the JSP by giving:
http://localhost:8080/servlets-examples/helloworld.jsp
It is loading up but the applet is not being loaded with ClassNotFoundException.
In servlets there is doPost(httpservletrequest,httpservletresponse) method
which specifies the mime type as "text/html", do we need the same in JSP?
Anyhow the html page should be accessed.
Please help me out.
Regards
Taton

1) Check if the Applet Code is placed in the correct folder. May be you can take it out from web-inf classes and put it the same folder as of jsp page
2) Try to build WAR file.Place the WAR file in Tomcat Web-apps directory. That solves many problems.

Similar Messages

  • 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 create our own web application on apache tomcat

    I am using Tomcat's default location to place my servlets.
    "E:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT"
    But day by day my classes are increasing. Now i am feeling to have my own location to place my servlets.
    Ex. "E:\myservlets"
    How to create and activate our own web application on apache tomcat except from tomcat's directory structure? Please guide me in this regard.
    Thanks in advance.

    hi,
    you can place your own application in any where
    then you to open under tomcat/conf/server.xml file
    add
    <Context path="/examples" docBase="e:/examples" debug="0"
             reloadable="true" ......./>

  • How to Deploy a web Application

    Can Any one tell me the right procedure to Deploy A web Application on the server.
    I have made the application using Html,Servlets,JSP,Java beans,web.xml
    now I have lots of html,java class file
    At this moment I have put all the classes file in \WEB-INF\CLASSES DIRECTORY, and the HTML file And the JSP in \WEB-INF directory
    But it make the whole classes and WEB-INF directory populated with files.
    Now Should I make a jar or war file and put on the
    Can Anyone tell me the Correct method of deployment

    http://ant.apache.org/manual/CoreTasks/war.html

  • How to deploy a web application with CR 13

    Hi,
    I've got a web application under VS2010. All is working fine on the dev computer (as usual). Now I need to deploy this application.
    I've installed on the destination computer the CR redistribute package. I've used the "Build deploy package" in VS2010 to distrib my web apps.
    It runs well on the target computer but when I try to run a report I got the following error code (sorry some text are in french) :
    Server Error in '/WebNegoce_deploy' Application.
    Nom de fichier non valide.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: Nom de fichier non valide.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace:
    [COMException (0x800001fb): Nom de fichier non valide.]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +270
    [CrystalReportsException: Echec du chargement du rapport]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +332
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +877
       CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1183
       CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +113
       CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) +53
       CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet) +66
       WebNegoce.libs.imprime_Semaine(DevisFacHeader& objDevis, DataAccess& ObjConn, String& PrintDest, String& computerName) in D:\Negoce.2010\WebNegoce\libs.vb:31
       WebNegoce.TypePrint.Traitement(String Sortie) in D:\Negoce.2010\WebNegoce\TypePrint.aspx.vb:46
       WebNegoce.TypePrint.ImageButton2_Click(Object sender, ImageClickEventArgs e) in D:\Negoce.2010\WebNegoce\TypePrint.aspx.vb:39
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    What should I add in VS2010 to build my deploy package ?
    Thx in advance
    Sybux

    See if KB [1544708  - What are the runtime dependencies for CRVS2010?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343334333733303338%7D.do] will help.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

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

  • Deploy web service on apache tomcat

    Hi,
    I have J2EE application and now I need to expose some of the methods from this application via web service. I am using apache tomcat 6.20 and I am having lots of issues deploying my web service to apache tomcat.
    It seem to work fine on gloss fish as I was following the tutorial on netbeans for simple web services.
    Any ideas on best practice on building web service on apache tomcat. I've seen many people are having issues with this combination tomcat and jaxws but didn't find anything helpful.
    Thanks in advance.

    Here is the error I am getting when trying to pass strongly typed objects:
    javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:329)
            at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
            at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:109)
            at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
            at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:338)
            at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:480)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
            at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:129)
            at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:160)
            at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:75)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:279)
            at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
            at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:321)
            ... 25 more
    Caused by: javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:242)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:257)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:649)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
            at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
            at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:274)
            ... 28 more
    Caused by: javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:566)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:644)
            ... 37 more

  • Oracle web service on apache tomcat 5.5.X

    Hello everyone,
    we developed web service using oracle jdeveloper 10.1.3.2 and successfully deployed it on OC4J. It works fine.
    we also tried to deploy that web service on apache tomcat 5.5.17, but faced with error:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.java:929)
    at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:578)
    at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> PointSoap12
    HttpPort in servlet mapping
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2292)
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2268)
    ... 39 more
    16.07.2007 8:55:46 org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/WebServices/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Invalid <url-pattern> PointSoap12HttpPort in servlet mapping
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    did anyone solve this problem or is there any workaround for this?
    thanks for your help in advance.
    Renat

    Please modify the url-pattern in web.xml.
    java.lang.IllegalArgumentException: Invalid <url-pattern>
    URL-patterns must be one of the following:
    - start with a '/' and end with a '/*', use this one for path patterns
    - start with a '*.' and end with a character, use this for extension mapping
    - some sequence of characters starting with '/' and not ending in '*', use this for exact matches.

  • Integration of a web application running on tomcat

    Hi all experts,
    I want to integrate a web application running Apache Tomcat/5.5.20.
    it's login page(jsp  page) have two input box uid and pwd.Login Application
    calls a servlet in Apache Tomcat/5.5.20 web.xml.
    For Accessing the loging page url is http://2.2.3.2:8080/uportal/Login
    I tried with app integrator
    URL Template  <System.protocol>://<System.server>:<System.port><System.uri>?<Authentication>
    URL Template fragment for User Mapping is
    login=<MappedUser>&passwd=<MappedPassword>
    But its giving error
    description The server encountered an internal error () that prevented it from fulfilling this request.
    java.lang.NullPointerException
         ubq.base.UEncryptionService.encrypt(UEncryptionService.java:29)
         ubq.base.UUserManager.loginUser(UUserManager.java:25)
         ubq.base.ULoginServlet.doPost(ULoginServlet.java:106)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Can any body help me ,My problem is that i cant change any code in backend application.
    Thanks in advance.
    Regd,
    Sanjay

    Hi Sanjay,
    Does the Tomcat is in the local System?
    If it is in local system try to run the application using
    <serverhost>://localhost:8080/......
    else for remote server
    Its always safe to add an entry (alias name) in drivers/hosts file with the ip address of the server like
    2.2.3.2     myLocalServer
    Now try to run and see.
    Thanks,
    Swathi
    PS:points are welcome:-)

  • Please help, how to guide the user to deploy a web application easily.

    hello,
    i have created an application which creates a new web application every time it is run. now i am writing the documentation of it and dont know which web server the client may have so i have to write / show to the user general steps that he should follow to deploy the web application after it has been created.
    i have written that the user should deploy the web app by making the following entry into the server.xml file (for tomcat)
    <Context path="/webappname" docBase="webapppath"></Context>
    it is not compulsary that the user should place the web application in the webapps directory of the server hence the above webapppath is used.
    now i want to indicate to him where and before / after which tag and under which host name etc the above line should be added in a manner that he is able to do it properly.
    please anyone can help me how to do it.

    i would like to know if there is any way without Java web start.
    it has to be set manually.
    i.e every user should make this entry in the server.xml so that the context is set.

  • How to download VoiceXML Web Application from CUE?

    Hi All
    Our customer has already had CUE IVR working with VoiceXML function.
    what we need to do is to study their existing IVR with VXML, make certain change base on
    current requirement.
    however after a couple days dig through their CUE system and googling, I didnt find a way to get the
    original "war" file mentioned in link below.
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/unity_exp/rel3_0/vxml/developer/guide/vxmljsp.html#wp1060138
    I understand that after deploying the web application to CUE, it will create a folder under "IVR > VXML Applications"
    my questions are
    1. how can we download all deployed WAR files from CUE?
    2. or how can we get the original VXML and JSP files?
    3. any way to reverse engineering the deployed files back to WAR file?
    thanks
    Yuke

    Hi Gergely
    thanks for ur reply. I downloaded the 7.0.6 version of sdk due to my CUE is at version 7.0.
    1. I tried to build it a few time with no success. is there any trick on building the war file?
    C:\ant\bin>echo off
    C:\ant\bin>C:\ant\bin\build.bat -v
    C:\ant\bin>REM 56789012345678901234567890123456789012345678901234567890123456789
    012345
    C:\ant\bin>REM -----------------------------------------------------------------
    C:\ant\bin>REM build.bat -- Build Script for WEBAPP
    C:\ant\bin>setlocal EnableDelayedExpansion
    C:\ant\bin>echo off
    C:\ant\bin>REM Execute ANT to perform the requested build target
    C:\ant\bin>"C:\Program Files (x86)\Java\j2re1.4.2"\bin\java -classpath c:\ant\li
    b\ant.jar;c:\ant\lib\optional.jar;"C:\Program Files (x86)\Java\j2re1.4.2"\lib\to
    ols.jar;c:\webapp\webserver\lib\commons-logging-api.jar;c:\webapp\webserver\lib\
    container_util.jar;c:\webapp\webserver\lib\core_util.jar;c:\webapp\webserver\lib
    \crimson.jar;c:\webapp\webserver\lib\etomcat.jar;c:\webapp\webserver\lib\facade2
    2.jar;c:\webapp\webserver\lib\jakarta-regexp-1.3.jar;c:\webapp\webserver\lib\jas
    per-runtime.jar;c:\webapp\webserver\lib\jasper.jar;c:\webapp\webserver\lib\mx4j-
    jmx.jar;c:\webapp\webserver\lib\mx4j-tools.jar;c:\webapp\webserver\lib\servlet.j
    ar;c:\webapp\webserver\lib\stop-tomcat.jar;c:\webapp\webserver\lib\tomcat-coyote
    .jar;c:\webapp\webserver\lib\tomcat-http11.jar;c:\webapp\webserver\lib\tomcat-jk
    2.jar;c:\webapp\webserver\lib\tomcat-util.jar;c:\webapp\webserver\lib\tomcat.jar
    ;c:\webapp\webserver\lib\tomcat33-coyote.jar;c:\webapp\webserver\lib\tomcat33-re
    source.jar;c:\webapp\webserver\lib\tomcat_core.jar;c:\webapp\webserver\lib\tomca
    t_modules.jar;c:\webapp\webserver\lib\xalan.jar;c:\webapp\lib\ivrjsp.jar -Dtomca
    t.home=webserver org.apache.tools.ant.Main
    Buildfile: build.xml
    prepare:
    compile:
         [jspc] Compiling 9 source filesC:\ant\bin\jsp-gen
         [java] java.lang.NoClassDefFoundError: org/apache/jasper/JspC
         [java] Exception in thread "main"
    BUILD FAILED
    file:C:/ant/bin/build.xml:50: Java returned: 1
    Total time: 0 seconds
    C:\ant\bin>echo off
    C:\ant\bin>
    it throws some error, but I have no idea where to start the troubleshooting
    2. what do u mean by browse through the cue system? using gui? or cli?
    from gui, I didnt find anywhere I can download the "extracted" war files.
    under cli, I can use "ccn copy url", only if I know the directory and file name.
    e.g.
    ccn copy url "http://localhost/vbrowser/vxml/vxml.vxml" document generic test.vxml
    do u happen to know that from cli, how do I list all files under localhost/vbrowser/vxml?
    thanks
    Yuke

  • Problems about deploying Oracle web application (Forms, Reports)

    I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server.
    1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ?
    2. Since both Application web server and Database server will use the same machine, do I still need Oracle Advanced Security for data transmission between Application web server and Database server if data encryption for transmission is required ?
    3. Can I user Oracle Forms to call Oracle Report on web as I did in Client/Server in the past ?
    Experts like you may have come across such problems. Would you please give me some opinions/ideas ?
    Regards,
    Richard

    1. check the paper about the Forms servlet architecture on otn forms section for SSL tips.
    3. Check the reports and forms integration paper on otn too.

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

  • Deployment  of Web application containing only Servlets

    I want to deploy my web application on Weblogic which contains only servlets
              and html files.
              All I know is that I have to write the DTD file. Once i am done with the DTD
              file i do not how the further steps to deploy my web application.
              can somebody point out the steps or some site where i can get any help. Is
              this documented anywhere?
              thanks in advance,
              Nitin
              

    Hi
              You don't write DTD file. It's in weblogic installation.
              You must write a web.xml file and weblogic.xml file. See how to do this in
              the documento "Write Web Applications" of WebLogic 5.1
              nitin <[email protected]> escribió en el mensaje de noticias
              [email protected]..
              > I want to deploy my web application on Weblogic which contains only
              servlets
              > and html files.
              >
              > All I know is that I have to write the DTD file. Once i am done with the
              DTD
              > file i do not how the further steps to deploy my web application.
              >
              > can somebody point out the steps or some site where i can get any help. Is
              > this documented anywhere?
              >
              > thanks in advance,
              > Nitin
              >
              >
              

  • Deployment of Web application

    Using: WebLogic 6.1 SP3 (J2EE 1.3)
    I have an application which consists of an EJB JAR file and a WAR file which I used to deploy to JBoss and Tomcat respectively. They are working fine in that environment. I want to deploy this application to WebLogic 6.1 SP3.
    1. I generated another JAR file which can be deployed to WebLogic using ejbc (after adding weblogic-ejb-jar.xml file). It went fine and I moved this JAR to weblogic/config/examples/applications folder. I saw in the log file that the EJB's in that JAR file were successfully deployed.
    2. The problem happened when I moved the WAR file to weblogic/config/examples/applications folder. It tried to deploy the web application, but threw an error. These are the messages from the log.
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101053> <[HTTP examplesServer] Loading web app: cronus>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101060> <[examplesServer] Loading "cronus" from directory: "d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus">
    <Warning> <J2EE> <europa> <examplesServer> <main> <system> <> <160007> <You are running WebLogic Server with J2EE 1.3 features enabled. The implementation of specific J2EE 1.3 features (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector Architecture 1.0) in BEA WebLogic Server 6.1 is of a non-final version of the appropriate specification. It is subject to change in future releases once the specification becomes finalized. This may cause application code developed for BEA WebLogic Server 6.1 that uses the new features of J2EE 1.3 to be incompatible with the J2EE 1.3 platform supported in future releases of BEA WebLogic Server.>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101031> <[WebAppServletContext(4192856,cronus,/cronus)] extracting classfiles to d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus\WEB-INF\_tmp_war_cronus:>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101032> <[WebAppServletContext(4192856,cronus,/cronus)] extracted classfiles successfully...>
    <Info> <HTTP Session> <europa> <examplesServer> <main> <system> <> <100037> <Creating SessionContext of type: memory for webapp: /cronus>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering classpath servlet with initArgs 'null'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering getior servlet with initArgs 'null'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering tunneling servlets with initArgs 'wl-dispatch-policy=direct'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering JSPServlet with initArgs '[JspConfig: verbose=true,packagePrefix=jsp_servlet,-compiler=d:\bea\weblogic61\jdk131/bin/javac,compileFlags=,workingDir=d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus\WEB-INF\_tmp_war_cronus,pageCheckSeconds=1,superclass=weblogic.servlet.jsp.JspBase,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false]'>
    <Error> <Management> <europa> <examplesServer> <main> <system> <> <141042> <Error deploying application d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus: java.lang.reflect.UndeclaredThrowableException>
    My web app directory structure is like this
    cronus -----------------------> JSP files
    WEB-INF ---------------> web.xml
    lib ----------------------> all the JAR files (including EJB JAR and JSTL implementation and other reusable JARs)
    classes --------------> all the servlet/web app classes
    tlds --------------------> TLD files
    Any suggestions on how can I fix this?
    I appreciate your help.
    Thanks.
    Velmurugan.
    [att1.html]

    I tried to deploy the web application in exploded format. But I got the same error.
    "Vel Periasamy" <[email protected]> wrote in message news:[email protected]...
    Using: WebLogic 6.1 SP3 (J2EE 1.3)
    I have an application which consists of an EJB JAR file and a WAR file which I used to deploy to JBoss and Tomcat respectively. They are working fine in that environment. I want to deploy this application to WebLogic 6.1 SP3.
    1. I generated another JAR file which can be deployed to WebLogic using ejbc (after adding weblogic-ejb-jar.xml file). It went fine and I moved this JAR to weblogic/config/examples/applications folder. I saw in the log file that the EJB's in that JAR file were successfully deployed.
    2. The problem happened when I moved the WAR file to weblogic/config/examples/applications folder. It tried to deploy the web application, but threw an error. These are the messages from the log.
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101053> <[HTTP examplesServer] Loading web app: cronus>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101060> <[examplesServer] Loading "cronus" from directory: "d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus">
    <Warning> <J2EE> <europa> <examplesServer> <main> <system> <> <160007> <You are running WebLogic Server with J2EE 1.3 features enabled. The implementation of specific J2EE 1.3 features (EJB 2.0, JSP 1.2, Servlet 2.3, and J2EE Connector Architecture 1.0) in BEA WebLogic Server 6.1 is of a non-final version of the appropriate specification. It is subject to change in future releases once the specification becomes finalized. This may cause application code developed for BEA WebLogic Server 6.1 that uses the new features of J2EE 1.3 to be incompatible with the J2EE 1.3 platform supported in future releases of BEA WebLogic Server.>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101031> <[WebAppServletContext(4192856,cronus,/cronus)] extracting classfiles to d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus\WEB-INF\_tmp_war_cronus:>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101032> <[WebAppServletContext(4192856,cronus,/cronus)] extracted classfiles successfully...>
    <Info> <HTTP Session> <europa> <examplesServer> <main> <system> <> <100037> <Creating SessionContext of type: memory for webapp: /cronus>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering classpath servlet with initArgs 'null'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering getior servlet with initArgs 'null'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering tunneling servlets with initArgs 'wl-dispatch-policy=direct'>
    <Info> <HTTP> <europa> <examplesServer> <main> <system> <> <101047> <[WebAppServletContext(4192856,cronus,/cronus)] registering JSPServlet with initArgs '[JspConfig: verbose=true,packagePrefix=jsp_servlet,-compiler=d:\bea\weblogic61\jdk131/bin/javac,compileFlags=,workingDir=d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus\WEB-INF\_tmp_war_cronus,pageCheckSeconds=1,superclass=weblogic.servlet.jsp.JspBase,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false]'>
    <Error> <Management> <europa> <examplesServer> <main> <system> <> <141042> <Error deploying application d:\bea\weblogic61\wlserver6.1\config\examples\applications\cronus: java.lang.reflect.UndeclaredThrowableException>
    My web app directory structure is like this
    cronus -----------------------> JSP files
    WEB-INF ---------------> web.xml
    lib ----------------------> all the JAR files (including EJB JAR and JSTL implementation and other reusable JARs)
    classes --------------> all the servlet/web app classes
    tlds --------------------> TLD files
    Any suggestions on how can I fix this?
    I appreciate your help.
    Thanks.
    Velmurugan.
    [att1.html]

Maybe you are looking for

  • Syncing Finale06 aif files with logicPro7-temps differ

    I need to put together an arrangement for my orchestra. I have created a file in Finale 06 and saved it as a .aif file. When openning this file in Logic7 I am having difficulty syncing with the loops and files that I play along with. I saved the orig

  • Web Color vs My Mac in Photshop

    I have been having a problem with the color changing from vibrant colors to dull unsaturated colors when they display on the web. I usually save pics for the web using sRGB 98 jpgs. I have posted on my own site and lots of other sites and most of the

  • OWB11g error installing workflow on Solaris

    Has anyone installed the workflow in the owb directory with 11g. The schema gets created, but if fails in a later stage saying it cannot connect to the server and check the ORMI port. Anyone run into this before?

  • How to fix Maps positioning problems in X6

    I had an Nokia 5800 at the start of the year before it got stolen, and nokia maps on it worked perfectly. After it was stolen I got a X6 (16g) as a replacement, but the maps have never worked properly for me. At first it looked different to the map I

  • BDLS for table BBP_PDATT not updated

    Hi, Would like to check if BDLS will update the logical system for table BBP_PDATT? We've run BDLS for our system.all logical system have been updated except table BBP_PDATT? Is it meant to be like that? Thanks!