Invalid element 'servlet-mapping' in content of 'web-app'

Hello, JDev gurus!
When compling, JDev 9.0.2.822 produce following error
"oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet-mapping' in content of 'web-app', expected elements '[taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'."
on line <%@ taglib uri="http://xmlns.oracle.com/bibeans" prefix="orabi" %>
This line was added automatically from component palette.
How can I resolve this error?

Hi,
Did you change something into your web.xml file?
Look at your web.xml. You must preserve the order given by the error message:
Servlet-mapping
session-config
mime-mapping
ejb-ref
Jamil

Similar Messages

  • Error: Invalid element 'servlet' in content of 'web-app'

    Hi,
    I m working on a project that includes JSPs, whenever I wanna add JSP to my project it shows following compilation error:
    Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'
    I have thoroughly checked the web.xml. It is perfectly alright. It is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>com.project.MainServlet</servlet-class>
    <init-param>
    Long postings are being truncated to ~1 kB at this time.

    The Complete web.xml is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>montana</servlet-name>
    <servlet-class>com.masstech.montana.boundary.uii.MainServlet</servlet-class>
    <init-param>
    <param-name>db</param-name>
    <param-value>MontanaDS</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>MS</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>MS</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-n[i]Long postings are being truncated to ~1 kB at this time.

  • Invalid element 'servlet' in content of 'web-app', expected elements [.....

    I'm receiving the following error when I build a web app.
    Invalid element 'servlet' in content of 'web-app', expected elements [.....
    I have been trying to configure cactus struts testing as described here:
    http://jakarta.apache.org/cactus/integration/howto_config.html.
    I've a feeling it's a problem with my web.xml file (perhaps the order I have defined the elements) can anyone help?
    My web.xml is as follows
    <web-app>
    <description>web.xml file for Scorecards Application</description>
    <filter>
    <filter-name>FilterRedirector</filter-name>
    <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>FilterRedirector</filter-name>
    <url-pattern>/FilterRedirector</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>ServletRedirector</servlet-name>
    <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>JspRedirector</servlet-name>
    <jsp-file>/jspRedirector.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServletRedirector</servlet-name>
    <url-pattern>/ServletRedirector</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JspRedirector</servlet-name>
    <url-pattern>/JspRedirector</url-pattern>
    </servlet-mapping>
    <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/config/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>SCR Production Data Connection</description>
    <res-ref-name>jdbc/SCRproductionDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    ------------------------------------------------------------------------------

    I don't think you are allowed to mix the servlet mapping entries in among the servlet entries. You should do all the servlet entries and then all the servlet mapping entries.

  • Invalid element 'welcome-file-list' in content of 'web-app',

    HI, folks.
    I recently used struts to develop a simple web applicaiton, and whenever I tried to use tag libs
    such as /WEB-INF/struts-html.tld
    /WEB-INF/struts-html.tld and
    tried to compile it, it gives out compile error such as:
    Error(52,21): Invalid element 'welcome-file-list' in content of 'web-app', expected elements '[taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'.
    if I remove the above tag libs, the jsp file compiles
    without any problem.
    Are you guys familiar with these problems?
    please let me know if I'm doing anything foolish.
    Thanks!

    Unless some other elements tag are not close correctly this error does not make sense. Can you cut and paste your web.xml?
    It should look something like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <welcome-file-list>
      <welcome-file>/untitled1.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    </web-app>Charles.

  • Error "Invalid Column Name tp_level" when open restored web app

    Hi,
    I have a web application in development environment and it works fine when I try to restore the web application to the staging or production environment it is restored successfully but when I open the web application I got an error "Invalid column name
    tp_level"
    I don't know why this issue occurred. Do anyone knows what is the reason and how to solve it.
    Thank you.
    Ehab

    tp_level is an internal column of a content database. Can you check permissions on a restored content database for an account used for web app pool running?
    If it will not help, I offer you to create web application in staging/production and then make a copy of a content database from development enviroment and attach it to a newly created web app.

  • Servlet 2.2 conformity of web-app deployment?

    Hi,
              I am having quite a bit of difficulty getting a standard Servlet 2.2 app
              that runs in Resin, Tomcat and Orion app server just fine, to work at all on
              WebLogic. Is there some sort of trick? I installed WebLogic 5.1 trial via
              the download on my Win2K box. I set the weblogic.properties to use a webApp.
              When I hit the web-app via html pages..its fine. When I try to display JSP
              pages I get problems. I then figured out that for some reason WebLogic
              couldn't find tools.jar to compile JSP pages, so I added that to my System
              Environment classpath. Why it needs to be set there..and its not
              automatically done by the install I don't know. It seems obvious to me that
              to display JSP pages they have to be compiled, so tools.jar is needed.
              Anyways, the pages started converting into .java files, but when compiling I
              am getting some compile-time errors and thus the .class isn't showing up.
              I have:
              weblogic.httpd.webApp.myapp=c:/applications/bm/www
              in weblogic.properties. I am not trying clustering yet, so this is just to
              deploy a single instance of weblogic to run our site. I also commented out
              the docRoot=/public or whatever the line is..since I only want to run a
              Servlet 2.2 web-app, not a simple web-site.
              Below is the output of the console. I am not sure why it is giving me a
              class loader error. I am going to try the SP4 patch, but for some reason the
              wlconfig utility doesn't change the settings that I keep applying to it. I
              am trying to add a path to the classpath with wlconfig.
              Anyways..if anyone can shed some light I would be much appreciated.
              Thank you.
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: init
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param verbose
              ini
              tialized to: true
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              packagePref
              ix initialized to: jsp_servlet
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              compileComm
              and initialized to: javac
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              srcCompiler
              initialized to weblogic.jspc
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              superclass
              initialized to null
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              workingDir
              initialized to: C:\applications\bm\www\_tmp_war
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              pageCheckSe
              conds initialized to: 1
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              initialization co
              mplete
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              pageCheckSeconds over-ruled in JSPServlet to : 1
              Mon Aug 14 11:02:55 PDT 2000:<E> <ServletContext-myapp> error checking JSP
              'jsp_
              servlet._index' for freshness, forcing re-compile
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader
              constr
              aints
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              at
              weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              ClassLoader.java:415)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              at jsp_servlet._index._isStale(_index.java:45)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:158)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:164)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:99)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> Generated java file:
              C:\
              applications\bm\www\_tmp_war\jsp_servlet\_index.java
              Mon Aug 14 11:02:58 PDT 2000:<E> <ServletContext-myapp> Servlet failed with
              Exce
              ption
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader
              constr
              aints
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              at
              weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              ClassLoader.java:415)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
              calClass(RecursiveReloadOnModifyClassLoader.java:109)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              cClassLoader.java:316)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:172)
              at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              Loader.java:146)
              at weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:429)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              at jsp_servlet._index._jspService(_index.java:58)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Thanks. Playing with this now. The initial running does the same thing. I
              get the same ClassLoader problem. I sent you an email about editing these
              and I figured it out. Didn't find the .cmd files originally. Anyways,
              another problem I have..I had to set in the Win2K classpath the location of
              tools.jar. Is this not allowed to be distributed in the JRE? I am surprised
              if WebLogic (and other app servers too) need access to the javac compiler,
              why it is not part of JRE so they can access it. I set that in my
              environment. Are you saying I shouldn't need to set any environment
              variables..not to my WEB-INF\classes, \ib, or any JAVA dir? That instead I
              can just set it in the .cmd script to start the server?
              Lastly, I will need to run WebLogic as a service. I have a Java as NT
              service utility that works pretty easily..so can I just use that?
              Thanks.
              "Roberto Nanamura" <[email protected]> wrote in message
              news:[email protected]...
              > Hi Kevin,
              >
              > WebLogic should work just fine without setting any environment variables
              but
              > setting them in the startWebLogic.cmd script (I am supposing you are
              starting WL
              > through the command line). Look for the first lines in the
              startWebLogic.cmd
              > script like that:
              >
              > if "%JAVA_HOME%" == "" set JAVA_HOME=.\jre1_2\jre
              > set JAVA_HOME=.\jre1_2\jre
              >
              > And see if the JAVA_HOME is already set up and if the value is where your
              jre
              > 1.2 should be. That should take care of the 'tools.jar' problem.
              >
              > Try to run it again and see if the problem still persists.
              >
              > Hope this will help,
              >
              > Roberto N Nanamura
              > Technical Consultant
              > Summa Technologies
              >
              > Kevin Duffey wrote:
              > >
              > > Hi,
              > >
              > > I am having quite a bit of difficulty getting a standard Servlet 2.2 app
              > > that runs in Resin, Tomcat and Orion app server just fine, to work at
              all on
              > > WebLogic. Is there some sort of trick? I installed WebLogic 5.1 trial
              via
              > > the download on my Win2K box. I set the weblogic.properties to use a
              webApp.
              > > When I hit the web-app via html pages..its fine. When I try to display
              JSP
              > > pages I get problems. I then figured out that for some reason WebLogic
              > > couldn't find tools.jar to compile JSP pages, so I added that to my
              System
              > > Environment classpath. Why it needs to be set there..and its not
              > > automatically done by the install I don't know. It seems obvious to me
              that
              > > to display JSP pages they have to be compiled, so tools.jar is needed.
              > > Anyways, the pages started converting into .java files, but when
              compiling I
              > > am getting some compile-time errors and thus the .class isn't showing
              up.
              > >
              > > I have:
              > >
              > > weblogic.httpd.webApp.myapp=c:/applications/bm/www
              > >
              > > in weblogic.properties. I am not trying clustering yet, so this is just
              to
              > > deploy a single instance of weblogic to run our site. I also commented
              out
              > > the docRoot=/public or whatever the line is..since I only want to run a
              > > Servlet 2.2 web-app, not a simple web-site.
              > >
              > > Below is the output of the console. I am not sure why it is giving me a
              > > class loader error. I am going to try the SP4 patch, but for some reason
              the
              > > wlconfig utility doesn't change the settings that I keep applying to it.
              I
              > > am trying to add a path to the classpath with wlconfig.
              > >
              > > Anyways..if anyone can shed some light I would be much appreciated.
              > >
              > > Thank you.
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: init
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              verbose
              > > ini
              > > tialized to: true
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > packagePref
              > > ix initialized to: jsp_servlet
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > compileComm
              > > and initialized to: javac
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > srcCompiler
              > > initialized to weblogic.jspc
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > superclass
              > > initialized to null
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > workingDir
              > > initialized to: C:\applications\bm\www\_tmp_war
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp: param
              > > pageCheckSe
              > > conds initialized to: 1
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              > > initialization co
              > > mplete
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> *.jsp:
              > > ######
              > > ########
              > > ############
              > > ##############
              > > pageCheckSeconds over-ruled in JSPServlet to : 1
              > > ##############
              > > ############
              > > ########
              > > ######
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<E> <ServletContext-myapp> error checking
              JSP
              > > 'jsp_
              > > servlet._index' for freshness, forcing re-compile
              > > java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              loader
              > > constr
              > > aints
              > > at java.lang.ClassLoader.defineClass0(Native Method)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              > > ClassLoader.java:415)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              > > loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              > > at jsp_servlet._index._isStale(_index.java:45)
              > > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:158)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              > > java:164)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:99)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:123)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:742)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:686)
              > > at
              > > weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > > ContextManager.java:247)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > > a:361)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >
              > > Mon Aug 14 11:02:55 PDT 2000:<I> <ServletContext-myapp> Generated java
              file:
              > > C:\
              > > applications\bm\www\_tmp_war\jsp_servlet\_index.java
              > > Mon Aug 14 11:02:58 PDT 2000:<E> <ServletContext-myapp> Servlet failed
              with
              > > Exce
              > > ption
              > > java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              loader
              > > constr
              > > aints
              > > at java.lang.ClassLoader.defineClass0(Native Method)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
              > > at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
              > > ClassLoader.java:415)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
              > > loadClass(RecursiveReloadOnModifyClassLoader.java:234)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at
              > > weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
              > > calClass(RecursiveReloadOnModifyClassLoader.java:109)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
              > > cClassLoader.java:316)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:172)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
              > > Loader.java:146)
              > > at
              weblogic.servlet.jsp.OneOffJspLoader.loadClass(JspStub.java:429)
              > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
              > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
              > > at jsp_servlet._index._jspService(_index.java:58)
              > > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:105)
              > > at
              > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > > pl.java:123)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:742)
              > > at
              > > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              > > textImpl.java:686)
              > > at
              > > weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              > > ContextManager.java:247)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              > > a:361)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > >
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

  • Manage content of web-app

    Hi All,
    I am developing a web application using Spring/Hibernate frameworks. My application is going to be a public facing application. The pages on this application can be divided into categories. Pre-login & Post login.
    Pre-Login pages: These are mainly going to be marketing/user education pages. These are HTMLs/Jsps with el tags.
    Post-Login pages: These are main application pages which are pure JSPs with EL tags.
    Since app has been launched, marketing team puts pressure on us to change the content on the pre-login pages on almost daily basis. Currently, we are handling this by sending the static files to the remote static server.
    I want to streamline this process. The above one is tedious for changing the content as presentation is mixed with content. Often this results in errors & reworks.
    Can I make use of Foresst/Cocoon or some other XML based approach to address this issue? I want, at least for static pages, to keep the presentation code on static pages separate from content. This can enable the marketing team to write content in simple text files, which eventually can be uploaded to the server.
    Please suggest what I can do here. I wish for following: A simple text file upload and then on the basis of EL tags on the JSPs, content gets reflected on the pages of the running application.
    Rgds
    Sumit

    Few standard options:
    1) File system based content as you are planning
    2) Database driven content
    3) CMS product
    All these options should be used with care since it may slowdown the application performance. As in your case, marketing team is requesting change once a day; you can setup a cache (Any open source cache product) to improve the performance.
    Option 2& 3 are preferred approach for dynamic content because of ease of use from marketing guy perspective. Marketing team does not need to contact to deployment administrator for each change. They can simply change the content their own.

  • Recurring Rebuild Problem: Invalid Element....

    I keep getting this recurring error when i try to rebuild my project:
    Error(25,16): Invalid element 'mime-mapping' in content of 'web-app',
    expected elements '[error-page, taglib, resource-env-ref, resource-ref,
    security-constraint, login-config, security-role, env-entry, ejb-ref,
    ejb-local-ref]'.I have also seen similar errors such as:
    Error(9,11): Invalid element 'servlet' in content of 'web-app',
    expected elements '[error-page, taglib, resource-env-ref, resource-ref,
    security-constraint, login-config, security-role, env-entry, ejb-ref,
    ejb-local-ref]'.I am using JDev 10g Production.
    The problem occurs when when trying to compile a jsp using Struts Tiles. Here is a sample of one of the jsps:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <tiles:insert page="layout_main.jsp" flush="true">
        <tiles:put name="title" value="Condo"/>
        <tiles:put name="header" value="header.jsp"/>
        <tiles:put name="left" value="left.jsp"/>
        <tiles:put name="center" value="center_condo.jsp"/>
        <tiles:put name="right" value="right.jsp"/>
    </tiles:insert>I have had the project rebuild properly once with this same web.xml file and had no problems. I have not made any changes to the web.xml. I also ran the xml syntax validator on it and it is valid.
    This is a very weird problem. Sometimes re-arranging the web.xml file fixes the problem. The sample web.xml may be too big for a single post, but I can email to someone that can help. I have seen others on this forum that have posted the same problem with no solution. Please help. Thanks,
    Paul Manning

    Figured it out.
    When editing the web.xml you need to preserve the order listed in the error message.
    So in my case, the "welcome-file-list" needs to appear before tagLibs but after the mimeList.
    Hope this helps someone. JDeveloper is not conforming to the Spec on this one but I can cope. In my experience the "welcome-file-list" can appear any where nested in the webapp tag. Oh well, not the end of the world...
    Paul Manning

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

  • Different behaviour on servlet w/o servlet-mapping and init parameters

    I was playing around and found, that the init-parameter of a servlet is always null if there is no servlet mapping. I did not define a servlet mapping because I used the servlet only for for (named) dispatching (client usage should not be allowed).
    web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <servlet>
        <servlet-name>InitParamServlet</servlet-name>
        <servlet-class>test.InitParamServlet</servlet-class>
        <init-param>
          <param-name>param1</param-name>
          <param-value>value1</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>InitParamServlet</servlet-name>
        <url-pattern>*.initparam</url-pattern>
      </servlet-mapping>
    </web-app>
    InitParamServlet.java:
    package test;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class InitParamServlet extends HttpServlet{
      private static final long serialVersionUID = 1L;
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter pw = response.getWriter();
        pw.write(getServletName());
        pw.write(": param1=" + getInitParameter("param1"));
    }The URL http://localhost:8080/xxx/servlet/test.InitParamServletreturns org.apache.catalina.INVOKER.test.InitParamServlet: param1=null
    (on Tomcat), and the call to the same servlet with URL http://localhost:8080/xxx/test.initparamreturns InitParamServlet: param1=value1 instead (the correct init parameter value)!
    The same happens with jetty. This looks strange for me; I would expect the same behaviour for the servlet (independent from servlet-mapping-tag in the web.xml).

    When you call the url
    http://localhost:8080/xxx/servlet/test.InitParamServlet
    you are actually calling the invoker servlet that is defined in the default conf/web.xml. If you look at this web.xml file you will see that the invoker is mapped with the pattern "/servlet/*" which maps to the above url. The request goes to this servlet which parses the url and then calls the InitParamServlet class.
    When you call the url
    http://localhost:8080/xxx/test.initparam
    you are matching the url pattern you defined in the WEB-INF/web.xml file ("*.initparam"). This time the request goes to servlet instance that you defines in the servlet naming tags as "InitParamServlet" and since you defined init params they are populated.
    Note that these urls will also match the "*.initparam" pattern
    http://localhost:8080/xxx/XXXXX.initparam
    http://localhost:8080/xxx/badpackage.initparam
    http://localhost:8080/xxx/A.initparam
    Most people would have simplely defined the second servlet mapping as "initparam" and accessed the servlet with the url
    http://localhost:8080/xxx/initparam

  • Understanding Faces Servlet Mapping

    Hi guys, I would like understand how work the Faces Servlet mapping.
    In a web.xml file I put
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.context.webapps.FacesContext</servlet-class>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern> /<my_app_context>/* </url-pattern>  <!-- Here is my curious... -->1) If I put "/my_context/*" everything below "my_cotnext" (include JSP) is throughout to faces servlet, isn't?!!? can I just acces "http://localhost/my_context/index.jsp?!??
    2) If i put "/faces/*" and use the URL "http://host/faces/my_context/index.jsp" I need to create a folder call faces inside "$CATALINA_HOME/webapp" ?!?!?
    If not, what occurs?!!??
    3) If i put "*.faces" can I save my jsp file with the extension jsp, for example index.jsp at context my_context, and before access by URL "http://localhost/my_context/index.faces"?!? If I can, how the tomcat find the index.jsp
    Well, if someone can exaplain this rules in Tomcat for me will be very great!!!!!
    Thanks all
    Giscard

    Hi Gisard,
    as far as I did understand the whole thing you have two possibilities
    1. Path Mapping
    2. Extension Mapping
    I'm using Path Mapping, so I have the following entry in my web.xml:
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup> 1 </load-on-startup>
    </servlet>
    <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>That's quite easy to use, because in my navigation rules in the faces-config.xml I just use something like this:
    <navigation-rule>
        <navigation-case>
          <from-outcome>installation</from-outcome>
          <to-view-id>/pages/installation/inst_index.jsf</to-view-id>
        </navigation-case>
    </navigation-rule>And I have the page "inst_index.jsp" in my folder "web-app-context/pages/installation".
    I can access it with the URL:
    "http://localhost:8080/<web-app-context>/pages/installation/inst_index.jsf".
    If you want to use path mapping you should have the following entry in your web.xml:
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup> 1 </load-on-startup>
    </servlet>
    <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>So for example if you want to access the page "inst_index.jsp" in the folder "web-app-context/pages/installation" you have to use the URL:
    "http://localhost:8080/<web-app-context>/faces/pages/installation/inst_index.jsp".
    But you don't need a new folder "faces" within your web-app.
    I hope I could help you with that.
    Steffi

  • Invalid element RenderOptionsSpec - CB error while calling Output Service through web service

    Hi,
          I am trying to call generatePDFOutput from Output Service through web service.
    I have generated the proxy class using RAD webservice client option by http://10.235.0.232:8080/soap/services/OutputService?wsdl
    here is my code
    OutputServiceServiceLocator outputService =new OutputServiceServiceLocator();URL serviceURL =
    new URL("http://10.235.0.232:8080/soap/services/OutputService?blob=base64");OutputServiceSoapBindingStub outputClient =
    new OutputServiceSoapBindingStub(serviceURL, outputService); 
    ((javax.xml.rpc.Stub) outputClient)._setProperty(javax.xml.rpc.Stub.
    USERNAME_PROPERTY,DSC_CREDENTIAL_USERNAME);((javax.xml.rpc.Stub) outputClient)._setProperty(javax.xml.rpc.Stub.
    PASSWORD_PROPERTY,DSC_CREDENTIAL_PASSWORD); 
    //Reference XML data to merge into the PDF document
    BLOB inData =new BLOB();inData.setBinaryData("Input xml in bytes");
    formName =
    "/AdobePOC/Forms/sample.xdp"; 
    //Set PDF run-time options
    PDFOutputOptionsSpec pdfOptions =new PDFOutputOptionsSpec();pdfOptions.setFileURI(
    "repository://"); 
    RenderOptionsSpec renderOptions =
    new RenderOptionsSpec();renderOptions.setCacheEnabled(
    true); 
    BLOBHolder generatePDFOutputPDFDoc =
    new BLOBHolder();BLOBHolder generatePDFOutputMetaDataDoc =
    new BLOBHolder();BLOBHolder generatePDFOutputResultDoc =
    new BLOBHolder();OutputResultHolder outResultHolder =
    new OutputResultHolder(); 
    //Create a PDF Document
    outputClient.generatePDFOutput(TransformationFormat.PDFA, formName,"repository://", pdfOptions, renderOptions,inData, generatePDFOutputPDFDoc,generatePDFOutputMetaDataDoc, generatePDFOutputResultDoc,outResultHolder);
    return generatePDFOutputResultDoc.value;
    I am getting the following error while executing the above code.
    09 17:05:05:407 IST] 00000028 SystemErr R AxisFault
      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode:
    faultString: 
    org.xml.sax.SAXException: Invalid element in com.adobe.livecycle.output.client.RenderOptionsSpec - CBfaultActor:
    faultNode:faultDetail:
    {}faultData:<ns1:exception xmlns:ns1="http://adobe.com/idp/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><ns2:message xmlns:ns2="http://adobe.com/idp/services">Invalid element in com.adobe.livecycle.output.client.RenderOptionsSpec - CB</ns2:message>
    {http://xml.apache.org/axis/}hostname:A1AIGMD02018
     [6/25/09 17:05:05:407 IST] 00000028 SystemErr R org.xml.sax.SAXException: Invalid element in com.adobe.livecycle.output.client.RenderOptionsSpec - CB[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.message.SOAPFaultBuilder.createFault( 
    SOAPFaultBuilder.java:222)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.message.SOAPFaultBuilder.endElement( 
    SOAPFaultBuilder.java:129)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.encoding.DeserializationContext.endElement( 
    DeserializationContext.java:1087)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    [6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.encoding.DeserializationContext.parse( 
    DeserializationContext.java:227)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.SOAPPart.getAsSOAPEnvelope( 
    SOAPPart.java:696)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.Message.getSOAPEnvelope( 
    Message.java:435)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( 
    MustUnderstandChecker.java:62)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.AxisClient.invoke( 
    AxisClient.java:206)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.Call.invokeEngine( 
    Call.java:2784)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2767)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2443)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2366)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:1812)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.adobe.idp.services.OutputServiceSoapBindingStub.generatePDFOutput( 
    OutputServiceSoapBindingStub.java:579)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.adobe.idp.services.WebOutputService.call( 
    WebOutputService.java:70)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.aig.dbg.cto.service.webService.controller.ServiceCallThroWebService.call( 
    ServiceCallThroWebService.java:13)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.aig.dbg.cto.service.webService.controller.WebServiceHandler.perform( 
    WebServiceHandler.java:92)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.struts.action.ActionServlet.processActionPerform( 
    ActionServlet.java:1787)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.struts.action.ActionServlet.process( 
    ActionServlet.java:1586)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at org.apache.struts.action.ActionServlet.doGet( 
    ActionServlet.java:492)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.aig.dbg.cto.service.publishing.controller.PubServlet.doGet( 
    PubServlet.java:42)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:743)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:856)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service( 
    ServletWrapper.java:966)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest( 
    ServletWrapper.java:478)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest( 
    ServletWrapper.java:463)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest( 
    WebApp.java:3129)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest( 
    WebGroup.java:238)[6/25/09 17:05:05:427 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest( 
    WebContainer.java:811)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest( 
    WebContainer.java:1433)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready( 
    WCChannelLink.java:93)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination( 
    HttpInboundLink.java:465)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation( 
    HttpInboundLink.java:394)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete( 
    HttpICLReadCallback.java:102)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted( 
    AioReadCompletionListener.java:152)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback( 
    AbstractAsyncFuture.java:213)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions( 
    AbstractAsyncFuture.java:195)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.AsyncFuture.completed( 
    AsyncFuture.java:136)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.ResultHandler.complete( 
    ResultHandler.java:194)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop( 
    ResultHandler.java:741)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.io.async.ResultHandler$2.run( 
    ResultHandler.java:863)[6/25/09 17:05:05:437 IST] 00000028 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run( 
    ThreadPool.java:1510)
    Please help me to fix this error.
    Thanks in advance
    Lavanya.

    Hodmi, Thanks for your reply.
    If i set RenderOptionsSpec values its not throwing Invalid element RenderOptionsSpec - CB error but its throwing ALC-DSC-000-000 internal error
    [6/26/09 17:11:35:021 IST] 00000029 SystemErr R AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode:
    faultString: 
    com.adobe.livecycle.output.exception.OutputException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.faultActor:
    faultNode:faultDetail:
    {}faultData:<ns1:result xmlns:ns1="http://adobe.com/idp/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
    {http://xml.apache.org/axis/}hostname:A1AIGMD01299
     [6/26/09 17:11:35:021 IST] 00000029 SystemErr R  
    com.adobe.livecycle.output.exception.OutputException: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.message.SOAPFaultBuilder.createFault( 
    SOAPFaultBuilder.java:222)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.message.SOAPFaultBuilder.endElement( 
    SOAPFaultBuilder.java:129)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.encoding.DeserializationContext.endElement( 
    DeserializationContext.java:1087)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    [6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.encoding.DeserializationContext.parse( 
    DeserializationContext.java:227)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.SOAPPart.getAsSOAPEnvelope( 
    SOAPPart.java:696)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.Message.getSOAPEnvelope( 
    Message.java:435)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( 
    MustUnderstandChecker.java:62)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.AxisClient.invoke( 
    AxisClient.java:206)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.Call.invokeEngine( 
    Call.java:2784)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2767)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2443)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:2366)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at org.apache.axis.client.Call.invoke( 
    Call.java:1812)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at com.adobe.idp.services.OutputServiceSoapBindingStub.generatePDFOutput( 
    OutputServiceSoapBindingStub.java:579)[6/26/09 17:11:35:111 IST] 00000029 SystemErr R at com.adobe.idp.services.WebOutputService.call(WebOutputService.java)
    [6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.aig.dbg.cto.service.webService.controller.WebServiceHandler.perform( 
    WebServiceHandler.java:76)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at org.apache.struts.action.ActionServlet.processActionPerform( 
    ActionServlet.java:1787)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at org.apache.struts.action.ActionServlet.process( 
    ActionServlet.java:1586)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at org.apache.struts.action.ActionServlet.doGet( 
    ActionServlet.java:492)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.aig.dbg.cto.service.publishing.controller.PubServlet.doGet( 
    PubServlet.java:42)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:743)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at javax.servlet.http.HttpServlet.service( 
    HttpServlet.java:856)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service( 
    ServletWrapper.java:966)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest( 
    ServletWrapper.java:478)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest( 
    ServletWrapper.java:463)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest( 
    WebApp.java:3129)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest( 
    WebGroup.java:238)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest( 
    WebContainer.java:811)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest( 
    WebContainer.java:1433)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready( 
    WCChannelLink.java:93)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination( 
    HttpInboundLink.java:465)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation( 
    HttpInboundLink.java:394)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready( 
    HttpInboundLink.java:274)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators( 
    NewConnectionInitialReadCallback.java:214)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete( 
    NewConnectionInitialReadCallback.java:113)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted( 
    AioReadCompletionListener.java:152)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback( 
    AbstractAsyncFuture.java:213)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions( 
    AbstractAsyncFuture.java:195)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.AsyncFuture.completed( 
    AsyncFuture.java:136)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.ResultHandler.complete( 
    ResultHandler.java:194)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop( 
    ResultHandler.java:741)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.io.async.ResultHandler$2.run( 
    ResultHandler.java:863)[6/26/09 17:11:35:121 IST] 00000029 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run( 
    ThreadPool.java:1510)
    Please help me to fix this also.
    Thanks in advance
    Lavanya.

  • Order of servlet mapping in web.xml

    Hello,
    is the order of multiple <servlet-mapping> in web.xml important? Or it doesn't matter in which order they are declared?
    For example, if i have two controllers, one is
    <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    and the second:
      <servlet>
        <servlet-name>FrontController</servlet-name>
        <servlet-class>servlets.FrontController</servlet-class>
      </servlet>
    and the mapping are:
       <servlet-mapping>
        <servlet-name>FrontController</servlet-name>
        <url-pattern>/jsf/*</url-pattern>
      </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>where /jsf/ contains jsp pages containing jsf components.
    is the order important?
    And may second question is:
    if i call the jsp page test.jsf in /jsf/test.jsp , which controller is responseble? Faces servlet or Frontcontroller?

    Here is what the 2.4 specification says on the matter (section SRV.11.1):
    >
    The path used for mapping to a servlet is the request URL from the request
    object minus the context path and the path parameters. The URL path mapping rules below are used in order. The first successful match is used with no further matches attempted:
    1. The container will try to find an exact match of the path of the request to the
    path of the servlet. A successful match selects the servlet.
    2. The container will recursively try to match the longest path-prefix. This is done by stepping down the path tree a directory at a time, using the �/� character as a path separator. The longest match determines the servlet selected.
    3. If the last segment in the URL path contains an extension (e.g. .jsp), the servlet container will try to match a servlet that handles requests for the extension. An extension is defined as the part of the last segment after the last �.� character.
    4. If neither of the previous three rules result in a servlet match, the container will attempt to serve content appropriate for the resource requested. If a "default" servlet is defined for the application, it will be used.
    The container must use case-sensitive string comparisons for matching.
    It also notes that in prior versions of the specification these were only a suggestion so if you are on servlet 2.3 or prior, you need to consult the documentation for your container.
    So, to answer your questions, no, order in the descriptor is not important.
    Also, based on the rules above, using your mappings, any URL starting with /jsf will be handled by FrontController including /jsf/test.jsp and /jsf/test.jsf.

  • Can i run a servlet without a web.xml file for servlet mapping?

    Hello everyone.
    The code i want to run compiles and everythink looks ok.
    It produces the .class file.
    I run Tomcat 4.1 and i build my Web site with Dreamweaver.
    I have a form in a page and i want to send the data upon form completion to a database i already have build with MySql.
    The database is up and running and the server is set-up ok.
    I have changed the port in Tomcat to run on port 80.
    The directory i have my site is
    Tomcat41\webapps\ROOT\se
    and the directory where i keep the servlet class is
    Tomcat41\webapps\ROOT\se\WEB-INF\servlet
    I have a web.xml file to map the servlet and placed it in
    Tomcat41\webapps\ROOT\se\WEB-INF
    In the Form action i write action:"/servlets/Classes/GroupRegistration"
    and I RECEIVE AN 404 ERROR FROM APACHE.
    Somethink is wrong .
    The following is the code from the GroupRegistration.java file
    and follws the web.xml file.
    Please Help.
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class GroupRegistration extends HttpServlet
    Connection con;
    public void doPost (HttpServletRequest req, HttpServletResponse res)
                             throws ServletException, java.io.IOException
         handleForm(req, res);
    public void init() throws ServletException {
         try{
         /* Loading the driver for the database */
         Class.forName("com.mysql.jdbc.Driver");
         Connection Con = DriverManager.getConnection("jdbc:mysql://localhost/se?user=luser&password=");
         catch (ClassNotFoundException e) {
         throw new UnavailableException("Couldn't load JdbcOdbcDriver");
         catch (SQLException e) {
         throw new UnavailableException("Couldn't get db connection");
         private void handleForm(HttpServletRequest req, HttpServletResponse res)
         throws ServletException {
         //ServletOutputStream out = res.OutputStream();
         //res.setContentType("text/html");
         //Extract the form Data Here
         String group = req.getParameter("GroupNo");
         String Name1 = req.getParameter("Name1");
         String LoginID1 = req.getParameter("LoginID1");
         String Name2 = req.getParameter("Name2");
         String LoginID2 = req.getParameter("LoginID2");
         String Name3 = req.getParameter("Name3");
         String LoginID3 = req.getParameter("LoginID3");
         String Name4 = req.getParameter("Name4");
         String LoginID4 = req.getParameter("LoginID4");
         String URL = req.getParameter("URL");
         String Title2 = req.getParameter("Title2");
         String date = req.getParameter("date");
         String INSERT = "INSERT INTO registration (groupno, name1, loginid1, name2, loginid2, name3, loginid3, name4, loginid4, url, topic, date) VALUES (" + group + "," + Name1 + "," + LoginID2 + "," + Name2 + "," + LoginID2 + "," + Name3 + "," + LoginID3 + "," + Name4 + "," + LoginID4 + "," + URL + "," + Title2 + "," + date + ")";
         PreparedStatement pstmt = null;
         try{
         pstmt = con.prepareStatement(INSERT);
         pstmt.executeUpdate();
         catch (SQLException e) {
         throw new ServletException(e);
         finally {
         try {
         if (pstmt != null)pstmt.close();
         catch (SQLException ignored){
    The web.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com.xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <servlet>
    <servlet-name>GroupRegistration</servlet-name>
    <servlet-class>GroupRegistration</servlet-class>
    </servlet>
    <servlet-maping>
    <servlet-name>GroupRegistration</servlet-name>
    <url-pattern>/myGroupRegistration</url-patern>
    </servlet-mapping>
    </web-app>
    I apreciate your time.
    Thanks for any help.

    and the directory where i keep the servlet class is
    Tomcat41\webapps\ROOT\se\WEB-INF\servletOthers have pointed out that "servlet" should be "classes", but there is another mistake that hasn't been spotted. If you want your servlet to appear in the root context, you should use:
    Tomcat41\webapps\ROOT\WEB-INF\classes
    If you want your servlet to appear under the /se context, then you should use:
    Tomcat41\webapps\se\WEB-INF\classes
    and also, in the latter case, your form action should be /se/myGroupRegistration.

  • JSP Servlet Mapping  in web.xml

    Hi!
    I have a JSP page by name "ContactUs.jsp" located in the folder <root>/jsp/info and I am using Tomcat Server. As I want to access this file using the URL "http://localhost:8080/<webapp>/ContactUs.jsp" instead of "http://localhost:8080/<webapp>/jsp/info/ContactUs.jsp". For this I added the follwing lines to web.xml file of my web app.
    <servlet>
    <servlet-name>org.apache.jsp.jsp.info.ContactUs_jsp</servlet-name>
    <servlet-class>org.apache.jsp.jsp.info.ContactUs_jsp</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>org.apache.jsp.jsp.info.ContactUs_jsp</servlet-name>
    <url-pattern>/ContactUs.jsp</url-pattern>
    </servlet-mapping>
    But I am getting the error saying that
    "ClassNotFoundException: org.apache.jsp.jsp.info.ContactUs_jsp"
    Is there any thing else to be modified? Please help me.
    Thanks in advance
    Geethanadh.K

    I'm no expert on this but I have a hunch. 1st of all, your using a servlet mapping for a JSP. That's good and well but it seems that the container is complaining that there is no servlet named org.apache.jsp.jsp.info.ContactUs_jsp. In other words it looks like the JSP has not been compiled. At least not yet. Maybe try two things. Visit the JSP once with a browser at it's actual path "http://localhost:8080/<webapp>/jsp/info/ContactUs.jsp" the coerce a page compile. Then try it with your new mapped path. You see, just telling the container that there is a servlet mapped to the new URL doesn't force the container to generate the class. Something or someone must generate the servlet class file.
    Honestly, I'm not sure of what your end goal is but maybe you might consider using a JSP pre-compiler? Or even better, register a servlet at the mapped path that fowards all requests into the desired folder.
    Cliff

Maybe you are looking for

  • Reg Dump in MIGO Transaction

    Hi all, When I am executing MIGO transaction in Pre-Production I am getting error as 'GETWA_NOT_ASSIGNED'. IF I check thru ST22, showing message as 'Field symbol has not yet been assigned'. Could anybody please assist in this regard.Thanks in advance

  • How to create (print) Architectural size sheets in Adobe X?

    Prior to upgrading to Adobe X we used to have the ability to select Architectural paper sizes in Adobe PDF properties which allowed us to create/print to larger scale sizes.  W/ the new version of Adobe the paper standards tab is missing and we can o

  • Link to action in editable ALV

    Hi experts, I have an editable alv with a column where I implemented the UI Element "Linktoaction" for the cells of this column. I implemented it in the WddoInit-Method in my view with the alv: lr_column_settings ?= l_value.   lr_column = lr_column_s

  • Deliverables in implementation project?

    Dear Gurus, what are the deliverables in implementation project?

  • -Ddeployment.user.cachedir belongs to which class?

    I've posted this in another forum, but I think it might be better located here... We have Java runtime j2re_1.4.1 installed across our network, and we are making modifcations to how user profiles are handled that means we need to relcoate the user ca