Works in Tomcat but not in iPlanet Web server

I have a servlet which first generates a form which has one input field, when user fills in the text field and submits the form it is posted to same servlet. The posted data is processed and redirected to another servlet. Everything works fine on Tomcat3.2 but fails to work on iPlanet web server and throws HTTP Error 500.
Can someone help me with this? What might be the problem?

Don't know whey it worked in Tomcat and not in iPlanet, but the reason is because I missed '/' in getRequestDispatcher() methoc
public RequestDispatcher getRequestDispatcher(java.lang.String path)
The pathname must begin with a "/" and is interpreted as relative to the current context root.

Similar Messages

  • Tomcat 5.5, struts, AJAX - Works on localhost but not on online web-server

    Hello,
    I'm trying to add some functionality from Ajax to my client's web application. And I'm stuck on this problem for the past 4 days now.
    To make a long story short, the application works perfectly on my localhost, but once I deploy it to the online server it pops a Page Not Found message (written in the JavaScript of Ajax engine). Though I have worked with servlets and struts a bit, I still consider myself very new.
    Here are some specifications:
    - The jar files are in tomcat-5.5/common/lib
    - The servlets (compiled correctly) are in webapps/ROOT/WEB-INF/classes/javaClasses
    - My web.xml and struts-config.xml are in WEB-INF, both of which I believe are configured correctly:
    web.xml
    =======
    <?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>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>/index.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    struts-config.xml
    ==============
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
    <struts-config>
    <action-mappings>
    <action path="/signup" type="org.apache.struts.actions.ForwardAction" parameter="/signup.jsp" />
    <action path="/countries" type="javaClasses.GetCountries" />
    </action-mappings>
    </struts-config>
    I noticed when I type "countries.do" on my localhost, the action is processed perfectly, however on the online server, it displays me the 404 error page.
    I thought it wasn't seeing the struts-config.xml so I played around with the directory path struts-config.xml and replaced it with:
    <param-value>/home/shaghig/webapps/ROOT/WEB-INF/struts-config.xml</param-value>
    but still no luck.
    What is it that I am not doing right? Any input or guidance would be very much appreciated.

    Have you resolved your problem? I am running into the SAME EXACT issues with my application. The only difference is I'm not deploying to webapps/ROOT/; I'm deploying to my own directory based on my WAR file name (webapps/<web_application_name>/WEB-INF....blah blah). If you figured out your problem (believe me, I wish I could be of some help) I would LOVE to hear what you did/figured out.
    -C

  • Berkeley Xml 2.4.13 works on Tomcat but not on Glassfish

    I recently upgraded my web app to using the latest version of Berkeley Xml from 2.3. The old version worked fine on both glassfish and tomcat java servers.
    When I upgraded and made the necessary modifications to my app I could not get it to work on glassfish but had no problems on tomcat.
    This error happens in the beginning of start up when I call the XmlManager constructor. I am clueless as to what it is because I can not recreate it on anything else but glassfish v2. I even created a new project and played around with some options.
    Here is part of the stack trace:
    DB errno:0
    The log message is null.
    com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
    at com.sleepycat.dbxml.dbxml_javaJNI.new_XmlManager(Native Method)
    at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:56)
    For now I am going to just use tomcat, but I would really like to know what is going on for both peace of mind and because I like some of the features of glassfish.
    Not sure if this matters but I am deploying the web app through netbeans 6 for both glassfish and tomcat.
    Thanks in advance for any help.

    I don't think it is a library path problem. The java.library.path shows the right values. I did have it working fine on the previous version of berkeley xml. I did have a version mismatch problem but I deleted the other database. I did have problems uninstalling the old database and I had to do it manually (the uninstall was hanging). Maybe I didn't clean it up correctly. My confusion is if I didn't clean it up correctly why does it work on everything else but glassfish.
    Thanks for your help.

  • Director movie work in IE but not in other web browsers

    Hello,
    please can someone help me? I have web page which use DCR file. If I open it in Internet Explorer, it show me preloader which preload movie and than lunch. This work good. But if I open same page in every other browsers, I will see just adobe preloader which not preload. I can wait even hours but nothing happens.
    Does anyone meet this problem before? I use pluging which work in all browsers. I even try this from other computers. Same problem.
    Thank you.
    Age

    OK, here is html code:
    <HTML>
    <HEAD>
    <TITLE>Title</TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </HEAD>
    <BODY bgColor="#000000">
    <center>
    <TABLE border=0 width=100% height=100%>
    <TR><TD align=center>
    <OBJECT classid="clsid:233C1507-6A77-46A4-9443-F871F945D258"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,5,0,593"
    ID=RGB WIDTH=1000 HEIGHT=650 VIEWASTEXT>
    <param name=src value="Movie.dcr">
    <PARAM NAME=swStretchStyle VALUE=none>
    <param name=swRemote value="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' ">
    <param name=PlayerVersion value=11>
    <PARAM NAME=bgColor VALUE=#000000>
    <EMBED SRC="Movie.dcr" bgColor=#000000  WIDTH=1000 HEIGHT=650 swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' " swStretchStyle=none
    TYPE="application/x-director" PlayerVersion=11 PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"></EMBED>
    </OBJECT>
    </TD>
    </TR>
    </TABLE>
    </CENTER>
    </BODY>
    </HTML>
    Edit: Thank you! Problem was in HTML code. I found it when I paste it to this forum so again - thank you for your help.

  • Session.invalidate works on tomcat but not in WebSphere Server

    I'm trying to figure out a .jsp written by another developer in WS Studio.
    The page does this:
    session = request.getSession(false);
    session.setMaxInactiveInterval(5);
    then almost immediately, does this:
    session.invalidate();
    In Tomcat, I get the "session already invalidated" error message I would expect. However, In WS Server, the rest on the page loads, and I can continue to interact with the application. I'm using IE 6.0, sp2.
    The "session.setMaxInactiveInterval(5);" call seems to have no effect in either container; al least, the application never times out.
    The most important thing for my purposes is to be able to invalidate the session in websphere. How can I fix this? Thanks!

    duffymo wrote:
    Is the machine that you ran this simple java class on the same one where you're >deploying the web app?Same machine where my sql connections bug. I just copypasted it into a file in tomcat5.5/webapps directory and then compiled it and used it from there. I used it from command line.
    duffymo wrote:
    how well do you know jsps, tomcat, and web apps? sure it's deployed properly? if you >put in a simple jsp and invoked it via tomcat, would you be able to do it?Dont know jsps well. :) Essentially my jspservlet thingie works normally on my computer through my tomcat and on other computers which have netbeans etc... It compiles .war file and ive copied that .war file to the target server's tomcat webapps directory, then when I access the website of my jspservlet tomcat unpacks it and shows my jsp pages normally if they have no sql components. So at least jsp pages are working... :)
    "minor modifications"? sure those are right? you wouldn't be the first programmer to fool >themselves by saying "it's the same code - except for X."
    try you "minor modifications" on the command line, too.First I used with main on command line, then removed main etc... and included it into my project.

  • Rollover works in iWeb, but not in any web browser

    I created pretty rollover links in iWeb '08 and when I mouse over them within iWeb, they light up like they're supposed to.
    However, when I open the pages in any web browser (Mac or PC, Safari or Firefox), the links do not light up.
    Any suggestions? I have already installed the latest update to iWeb.

    Nevermind. I fixed it.

  • Transmitting with JMStudio works on LAN but not over the web!

    I've been reading all kinds of posts related to this problem.. it was asked many times but noone has given the answer.
    The transmitter has to put the receivers ip and some port.
    The receiver has to open rtp session with the transmitter's ip and the same port.
    On a LAN it works, but over the internet it doesn't (the receiver keeps "waiting for data").
    The two computers I used for trying that, are on no LAN's.. they are assigned a unique ip by the isp (two simple broadband or dial-up connections with single computers).
    Why doesn't it work?
    (The ip's I used are (for example) the ones that appear in whatsmyipaddress.com and i'm behind no proxy)

    I've been reading all kinds of posts related to this problem.. it was asked many times but noone has given the answer.
    The transmitter has to put the receivers ip and some port.
    The receiver has to open rtp session with the transmitter's ip and the same port.
    On a LAN it works, but over the internet it doesn't (the receiver keeps "waiting for data").
    The two computers I used for trying that, are on no LAN's.. they are assigned a unique ip by the isp (two simple broadband or dial-up connections with single computers).
    Why doesn't it work?
    (The ip's I used are (for example) the ones that appear in whatsmyipaddress.com and i'm behind no proxy)

  • Disp+work.exe Running but not connected to Message server

    Dear All,
    I install SAP NetWeaver 7.0 ABAP Trial Version on my PC (Win XP SP2, Proc 2.4 GHZ, RAM 1 GB) installation success, but when I start the application server through mmc the dispatcher failed to start.
    I've tried to restart my machine, the problem still there.....
    Please help me to fix this problem...
    Thanks.
    Endi

    I got the same error, anyone can help ???

  • Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0

    Hi,
    Has any one working Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0 ?
    When i add new application server it gives only Oracle App Server and Web Logic.
    Thanks
    Ramesh

    Currently JDeveloper provides Application server connections to Oracle9iAS and WebLogic, which can be used to deploy J2EE Modules.
    JDeveloper allows to create assemble generic J2EE archives from projects which can used to deploy to other application servers.
    Check out How-To documents on this topic
    http://otn.oracle.com/products/jdev/howtos/content.html
    raghu
    JDev Team

  • .jsp works in ROOT but not separate web

    I am very new to JSP but I am running the Java runtime on a Unix
              REDHAT machine and I am using Apache Tomcat. I have the $TOMCAT_HOME
              defined and the usual helloworld.jsp will run at
              $TOMCAT_HOME/webapps/ROOT but not at my web which is
              $TOMCAT_HOME/webapps/ralph. All I did was copy from one to the other.
              What else do I need to do to make this work?
              Thanks.
              Ralph Tillery
              

    Interesting.
    - Does the page look identical in each browser
    though?Yes, the pages look identical in every other way.
    - When you click a box to expand the tree does it load
    a new page or is it handled through some client side
    scripting like Javascript?No new page is loaded, a Javascript handles the "+" boxes.
    - What versions of Netscape have you found it didn't
    work?I've tried it out on v4.75 as well as v6.2, no success with either.
    Someone else mentioned to me that it sounds like a Javascript problem. I've worked with Javascript for a couple of years now, but I've never seen these "+" boxes used before, so I'm in new territory as far as those are concerned. Thanks!
    -Shadow

  • JDBC persistence of session data not working on iPlanet Web Server, Enterprise Edition 6.0 SP2

    I am using windows 2000.
    iPlanet Web Server, Enterprise Edition 6.0 SP2
    I tried to do jdbc persistence for sessiondata.
    Somehow it didn't work.
    I edited the JdbcStore code and added some system.outs in it.
    From the logs I could note that
    It is going into
    JdbcStore.init(Properties config)//when the server starts up
    JdbcStore.reap(long currentTime) //when the server is brought down
    But it is not going into
    JdbcStore.save(IWSHttpSession session)
    JdbcStore.remove(IWSHttpSession session)
    JdbcStore.load(IWSHttpSession session)
    I did a "select count(*) from sessions" and it got me
    no of rows=0.
    The logs contained
    [06/Mar/2002:11:25:09] info ( 552): IWSSessionManager: Maximum number of sessions is 1000
    [06/Mar/2002:11:25:10] info ( 552): IWSSessionManager: Maximum number of sessions is 1000
    [06/Mar/2002:11:25:14] info ( 552): JdbcStore: initialized with url=jdbc:odbc:LocalServer, driver=sun.jdbc.odbc.JdbcOdbcDriver
    So I should think it was working.
    The pages that are using HttpSession are working ok but should I not get some rows in my table "sessions" when I query?
    This is the webapps.xml I used.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- iWS 6.0 specific web application configuration. -->
    <!DOCTYPE vs PUBLIC "-//Sun Microsystems, Inc.; iPlanet//DTD Virtual Server Web Applications 6.0//EN" "http://developer.iplanet.com/webserver/dtds/iws-webapps_6_0.dtd">
    <vs>
    <!-- Define global configuration -->
    <!-- Configure a session manager and tracking configuration -->
    <session-manager
    class='com.iplanet.server.http.session.IWSSessionManager' >
    <init-param>
    <param-name>maxSessions</param-name>
    <param-value>1000</param-value>
    </init-param>
    <init-param>
    <param-name>timeOut</param-name>
    <param-value>1800</param-value>
    </init-param>
    <init-param>
    <param-name>session-failover-enabled</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>reapInterval</param-name>
    <param-value>600</param-value>
    </init-param>
    <init-param>
    <param-name>session-data-store</param-name>
    <param-value>com.iplanet.server.http.session.JdbcStore</param-value>
    </init-param>
    <init-param>
    <param-name>url</param-name>
    <param-value>jdbc:odbc:LocalServer</param-value>
    </init-param>
    <init-param>
    <param-name>provider</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>username</param-name>
    <param-value>sa</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>sa</param-value>
    </init-param>
    <init-param>
    <param-name>lookupPool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>insertPool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>updatePool</param-name>
    <param-value>4</param-value>
    </init-param>
    <init-param>
    <param-name>deletePool</param-name>
    <param-value>4</param-value>
    </init-param>
    <!--
    <init-param>
    <param-name>session-failover-enabled</param-name>
    <param-value>false</param-value>
    </init-param>
    -->
    </session-manager>
    <session-tracking use-cookies="true" />
    <!-- Define the web applications for this virtual server-->
    <!-- catalog application -->
    <web-app uri="/Web" dir="E:/iPlanet/Servers/docs" enable="true" >
    <!-- Specify a tempory directory. A path returned in the "javax.servlet.context.tempdir" property; defaults to WEB-INF/tmp. -->
    <!--
    <tempdir dir='/var/catalog/tmp'/>
    -->
    <!-- reload classes at every 5 minutes; also include mycatlog.jar file in the classpath -->
    <!--
    <class-loader reload-interval='300' classpath='/home/work/mycatalog.jar' />
    -->
    </web-app>
    </vs>

    I'm trying to do the same thing with a file store, also somewhat unsuccessfully. However, one thing I can point out is that the manual says that the <session-manager> element should be within the <web-app> element in web-apps.xml. In your example, it is outside of it.

  • Lightbox works on computer but not on web...

    Help!
    I have used Lightbox2 and other lightboxes before, so I am a little used to how they work.
    I wanted to not clutter my site any more than necessary, and so I left the Lightbox files in the original Lightbox2 folder; my files are outside the folder.
    I corrected the links to the javascript and css files on my page.
    The page previews correctly on my computer; but, when uploaded to the web, Lightbox2 does not work.
    Why would Lightbox work correctly on my computer, but not on the web? Here is a link to one of the pages in question:
    http://www.oldmanmountain.com/Pages/RackPages/RearRacks.html
    Another question...Lightbox says we should check the links in the lightbox.js file to make sure the loading and close box links are correct. How do I point to these files? From the javascript file? or from the page file? I have tried everything and cannot get the close box to show on my computer (let alone on the web, where Lightbox doesn't seem to work at all).
    Another reason for wanting the Lightbox files in their own folder is that I used to put the Lightbox files relative to the page that Lightbox was used on so I wouldn't have to change the links. I would rather have just one Lightbox folder for the entire site, and I would prefer to have it in its own folder. I posted this question on StackOverflow, but no one answered.
    Thank you!

    Hi,
    in my IE8 your lightbox works (after a while of waiting) like this:
    I only miss the both buttons: "closelabel.gif" and "loading.gif".
    Hans-Günter

  • Flash player works on https web sites but not on http web sites ?

    Flash player works on https web sites but not on http web sites ?
    I've tryed a lot of things to solve this problem but impossible to find the solution.
    - re-instal flash player
    - disable the firewall (windows)
    - disable the firewall and the antivirus (bitdefender)
    I test my computer on an other internet provider and everything works correctly
    I test an other computer on my internet connection and everything works correctly.
    The problem comes from my computer on my internet connection.
    I'll appreciate a solution.
    Thank you.

    This is what you should see under "plugins" in Opera:
    Make sure Flash Player is listed and enabled.
    It comes from the same place as the plug-in for Firefox, so one won't work if the other doesn't.
    If that doesn't work, try a clean install. http://forums.adobe.com/message/4041846

  • Web sites containing mms links work in IE but not Firefox 4.0

    Web sites containing mms links work in IE but not Firefox 4.0. when I play the video in IE, I go into IE, and locate the mms link under properties, when I right click. If I copy the mms link form IE directly into firefox, it will work. There ought to be a better way to do this. Also, I am using a hardware firewall, not a software firewall, and no proxy.

    You need to use the file:// protocol, but you may still encounter problems if you fix that.
    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Madison Square Garden web site opens but when I click on view all concerts tab at the MSG site it does not open. It works with AOL but not Firefox

    I go to '''www.thegarden.com''' I click on the tab '''View Full Calendar'''. It does not open. It works on AOL but not Firefox. And for some reason it also does not work when I use Internet Explorer. The majority of times when I click on that tab (in Firefox) it does not work. On a rare occasion it will open. I am not doing anything differently either time.
    Any help would be greatly appreciated.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • Installing Reader 10.1 to a drive OTHER THAN 'C' drive

    Hi. Can anyone provide guidance on how to install Adobe Reader 10.1 to a hard drive other than the C drive? At no point during the installation process is the user given the option to select a drive letter. I need space on my C drive and want to inst

  • My Nano no long is syncing....how do I get the music from my Nano to my computer?

    I have an older IPod Nano but it does not synch anymore when I connect it to my laptop.  Do I have to buy another Nano?  If so, how do I get the music from my older Nano onto my laptop? Thanks

  • How to use standard print prog SAPFM06P in an ECC 6.0 environment?

    Dear all, I am working in an Upgrade proj, and I find this print prog SAPFM06P remarkably different in both the systems 4.6C & ECC 6.0. It seems the ECC 6.0 print program is configured for an Adobe form. But the requirement I have is that of printing

  • How to extract a still from iMovie to create a jpg

    I'm trying to extract a still from iMovie to create a jpg. I've been able to make a freeze frame, but now I want to export it into iPhoto as a jpg? How?

  • S.M.A.R.T. problem

    I have a refurbished iBook G4 I got back in November 05. Yesterday SmartReporter indicated an imminent drive failure. Applecare had me start up from the install disk and run disk utility. It reported a drive failure and couldn't repair it. Applecare