How to deploy servlets with struts in weblogic61sp2 ?

          I success to config a web app with struts framework via welogic61 admin console,but
          I only saw the first page but I cannot sumit to next page. (Of course,it's right
          if I set struts.jar's classpath and web app jar in my system classpath.But it's
          a bad solution.)
          Here is my startWebLogic.cmd:
          @rem set CLASSPATH=%CLASSPATH%;%PLATFORM%\src\lib\struts.jar
          set STARTMODE=false
          My Folder Structure:
          WEB-INF
               ->classes->...
               ->lib->struts.jar,servlet23.jar,...
               web.xml
               weblogic.xml
               index.jsp
          My errors info on the weblogic console:
          validate loginName
          admin
          8
          123456
          6
          java.lang.NoClassDefFoundError: org/apache/struts/action/ActionErrors
          at kava.web.FormUtility.getErrorFields(FormUtility.java:382)
          at kava.module.authentication.web.LoginForm.validate(LoginForm.jav
          a:118)
          at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.
          java:2106)
          at org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
          4)
          at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:265)
          at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
          va:27)
          at kava.web.JspFilter.doFilter(JspFilter.java:82)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
          va:27)
          at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
          rvletContext.java:2501)
          at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
          pl.java:2204)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          client connection:1 closed.server connection id:0
          LocalTransXAWrapper:end
          LocalTransXAWrapper:rollback
          rollback transaction(server connection id:0)
          Cleaning up the connection
          clean up server connection:0
          What's wrong I made ? Any suggestions are very welcome !
          

Christian,
          When you put the struts.jar in the classpath, everything works correctly? And then
          when you remove the struts.jar from the classpath and put it in the web-inf/lib it
          fails? According to the stack trace, the server appears to be able to find some of the
          struts files. Can you explain what the "kava" classes are doing? Are they part of the
          struts package?
          Thanks,
          Simon Nunn
          Developer Relations Engineer
          BEA Support
          Christian Lee wrote:
          > I success to config a web app with struts framework via welogic61 admin console,but
          > I only saw the first page but I cannot sumit to next page. (Of course,it's right
          > if I set struts.jar's classpath and web app jar in my system classpath.But it's
          > a bad solution.)
          >
          > Here is my startWebLogic.cmd:
          > ---------------------------
          > ..
          > @rem set CLASSPATH=%CLASSPATH%;%PLATFORM%\src\lib\struts.jar
          > ..
          > set STARTMODE=false
          > ..
          > ----------------------------
          >
          > My Folder Structure:
          > ----------------------------
          > WEB-INF
          > ->classes->...
          > ->lib->struts.jar,servlet23.jar,...
          > web.xml
          > weblogic.xml
          > index.jsp
          > ...
          > --------------------------------------------
          >
          > My errors info on the weblogic console:
          > ----------------------------------------------
          > validate loginName
          > admin
          > 8
          > 123456
          > 6
          > java.lang.NoClassDefFoundError: org/apache/struts/action/ActionErrors
          > at kava.web.FormUtility.getErrorFields(FormUtility.java:382)
          > at kava.module.authentication.web.LoginForm.validate(LoginForm.jav
          > a:118)
          > at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.
          > java:2106)
          > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
          > 4)
          > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
          >
          > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          > pl.java:265)
          > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
          > va:27)
          > at kava.web.JspFilter.doFilter(JspFilter.java:82)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
          > va:27)
          > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
          > rvletContext.java:2501)
          > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
          > pl.java:2204)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          > client connection:1 closed.server connection id:0
          > LocalTransXAWrapper:end
          > LocalTransXAWrapper:rollback
          > rollback transaction(server connection id:0)
          > Cleaning up the connection
          > clean up server connection:0
          >
          > -----------------------------------------------------
          > What's wrong I made ? Any suggestions are very welcome !
          

Similar Messages

  • How to deploy Servlet Application in Weblogic 8.1

    Hi,
    I am new to BEA Weblogic 8.1 .
    I was trying to create a sample application using InelliJ IDea 5.1 , and IntelliJIdea 10.5 . i configured weblogic with IDE , but now i do not know how to deploy my application in weblogic .
    I am new in IntelliJ also .
    So Can anyone tell me how can i deploy a servlet application in any IDE like i also have eclipse indigo.
    Thanks & Regards
    Komi

    Hi Komi
    Basically you deploy your Servlet as a WAR File. I am not familiar with IntellJ IDE. But it should have a provision to export/create a WAR file that has your Servlet. Also I hope you already have web.xml file with 2 sections like this: First you mention full package of your servlet and give it a name. Then enter a mapping url. You will use this url to run your servlet like http://weblogichost:weblogicport/yourWebappcontextroot/myservlet
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <servlet-class>com.abd.def.MyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>MyServlet</servlet-name>
         <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    Coming to deployment, I hope you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
    Refer the online docs for more details on Deployments in Weblogic.
    http://docs.oracle.com/cd/E13196_01/platform/docs81/deploy/deploy.html
    Thanks
    Ravi Jegga

  • How to use displaytags with struts

    How to use display tags with struts to generate report from database

    I think it would only consist in including the tag library of displaytags in the header and use the prefix of desplay tags.
    Exporting the report from a database would only need to retrieve this information from the database as a List, Map or Collection of objects (beans) and display tem with the corresponding tag (table)
    You have some more information here:
    http://displaytag.sourceforge.net/11/tut_basic.html
    Regards and good luck,
    Fran Serrano.

  • How to run servlet with tomcat

    I have a probrom that how can I run servlet with tomcat?
    I have new a folder classes in webapps\root\WEB-INF\,and put the .class
    programme in it ,but http://localhost:8080/servlet/HelloWorldExample
    can't run ,it give me a error than http:404 not found.
    could you tell me how i can solve the problem.
    Thank u very much.

    Hi,
    Make sure the class is in classpath or in WEB-INF/classes folder and make an entry for servlet tag in web.xml in WEB-INF folder.
    Regards

  • How to communicate servlets with windows media player

    I am new to web programming I am developing an application through which a client can play media file.
    I am getting problem in,how to communicate servlet through windows media player.
    I have developed the basic architecture of my application using tiger server,now I want to open media file through windows media player using openURL option(http request).
    Can any body guide me how to build a servlet which can listen this request and how to respond appropriately
    Please Reply.

    Check out the java doc for HttpServletResponse
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html
    Your sevlet will have to set the response contentType to the appropriate mime type
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/mime.asp
    and contentLength to the file size (in bytes), then open the mp3/wma file and write the bytes to the servlet output stream.
    You could also choose to return an asx file (an xml document containing a url of the media file), and windows media player will automatically lookup the mp3/wma file stored on your web server.

  • Deploy servlet with WAR file

    Has anyone successfully deployed servlets using WAR file?I think I did everything right. The WAR file was deployed. But I can't accesss it.
              

    I use .war files for deploying servlets in WLS 6.0 - they are much easier
              than exploded dirs...
              Usually, when I have a problem accessing the servlet once deployed, it's
              almost always the deployment descriptor.
              "Randy" <[email protected]> wrote in message
              news:3b311258$[email protected]..
              > Has anyone successfully deployed servlets using WAR file?I think I did
              everything right. The WAR file was deployed. But I can't accesss it.
              

  • How to deploy jfxpanel with applet to Tomcat.....

    I want to deploy jfxpanel with in a panel in applet. But a message appear that jfxpanel class not found. when i include the jar file jfxrt.jar, tomcat isn't loaded this file. After that i use the environment varibale and set the class path in javafx runtime lib. but still unable the same exception appeared. I want your help to solve this issue..

    Thank you igor. Your reply resolve most of the issues.. of my application. when i installed javafx runtime alone . the application link http://javafx.com/about-javafx/ that you have given me works fine but it changes the jre or something else... that my own developed application not able to make connection with the tomcat server. when i reinstalled jdk6u29 my application works fine and the link above is not working.
    After that without installing the runtime of javafx 2.0 i install the javafx sdk 2.0.1 the runtime installed by itself. but the same link throws the same exception the exception as after launching my own client application.
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 20 more
    Exception: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
    After installing the runtime of javafx again the link worked successfully and my client application application didn't able to make connection with tomcat.
    is there any way to merge jre with javafx runtime. and with loading of jre , javafx runtime loaded by itself.????

  • How to use Servlets with O8i on RH Linux 6.2 ???

    I'm using apache Jserv 1.1.2 to run my servlets all my JDBC programs work fine and other servlets too but only JDBC servlets give this message
    "SQLException caught Io exception: The network adapter could not
    established the connection"
    Can someone tell me How to configure JSERV to make connection ?

    Hi there,
    If I understand correctly you are running Jserv and Apache to connect to an Oracle 8i db on a remote machine. If you are getting the "network adapter" error make sure the listener is running on the remote machine (lsntrctl start -- lsntrctl status, or something like that from bash shell). Also make sure SQLNet is configured properly. Try connecting from a machine with SQL Plus. If this works and the listener is running you should be in business.
    Best
    Scott ([email protected])
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by CSL ():
    I'm using apache Jserv 1.1.2 to run my servlets, a remote database on O8i on linux. all my JDBC programs work fine and other servlets too(with no JDBC) but only JDBC servlets give this message
    "SQLException caught Io exception: The network adapter could not established the connection"
    Can someone tell me How to configure JSERV to make connection ?<HR></BLOCKQUOTE>
    null

  • How to connect servlet with jsf

    hello everybody, please help me
    on how to connect jsf to a simple servlet. jsf bean is populated with values entered by user, but to use that bean in servlet i have instantiated new bean object so how i can access values entered by user as bean object contains initial values of variables.
    actually i m developing a sample application jsf as component framework,hibernate as back end layer & spring as middle layer but right now i want to connect jsf to database using servlet & hibernate .So i want to access form bean of jsf so that i want to use form bean to do ORM in hibernate. but how can i get values entered by user in my servlet so that i can set these values in bean object.
    please reply
    Thanks
    Edited by: Manjinder on Oct 15, 2007 6:31 AM

    Please elaborate 'connect' in this context. This sounds a bit odd namely.
    You can invoke a servlet using a plain GET query or a POST query using a <form> element.
    If you're saying that you want to use some business logic which is available in a servlet, then you're looking in the wrong direction. Refactor that business logic in a separate class so that a simple Servlet as well as a JSF backing bean can use that logic. Then you can use JSF h:form with commandButton/Link to invoke the backing bean's action which on its turn invokes that logic.

  • How to get start with struts?

    i want to learn struts and i have knowledge of java,jsp,servlet.

    Hi,
    Learning struts is quite easy,
    visit the site www.coreservlets.com
    Download the examples from the site and run them as specified in tutorials.

  • How to compile servlet with Edit Plus?

    Hi
    I am writing a Java servlet in EditPlus and am wondering how to include the servlet.jar file so that EditPlus knows where the javax.servlet.*, etc classes are. I suppose this is an EditPlus specific question so sorry about that but I didn't know who else to ask other than EditPlus themselves of course and I think I have tried that once.
    I have read replies on this forum about changing the classpath but I dont think that that is what I need to do here and if it is I dont know what I should be writing as I am not using the jdk.
    If anyone can help me at all I would be very grateful.
    Thanks

    Yes, I have also compiled Java files from EditPlus. Using the facilities for configuring 'User Tools' in EditPlus.
    EditPlus runts programs(javac in the current context) in a separate environment(separate DOS command).
    I just compiled, from EditPlus, some Java file of mine that uses something from the servlet API. It compiled just fine. I did not do any classpath or other setup on classpath lines inside EditPlus. I guess, EditPlus inherits the existing CLASSPATH(all environment settings in fact) setting from your environment and thereafter aslo passes it along to the separate command prompt it opens to run user configured tools to run.

  • How to deploy ejb with dependent jars

    Hi
    I am trying to deploy a ejb into WEBLOGIC 6.1
    I have the following structure
    c:\testapp\deploy as the root and the following with in the root folder
    ejb/test/app/test.class
    ejb/test/app/testHome.class
    ejb/test/app/testBean.class
    ejb/META-INF/ejb-jar.xml
    ejb/META-INF/weblogic-ejb-jar.xml
    META-INF/application.xml
    I have a testdep.jar file required by the ejb. I have that in the Class path of
    the weblogic startup script.
    However If I want to remove it from the startu[p script and still be able to reference
    in the ejb where should I place it. Do I have to create some other directory with
    standard name? i am deploying the ejb in exploded form.
    Thanx
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I try to do the following but with out luck. I copied a maifest.mf file and the
    .jar file into the META-INF folder. I have the following in the manifest.mf
    Manifest-Version: 1.0
    Created-By: 1.3.1_04 (Sun Microsystems Inc.)
    Class-Path: TPUtils.jar
    the first two lines were generated and i copied the last line and I got the following
    error. I am runiing the application in exploded format.
    EJB : CUBean .Unable to initialize method info for remote or home interface.The
    error is java.lang.NoClassDefFoundError: com/towers/bas/utils/TPData
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    Rob Woollen <[email protected]> wrote:
    You should have a Manifest Class-Path entry for the jar.
    Basically you'd put the jar say in my.jar
    and you'd have a META-INF/MANIFEST.MF file that looked like this:
    Manifest-Version: 1.0
    Class-Path: my.jar
    -- Rob
    Venkat V wrote:
    Hi
    I am trying to deploy a ejb into WEBLOGIC 6.1
    I have the following structure
    c:\testapp\deploy as the root and the following with in the root folder
    ejb/test/app/test.class
    ejb/test/app/testHome.class
    ejb/test/app/testBean.class
    ejb/META-INF/ejb-jar.xml
    ejb/META-INF/weblogic-ejb-jar.xml
    META-INF/application.xml
    I have a testdep.jar file required by the ejb. I have that in the Classpath of
    the weblogic startup script.
    However If I want to remove it from the startu[p script and still be
    able to reference>> in the ejb where should I place it. Do I have to create some other>directory with>> standard name? i am deploying the ejb in exploded form.>> >> Thanx>> >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deploying Servlet with HTML file on Tomcat

    Hi ,
    I created a servlet and an html file. The html file accepts user data and passes it to servlet.
    I want to deploy these two files using Tomcat server. Please tell me a sure procedure for deploying both files.
    Regards,
    ap.

    First of all its better to make a jsp rather than one HTML and a servlet but anyhow in order to deploy it first build your project and create a war file which should contain your HTML and servlet and the web.xml.
    Then place this war file inside the webapps folder of tomcat.Start the tomcat and hit your HTML on the browser....

  • BEST PRACTICES: How to deploy apps with public and private content & data?

    Can anyone recommend a guide, blog post, etc. on best practices for:
    - designing & deploying apps that have publicly-accessible (http + https) content, and
    - content and data for which users must be authenticated and authorized?
    NOTE: In our environment users are authenticated via OID. We're using Apex 4.

    Hi,
    Have a look at this Sample App for getting Auth Token from Instagram in windows phone app. 
    Also read the api documentation for more details from
    here.
    Pradeep AJ

  • Help!!!How to test Servlet?

    how to test servlet with the code below.
    in method doPost or doGet,
    doPost(HttpServletRequest req,HttpServletResponse resp)
    DataInputStream dis =null;
    String data="";
    dis = new DataInputStream(req.getInputStream());
    data=dis.readUTF();// readInt(),readBoolean() ,etc may applied
    System.out.println("data:"+data);
    if i code req.getParameter("param"); then i wrote test programm like this request.setParameter("param","something");the servlet can get the value.
    my question is ,how can i test the code above?how to set the input value so that the HttpServletRequest object can read the data?

    1) Do yoiu mean how to "run" your servlet code with sample parameter? This call manual testing with a sample run of you code. You need a web server(eg Tomcat), create a webapp with your servlet then deploy it there in order to run it.
    2) httpunit and junit are framework to write test case code that can be automated and repeatable. Plz read their doc.
    3) Your sample code me a very wrong way to retrieve and convert servlet parameters.
    Get a java toturial and servlet tutorial book and read it over the weekend. You need to get at least the basic.

Maybe you are looking for

  • ArrayList e .RangeCheck(int)line 546

    Hi guys I am working on this project in few word I have to draw different shape on a panel moreover when two similar shapes collide ( 2 circles ) they make a bigger circle when st change direction almost everything works import java.awt.Graphics; imp

  • Mac Mini Duo Core 2 + Westinghouse LCM-19w4 using DVI-d

    Had been running my Mac Mini using the dvi-to-vga adapter into the vga port of the Westinghouse monitor. No issues. Today I purchased a Dynex DVI-d adapter and changed the connection to use the DVI-d connector on the monitor. These are 'single-path'

  • Create Smart Object /Frame Layer from open file in PSE8?

    I'm loving the trial version of PSE 8.  Several features that I don't want to live without! One thing that I find more difficult is creating a Smart Object or a Frame Layer (did those get replaced?) from an open file.  Because I digital scrapbook in

  • HPE-552SC and ASUS GTX750TI - wont get past BIOS

    Hi. My graphiccard delivered with the HPE-552SC has failed and I bought a new ASUS GForce GTX 750TI. After installing it the computer wont go past BIOS. Looking at some posts in support forums, some solutions could be to turn off UEFI - how ever when

  • Can't update InDesign CC from 9.0 to 9.1

    I've tried re-installing InDesign CC several times, but I can't update 9.0 to 9.1. My problem is that the option to update does not appear. I've tried going through the Help > Updates panel in InDesign as well as the Creative Cloud app. Both say the