Servlet Mapping problem

hi
I'm using JSWDK 2.1 and when I put the servlet in WEB_INF/servlets it is working fine..Then I created another subfolder MyServlets in the servlets directory and try to access the servlet by the url
MyServlets/servlets/ServletDemo and the servlet is not getting mapped.
Can somebody help me out in this problem..
Sandeep

thanx for the reply
But I've not created that as a separate package..I've
just created a new folder and put the servlet in to
that..When I tried to acces that using the new URL it
says cannot find ..
Are u getting the problem...will of be great if u
could help me out
thanx
SandeepEither one of two things:
You created a new context, if your new folder is:
webapps/MyFolder/
Or you created a new package, if your new folder is:
webapps/ROOT/WEB-INF/servlets/MyFolder
in java, there is a correspondance between subfolders in packages. Learn about package, you'll need it.
If it the second case, taking for granted that in your setup WEB-INF/servlets/ correspond to WEB-INF/classes/ in Tomcat, you need to put the line:
package MyFolder; as the first line of code in your class. Then you should be able to access it with a url that looks like:
/servlet/MyFolder.MyClass
Hope this helps!
Patrick

Similar Messages

  • Servlets mapping problems

    hi I need help please.
    I've got problems in reaching servlets from a jsp page.
    Here are files:
    jsp1.jsp
    servlet1.java
    servle2.java
    1)I call servlet1 from jsp1 by <form method="post" action="./servlet1 path/servlet1"> (servlet1 is mapped in web.xml )
    then from Servlet1.java I send back the result in request doing:
    getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,
    resp);(i send back a list of names..)
    everything woks fine.
    2)I need to sort this list of names then I call servlet2,
    <form method="post" action="./servlet2path../servlet2"> (servlet2 is mapped in web.xml )
    I get the result sorted into selvelt2 and send it back in request doing:
    getServletConfig().getServletContext().getRequestDispatcher(pageToGo).forward(req,resp);everything still works fine in the jsp page but at this point I cannot
    reach neither servlet1 nor servlet2 anymore !! Error 404!
    Can anybody help me please?
    many thanks,
    Marco.

    You haven't mapped the servlets properly.
    Looks like you're thinking too much about paths and not enough about URLs.
    The actions you've given will be URLs relative to the given context. Leave off the "./" from servlet1 and remove the "../" from the middle of servlet2. Those don't look right to me.
    These are just two servlets deployed in the same context. Should be easy to do. Just stop thinking about the underlying directory structure.
    %

  • Servlet mapping problem in Resin, very weird!

    ENV: resin 2.1.6 on windows 2000
    1, I copied all the files and folders in $resin/doc/java_tut to $resin/webapps
    2, I did a little change to $resin/conf/resin.conf
    In the old resin.conf, there is a lot about the '/' webapp.
    <web-app id='/'>
    <classpath id='WEB-INF/classes'
    source='WEB-INF/classes'
    compile='true'/>
    </web-app>
    I replaced it just with
    <web-app id='/'/>
    3, I tested the 'java_tut' webapp
    http://localhost:8080/java_tut/servlet/example.servlet.basic.MappingServlet
    works well.
    http://localhost:8080/java_tut/exact
    works well, too.
    4, Then I tested the '/' webapp
    http://localhost:8080/servlet/example.servlet.basic.MappingServlet
    works well.
    but
    http://localhost:8080/java_tut/exact
    returns error code 404
    what's the problem?

    don't you need to get rid of the java_tut bit?

  • A problem with servlet  mapping , using a servlet to produce some chart in

    Hi
    Thank you for reading my post.
    My problem is about using a Chart library which works well in jsf application but it does not works in JSF portlets.
    I think i find the problem but i do not know the solution.
    to use this charting library we should add a servlet to web.xml
    something like :
    <servlet>
    <servlet-name>Jenia internal servlet</servlet-name>
    <servlet-class>org.jenia.faces.util.Servlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Jenia internal servlet</servlet-name>
    <url-pattern>/jenia4faces/*</url-pattern>
    </servlet-mapping>
    so , when we try to load a chart , it will make the chart image source
    something like
    http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png
    in the above sample , adv is the name of web application which is
    deployed in a servlet container.
    and filter applied to make the chart render-able.
    to use the chart library in jsf portlet , i add the servlet
    description as i did for web application , so i add
    <servlet>
    <servlet-name>Jenia internal servlet</servlet-name>
    <servlet-class>org.jenia.faces.util.Servlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Jenia internal servlet</servlet-name>
    <url-pattern>/jenia4faces/*</url-pattern>
    </servlet-mapping>
    to my portlet web.xml file.
    when we have portlet , the url to access that portlet (which indeed is a
    web application) changes
    for example
    url for a sample portlet with same web application name
    will be like
    http:// localhost:28080/pluto/portal/Adv/
    as you can see there are some prefix to web application name in the url
    , but when i use chart component to show
    same chart , it still look for the chart in url like :
    http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png
    As you may already sugest , the image will not render because browser is
    looking in wrong place.
    now i
    think if i find some way to map that servlet to correct url
    pattern it will works.
    my question is :
    1-what will be new servlet url pattern ?
    2-is my assumption correct ?
    Thank you very much for reading such a long post

    i wrote an app i.e servlet which would select the data from the database and retrive the data.but i want to send this data to normal java file(which is not a servlet) and i want to display results in the normal java file.
    can any body help this concept........
    send me mail:[email protected]

  • Problems with servlet mapping in 10g AS

    Hi There,
    i have a web application consisting of 2 controller servlets and use url mapping to send requests to the appropriate servlet, but i have a strange issue with 10g where it seems to be alternating between serlvets when handling requests!!!!
    the web.xml is like as follows (with the app having the root context '/app'):
    <servlet>
    <servlet-name>control1</servlet-name>
    <servlet-class>com.package1.class.name</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>control2</servlet-name>
    <servlet-class>com.package2.class.name</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>control2</servlet-name>
    <url-pattern>/special/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>control1</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    therefore i'd expect a request like http://domain.name/app/special/content to be handled by the control2 servlet and http://domain.name/app/normal/content or http://domain.name/app/normal/special/content to be handled by the control1 servlet...
    but what seems to happen when requesting http://domain.name/app/special/content oc4j seems to alternate which servlet it passes it to...
    is there any reason why this might be happening (like some app server configuration), as i have other applications that are configured in the same way, and there's no problems with requests going to the wrong servlet.
    many thanks for your help,
    Andy

    In your integration process, define the import parameter under Configurable Parameters category.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/1f1a5c932d0d19e10000000a114a6b/frameset.htm
    Regards,
    Prateek

  • Servlet configuration problems ..

    Hi
    I am a new member starting with Java Servlets:
    I have a problem with Configuring the Servlet on the J2EE Application server.
    Here is the Servlet code ...
    package mypackage;
    public class ShowParameters extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response)         throws ServletException, IOException { .... }And this is the web.xml file
        <servlet>
            <servlet-name>ShowParameters</servlet-name>
            <servlet-class>mypackage.ShowParameters</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>ShowParameters</servlet-name>
            <url-pattern>/ShowParameters</url-pattern>
        </servlet-mapping>And the HTML file is ....
    <FORM ACTION="ShowParameters">
        First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
        Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
        Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
        <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
    </FORM>I have set the CLASSPATH variable t /build/mypackage/
    I get two erros:
    Wrapper cannot find servlet class ..
    ClassNotFound exception ...
    Also, how do I compile " the servlet class file with the line; package hello; " with the package name
    I would appreciate any help ..
    Thanks
    N

    I am trying to invoke a servlet from an HTML page.
    Method 1
        <FORM ACTION="ThreeParams" METHOD="GET">
            First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
               <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
        </FORM>Method 2
    <td><a href="Threeparams">Execute</a></td>Method 1 does not work but Method 2 does. But Method 2 does not transmit param1 to the server.
    Any thought on how to get it correct?
    Rgds
    N

  • Servlet declaration problem

    i've got 2 servlets declared in my web.xml
    <servlet-mapping>
        <url-pattern id='/FindPictureServlet'/>
        <servlet-name id="be.econocom.ecopeople.http.FindPictureServlet"/>
      </servlet-mapping> 
    <servlet-mapping>
        <url-pattern id='/FindRouteServlet'/>
        <servlet-name id="be.econocom.ecopeople.http.FindRouteServlet"/>
      </servlet-mapping>FindPictureServlet on the detailperson.jsp was already done by someone else.
    I have to use a same servlet to find a route on another page.
    i implement it.
    I put the 2 servlet calls on the detailperson.jsp and they work.
    on my new page not ...
    From where comes this problem ??
    THX vinch

    servlet.jar is here :
    <tomcatdir>\common\lib
    add it to your compiler classpath

  • Servlet/jsp problem

    hello i am using netbeans to create a simple login system using a servlet and a jsp. the jsp has the following code:
    <form action="login" method="get">
    <br>UserID <input type="text" name="userID" size="20" maxlength="20">
    <br>Password <input type="password" name="password" size="20" maxlength="20">
    <br><input type="submit" value="Login">
    </form>
    the servlet name is login and located under src/java/login.java
    however when i run it its just giving me this msg that it cannot find the servlet:
    type Status report
    message Servlet login is not available
    description The requested resource (Servlet login is not available) is not available.
    does anyone know what the problem might be?

    How have you defined this servlet in your web.xml ?
    For example it should be something like this:
        <servlet>
            <servlet-name>SomeServletAlias</servlet-name>
            <servlet-class>servletpackagename.ServletClassName</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>SomeServletAlias</servlet-name>
            <url-pattern>/servleturlpattern</url-pattern>
        </servlet-mapping>If you have the URL Pattern as: /servleturlpattern , then in your form's action put action="/servleturlpattern" and not action="servleturlpattern"
    Where ever you reference the servlet, the URL for the servlet should match exactly as you specify it in the URL-Pattern. Otherwise it wont work.

  • Servlet deployment problem

    hi all,
    i first post in java fundamental then i realize it should be in servlet sorry if u ppl suppose it repeated.
    i have a problem about which i search lot but didnt find any answer.
    i made an servlet and deploy it in tomcat.
    My directory structure is according to standard under midp folder. In my web.xml under WEB-INF/classes
    i wrote
    <web-app>
    <servlet>
    <servlet-name>bob</servlet-name>
    <servlet-class>HitServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>bob</servlet-name>
    <url-pattern>/hits</url-pattern>
    </servlet-mapping>
    </web-app>
    and acces it with http://localhost:8080/midp/hits
    it says hits not avaiable
    but when i change this section
    <servlet-mapping>
    <servlet-name>bob</servlet-name>
    <url-pattern>/servlet/HitServlet</url-pattern>
    </servlet-mapping>
    and access http://localhost:8080/midp/servlet/HitServlet
    it works.
    i cant understand y this happen bcz i wanna access it like
    http://localhost:8080/midp/hits
    what should i have to do?
    plz help me.

    Uh, you said that your web.xml is under /WEB-INF/classes? That's not the right place, it goes under /WEB-INF/.
    But...to answer your question, I see nothing wrong with your servlet and servlet mapping entries. A test on one of my apps worked perfectly.
    What App Server are you running? Did you stop it, redeploy, then restart it and then access the page?
    There's something else going on, because there's nothing wrong with your mapping.

  • Servlet Loading problem

    Hello!
    I have been working with servlets for about 2 years now and have never encountered such a nasty problem before. I just created a test hello.java servlet and I keep getting this error:
    avax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/hello
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:388)
         org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:169)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1267)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
         org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:169)
    1. I've uncommented web.xml in /conf for custom servlet invoker and servlet-mapping for /servlet
    2. I've added custom hello servlet configuration into web.xml in WEB-INF
    3. I've bee googling around and the setclasspath.sh looks fine
    4. when I type 'which java" I get: /usr/java/jdk1.5.0_11/
    5. when I run tomcat I get:
    Using CATALINA_BASE: /home/victor/liferay42
    Using CATALINA_HOME: /home/victor/liferay42
    Using CATALINA_TMPDIR: /home/victor/liferay42/temp
    Using JRE_HOME: /usr/java/jdk1.5.0_11/
    We use liferay4.2 portal but it's Tomcat-based so the same configurations apply.
    Please help, I did all the usual configurations but I still keep getting this error. Weird thing is that I have EXACTLY the same configuration in our production server and servlets get loaded fine there.
    Thank you,
    Victor.

    Problem solved.
    1. Added JAVA_HOME=/usr/java/jdk1.5.0_11/ into my startup.sh (just like on production server)
    2. Made my servlet class 'public' - now this one I should have gotten ... so embarassing :-(
    Victor.

  • Servlet mapping with Apache + Tomcat

    I'm trying to set up my servlet with apache + Tomcat(3.2.3), and i'm using mod_jk as the Tomcat-Apache plug-in.
    The HelloWorld servlet that comes with the examples app worked fine at: http://localhost/examples/servlet/HelloWorldExample,
    but how do I change the configurations, so that it can be invoked at:
    http://localhost/examples/HelloWorldExample ?
    It appears to me that '/servlet/' is the default prefix for Tomcat's RequestInterceptor, there is no way to get around that.
    Any insights will be greatly appreciated, thanks!
    Elaine

    hi
    Try this:
    add below code in web.xml file in examples/WEB-INF
    F directory
    <servlet-mapping>
    <servlet-name>
    HelloWorldExample
    </servlet-name>
    <url-pattern>
    /HelloWorldExample
    </url-pattern>
    </servlet-mapping>
    Thanks for the reply, the web.xml is already set up this way, in fact, I'm able to invoke the servlet through tomcat(running on port 8080): http://localhost:8080/examples/HelloWorldExample,
    tomcat reads the web.xml without any problems.
    The problem comes from Apache(port 80), http://localhost:80/examples/HelloWorldExample wouldn't work, only http://localhost:80/examples/servlet/HelloWorldExample works.
    It appears to me that when requests are relayed from Apache to tomcat, you need to tell tomcat that you intend to invoke a servlet by prefixing '/servlet/', if you look in the server.xml, it has
    <RequestInterceptor
    className="org.apache.tomcat.request.InvokerInterceptor"
    debug="0" prefix="/servlet/" />
    I've tried to change this to something else, it didn't seem to make any difference.

  • Mapping problem of JnlpDownloadServlet from .Jnlp file

    Hello All,
    1. I am trying to run a java web start application, i am using tomcat 5.5.20 server. I am using the JnlpDownloadServlet to use the $$codebase and $$name to dynimically code the path to the jar's and the jnlp file.
    Here is what i have done:
    Here i have a JnlpDownloadServlet in a seperate folder called (D:/apache-tomcat-5.5.20/webapps/online/server1/WEB-INF/lib/jnlp-servlet.jar).
    2. Now i am placing my .jnlp and my application jar's in a seperate folder called *"client1"* (D:/apache-tomcat-5.5.20/webapps/online/client1/)
    I need to have the client1 and server1 folders and i have to map the servlet to the jnlp file, because i want to keep my jars's and the servlet in a seperate folders.
    3. I have the web.xml file in WEB-INF folder.
    4. web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
    <servlet>
    <servlet-name> JnlpDownloadServlet</servlet-name>
    <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    *<url-pattern>../client1/*.jnlp</url-pattern>* *<!-- /* I am having problem here, i think */ -->*
    </servlet-mapping>
    </web-app>
    Myapp.jnlp:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="$$codebase"
    href="$$name">
    <information>
    </information>
    <resources>
    <j2se version="1.6+"/>
    <jar href="$$codebase/XXXXXX.jar" main="true" download="eager"/>
         <jar href="$$codebase/XXXX.jar" download="eager"/>
         <jar href="$$codebase/XXXXX.jar" download="eager"/>
    <nativelib href="$$codebase/XXX.jar" />
    </resources>
    </jnlp>
    While i run the application. i get the following error:
    Error occured when trying to run a Java web start application
    BadFieldException[ The field <jnlp>codebase has an invalid value: $$codebase,$$codebase]
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I need to resolve the mapping issue, because the servlet is not running and the codebase and href variables are not populated.
    Thanks in Advance.

    Hi Peter,
    to use messages of two different SWCVs in a BPM you need to create a based on relationship between the two SWCVs in SLD. BPM restricts object usage to the SWCV in which the BPM itself resides, so to solve your problem go to the SLD content maintenance and select your SWCV of your BPM, click on Usage Dependencies, then select Define Dependencies, choose Installation Time and then the SWCV in which the other objects reside, click save and your done. You might need to reimport the SWCV to the repository to update the relationship there. It is updated as soon as you can see Basis Objects in the SWCV tree.
    best regards
    Christine

  • Servlets deployment problem

    Hello, everyone!
    The problem that I have might sound ridiculous but I am kind of desperate because I can't make head nor tail of it.
    I am using Tomcat 4.0 and JDK1.3.1_01 and the problem that I am facing is the following: I have an application called "prima" that I've placed in the "webapps" directory of the Tomcat home. I've created the whole directory structure required - that is:
    /prima/Web_inf/classes
    /prima/Web_inf/lib
    as well as the
    /prima/Web_inf/web.xml configuration file
    I've placed the following string in the /conf/server.xml
    configuration file:
    <Context path="/prima" docBase="prima"
    debug="0" reloadable="true" />
    I wrote the simplest servlet possible - the "HelloWorld" servlet which I called TryServlet. Here goes the code:
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TryServlet extends HttpServlet {
    public void doGet (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>" +
         "<head><title>Hello World</title></head>");
    out.println("Hello, World!");           
    out.println("</body></html>");
    out.close();
    I've placed this in the /prima/Web-inf/classes directory and compiled it.
    I've edited the web.xml file like this:
    <?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>tryserv</servlet-name>
    <servlet-class>TryServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>tryserv</servlet-name>
    <url-pattern>/serv</url-pattern>
    </servlet-mapping>
    </web-app>
    Then I've written in the browser the following URL:
    http://localhost:8080/prima/serv
    http://localhost:8080/prima/servlet/serv
    and in neither cases does it work. I get the HTTP 404 - File not found exception.
    I had encountered a similar problem when I tried to use a bean from a JSP page.
    It looks like the /prima/Web-inf/classes directory cannot be seen.
    I hope someone will have a solution for my problem. Thank you in advance for any suggestion!
    Best regards!

    Tomcat is case sensitive. Use WEB-INF

  • Sun ONE application server 8 servlet mapping

    Hi
    How can I servlet map on application server 8. I have used application server 7 and it is quite simple. My problem is not "how to servlet map", but it is can you it be done on application server 8. There must be a way to servlet map just with the deploytool. I just can find it. Can you some tell me where?
    Thanks.

    Once you pull the war/ear into deploytool.
    Click on the servlet. You will see a tab for aliases.

  • SecurityFilter mapping problem

    Hi, i have setup security in my app by applying the SecurityFilter class but I have a big problem with the SecurityFilter mapping. Apparently there is a bug in jsc as I have the same problem as in thread http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5063740
    I implemented the workaround using <filter-mapping>
        <filter-name>SecurityFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping> as suggested just to make sure my app is configured correctly at and everything worked (each request is routed back to my login page).
    However here is my issue, i have a separate section (sub folder) of my app for admin stuff which requires logging in which is why i need to set the SecurityFilter mapping to the url pattern "/faces/admin/*.jsp" only. This mapping does not invoke the SecurityFilter so every admin page is fully accessible which is obviously incorrect. Using the faces servlet mapping above instead of a url pattern works but unfortunately applies the SecurityFilter to my whole app thus all pages including the main user website pages are now redirected to my login page too which is incorrect.
    So, is there a fix for this bug yet or another workaround that will only apply the SecurityFilter to certain area of a web app?
    Thanks.

    Thanks for responding. Maybe you are on to something. I'm not using any navigation-case(s) because I was using the new JSF 2 ability to call directly to a page/facelet.
    Example:
    In my index.xhtml I have a <h:commandLink action="servers">Servers</h:commandLink> that calls servers.xhtml. When the "Servers" link is selected the SecurityFilter doFilter gets "index.xhtml" as the request.
    Thanks for your help,
    Dave

Maybe you are looking for

  • When importing a file from a folder

    when importing a file from a folder it appears in the organizer as a exclamation mark but no photo. can anyone help i use elements 9

  • How do I create multiple TOC's (Tables of Contents) in one Pages document?

    I'd like to have multiple TOC's (Tables of Contents) in one document. This is useful for me because I'd like to have a TOC for the regular chapters, then a TOC for the procedures, then a TOC for the tables in the document (it's a tech manual that I a

  • How can I append an XML to SOAPHeader

    Basically what I need to do is set the XML, I have to the SOAP Header. Here is what I am trying to do. MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL); message = factory.createMessage(); DocumentBuilderFactory dbf

  • Imovie project when burned thru idvd looks horrible

    I have worked for several months on making my first Imovie. It is about 1hr in length. It combines both narration, video, soundtrack and still images. When I previewed the project on imovie looked great. I can also export thru quicktime and it looks

  • Grand Total on the same line. See Output requirment.

    Env:Oracle 9I Report Writer If I have a Table with the flwg data: TableA Col1   Col2  Col3   Amt 1                   10 2                   20 3                   30 4                   40How can I get the report output in the format below: ....