Welcome File in Web.xml

          I am having problems with my web.xml file.
          I have my welcome page <welcome-file> as my “home_page.jsp” which I want to be
          the default page on start-up. On this page is a link to “log on”. When you click
          on this you are taken to my (FORM) “Login.jsp”. After successful logon I want
          to go to the “Welcome.jsp”, instead I am returned to my “home_page.jsp”. Which
          puts me in a continuous loop. How after successful logon can I be directed to
          a page other than the <welcome-file> “home_page.jsp”
          My web.xml file looks like this;
          <!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>
          <welcome-file-list>
          <welcome-file>Welcome.jsp</welcome-file>
          </welcome-file-list>
          <login-config>
          <auth-method>FORM</auth-method>
          <realm-name>default</realm-name>
          <form-login-config>
               <form-login-page>/Login.jsp</form-login-page>
               <form-error-page>/LoginFailure.jsp</form-error-page>
          </form-login-config>
          </login-config>
          <security-role>
          <role-name>web-user</role-name>
          </security-role>
          <security-constraint>
          <web-resource-collection>
          <web-resource-name>Logged into NOTiFY</web-resource-name>
          <url-pattern>/Welcome.jsp</url-pattern>
          <http-method>GET</http-method>
          <http-method>POST</http-method>
          </web-resource-collection>
          <auth-constraint>
          <role-name>web-user</role-name>
          </auth-constraint>
          </security-constraint>
          </web-app>
          Thanks.
          

It doesn't quite work that way. You should just direct the user directly to
          the Welcome.jsp page. If they're not already logged in, they'll be asked to
          log-in via the Login.jsp. The login mechanism knows to redirect them to the
          last page they wanted once they successfully log in. I think this is why you
          are being returned to the home_page.jsp, since there was no target
          restricted page requested.
          I have to admit - this mechanism doesn't lend itself to the portal-style
          login used on the web. It's geared more towards security and authorization
          for access to particular URL resources. You might need to tweak how your GUI
          looks to make this mechanism make sense.
          Alternatively, you could add some code to the home_page.jsp to redirect the
          user to a specific restricted page based on what is in their session. I
          would also suggest that the Welcome.jsp and home_page.jsp be the same page
          that just behaves differently based upon whether a user is logged in or not.
          "Roger Lee" <[email protected]> wrote in message
          news:[email protected]...
          >
          > I am having problems with my web.xml file.
          >
          > I have my welcome page <welcome-file> as my "home_page.jsp" which I want
          to be
          > the default page on start-up. On this page is a link to "log on". When you
          click
          > on this you are taken to my (FORM) "Login.jsp". After successful logon I
          want
          > to go to the "Welcome.jsp", instead I am returned to my "home_page.jsp".
          Which
          > puts me in a continuous loop. How after successful logon can I be directed
          to
          > a page other than the <welcome-file> "home_page.jsp"
          >
          > My web.xml file looks like this;
          >
          > <!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>
          >
          > <welcome-file-list>
          > <welcome-file>Welcome.jsp</welcome-file>
          > </welcome-file-list>
          >
          > <login-config>
          > <auth-method>FORM</auth-method>
          > <realm-name>default</realm-name>
          > <form-login-config>
          > <form-login-page>/Login.jsp</form-login-page>
          > <form-error-page>/LoginFailure.jsp</form-error-page>
          > </form-login-config>
          > </login-config>
          >
          > <security-role>
          > <role-name>web-user</role-name>
          > </security-role>
          >
          > <security-constraint>
          > <web-resource-collection>
          > <web-resource-name>Logged into NOTiFY</web-resource-name>
          > <url-pattern>/Welcome.jsp</url-pattern>
          > <http-method>GET</http-method>
          > <http-method>POST</http-method>
          > </web-resource-collection>
          > <auth-constraint>
          > <role-name>web-user</role-name>
          > </auth-constraint>
          > </security-constraint>
          >
          > </web-app>
          >
          > Thanks.
          >
          

Similar Messages

  • How to chage the welcome file in web.xml using creator?

    Hi guys,
    I want to set the welcome file in web.xml to index.html but every time I run my project in creator, creator replaces index.html by faces/index.jsp. I need the index.html to check if the browser enables cookies & javascript and then I redirect to index.jsp. If I change the web.xml in a common editor, build the war-file with ant and deploy the project with tomcat, everything is fine. but how can I change it in creator?
    thanks in advance

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

  • Use of jsp-file in web.xml

    hello
    can anybody explain about , when we need <jsp-file> in web.xml
    and why we use this tag in place of <url-pattern>?

    If you want to declare a JSP in your web.xml file you use the jsp-file tag instead of the servlet-class tag. Normally there is no need to declare a JSP in the web.xml file unless you want to use init-params.
    Usually people can access a JSP directly wether it is declared in the web.xml or not. So it is not that the jsp-file tag replaces the url-pattern tag so much as the url-pattern tag is not needed for a JSP. However notthing prevents you from declaring the JSP in the web.xml and then mapping the JSP to a different url that doesn't end in '.jsp'.

  • Include another xml file in web.xml

    I was able to use XML Entity to include another xml file in web.xml for older servlet specifications, i.e.:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd" [
      <!ENTITY my-web SYSTEM "my-web.xml">
    ]>
    <web-app>
      &my-web;
    </web-app>This allows me to share my-web.xml among various web applications.
    How do I achieve the same thing for servlet specification 2.5, which does not have a DTD but rather an XSD?
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5">I am using Glassfish V2UR1. I know about $domain-dir/config/default-web.xml, but for reasons I won't get into I cannot put things in there.

    Hi Maksim. I understood that. It's just that I would prefer some method that doesn't require the developers to do something like extracting a file from the EAR file, changing the file and then putting it back in. As you probably know, some developers could handle it and some will most certainly make mistakes.
    When they do they come to my group and say "my app doesn't work" and then we have to spend time figuring out why.
    Plus, once the developers get used to doing things the automated way they're going to have a hard time remembering to do a manual step each time they do a build.
    I have heard that there may be some way to do something similar to this on Visual Administrator. I'm going to investigate that too.
    Thanks!
    David.

  • Java property file in web.xml?

    I'm having trouble getting a web app to work resonably closely to how I expect:
    I have a property file that is accessed by the package of java classes ( under
    WEB-INF/classes). In the classes ( package com.th.lifeinsruance ) i have a property
    file which is referenced in the java code as com.th.lifeinsurance.xx.properties.
    It seems the only place that wl6.0 is prepared to look for this property file
    is under the /weblogic6.0 dir ( i.e totally outside the web app!!). I would guess
    that I'm supposed to register this property file in web.xml for the app however
    the only examples refer to DataSources and so on ( to set a resource). Is this
    correct? Does someone have an example of a java property file being read correctly
    in its package with the .class files?
    Many Thanks
    Mark

    I've some other solution for the same problem which is working fine for me.
    1) make a jar file only consisting of the properties file
    jar -cvf DescriptionBundle.jar  DescriptionBundle.properties
    2) copy the jar file to the /dist/Portal-inf/lib folder
    3) Use the following code to get the ResourceBundle
    Locale locale = null;
    Locale locale = null;
    locale = Locale.US;
    servletReq.getSession().setAttribute("myLocale", locale);
    ResourceBundle bundle = ResourceBundle.getBundle("DescriptionBundle", locale);
    if (bundle == null) {
         logger.warning("bundle is null");
    for (Enumeration e = bundle.getKeys(); e.hasMoreElements();) {
         String key = (String) e.nextElement();
         String s = bundle.getString(key);
         servletReq.getSession().setAttribute(key, s);
         logger.info("Key is" + key + "value is" + s);
    This solution doesn't suit  the title of the topic but is another way to access the properties files.

  • (newbie) Question about replacing .class files and web.xml file

    I'm new to servlets and I have two quick questions...
    Do I absolutely need a web.xml file to define all my servlets, or can I simply place .class files into the WEB-INF directory and expect them to run?
    If my application server (for example Tomcat) is running and I replace a servlet .class file, do I need to restart the server for the new .class file to take effect?
    ...or are both of these questions specific to the application server I'm using?

    Hi,
    From an article I read:
    With Tomcat 3.x, by default servlet container was set up to allow invoking a servet through a common mapping under the /servlet/ directory.
    A servlet could be accessed by simply using an url like this one:
    http://[domain]:[port]/[context]/servlet/[servlet full qualified name].
    The mapping was set inside the web application descriptor (web.xml), located under $TOMCAT_HOME/conf.
    With Tomcat 4.x the Jakarta developers have decided to stop allowing this by default. The <servlet-mapping> tag that sets this mapping up, has been commented inside the default web application descriptor (web.xml), located under $CATALINA_HOME/conf:
    <!-- The mapping for the invoker servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    -->
    A developer can simply map all the servlet inside the web application descriptor of its own web application (that is highly suggested), or simply uncomment that mapping (that is highly discouraged).
    It is important to notice that the /servlet/ isn't part of Servlet 2.3 specifications so there are no guarantee that the container will support that. So, if the developer decides to uncomment that mapping, the application will loose portabiliy.
    And declangallagher, I will use caution in future :-)

  • How to read configuration data from an xml file (not web.xml)?

    Hi,
    I want to separate the application specific configuration parameters in a separate xml file and read them as and when they are needed? I know that I can use the wb.xml but I want to separate them in a different xml file because I don't want the web.xml file to be played around later after deployment. If any change is needed then it should be done in the application-config.xml.
    How can I read the parameters from this xml file in my jsp code and also what should be the location of this file if I have
    ../webapps/Root/application
    directoty structure ?
    Any help is greatly appreciated.

    can you give an example of a property file and also
    it is loaded in the jsp ?Hmm... loading properties in a JSP is not a very good idea. You should do it in a separate class, rather than mixing the logic with the display logic.
    Properties properties = new Properties();
    properties.load(UtilClass.class.getResourceAsStream("config.properties"));
    // Add a try - catch block around the load
    // for IOException...

  • Cannot find JSP file through web.xml

    Content of a.jsp
    function Thisthing (id, name) {
    this.id = id;
    this.descr = name;
    I want to access a.jsp from b.jsp. like
    <script type="text/javascript" src="a.js"></script>
    I have web.xml content
    <servlet>
    <servlet-name>DomainObjectis</servlet-name>
    <jsp-file>/a.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>DomainObjectis</servlet-name>
    <url-pattern>*.js</url-pattern>
    </servlet-mapping>
    However its showing me an error -> .Thisthing undefined whenever I run this in Tomcat 5.5.
    I appears its not finding my a.jsp file. It's working fine when I do
    <%@ include file="a.jsp" %>

    thanks for replying jgalacambra.
    I have deployed several web applications before. But this is the first one where I am trying to include a JSP file as a javascript.
    tomcat recognizes when I simply including the jsp file with import but when I try to include it as a script it's not working. So I am hoping that there are some experts here who can help me. I saw this being done in a project and am trying to build a similar web application myself.

  • Trouble with war file contianing web.xml

    I have a problem with my ISP. I have to send a war file to upload my files. It includes my web.xml file, but it seems that it's ignored when i visit my site. Can somebody help me with this. When I run the web.xml file on my own computer it works fine.
    I create my war file at the moment with the command jar cvf name.war -C d:\directory .
    It also look like a good deploy of the site because everything gets into the right please.
    Tnx for the help already

    Well when I go to my site and I go into my small Content Management System I press a button and it should call on a page under de alias admintool. In my web.xml file it will redirect the request to the proper class file. This doesn't work. I also add a form-login-page option into my web.xml file. So that when I call on a page it should redirect to a login screen. But that doesn't work also. It doesn't redirect, it's goes straight to the page that should be secure.

  • How to use dynamic file as welcome-file-list in web.xml

    I have configured my web.xml file as this,
    <web-app>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    <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>
    <welcome-file-list>
    <welcome-file>login.jsf</welcome-file>
    </welcome-file-list>
    </web-app>
    and my login.xhtml file as this,
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:f="http://java.sun.com/jsf/core">
    <body>
    <f:view>
    <h:form>
    UserName:<h:inputText id="userName"
    value="#{bean.userName}" rendered="true"
    required="true"/>
    Password:<h:inputText id="password"
    value="#{bean.password}" rendered="true"
    required="true"/>
    <h:commandButton id="submit" value="Submit" action="#{bean.authenticate}" />
    </h:form>
    </f:view>
    </body>
    </html>
    but when i deploy this using tomcat and try to put url as this,
    http://localhost:8080/project
    Its not identifying welcome file from web.xml
    I am getting error like this,
    The requested resource (/project/) is not available.
    How to resolve this,
    Thanks,
    Vinutha

    This might help:
    http://forum.java.sun.com/thread.jspa?threadID=696586
    As well, you might have to change the servlet-mapping in your web.xml. The url-pattern, I think, needs to be .xhtml. Your login.jsf file in the welcome list will need to be renamed to login.xhtml.
    CowKing

  • Tomcat and Structs: welcome-file

    Dear all,
    With tomcat 5.0, 5.5, I defined the welcome file in web.xml as
    <welcome-file-list>
    <welcome-file>/login.show.do</welcome-file>
    </welcome-file-list>
    It did work.
    But if I put
    <welcome-file-list>
    <welcome-file>/login.show.do</welcome-file>
    </welcome-file-list>
    It did not work.
    Are there any explanation/solution/workround?
    Regards,
    PY
    PS: With Weblogic 8.0, there is no this kind of limitation.

    Sorry. Let me correct my question as follows:
    Dear all,
    With tomcat 5.0, 5.5, I defined the welcome file in
    web.xml as
    <welcome-file-list>
    <welcome-file>/login.jsp</welcome-file>
    </welcome-file-list>
    It works.
    But if I put
    <welcome-file-list>
    <welcome-file>/login.show.do</welcome-file>
    </welcome-file-list>
    It does not work.
    Are there any explanation/solution/workround?
    Regards,
    PY
    PS: With Weblogic 8.0, there is no this kind of
    limitation.

  • How to set two different welcome-file to different servlets in web.xml

    Hi friends,
    Can some one help with web.xml file
    I have to different servlets in applications.
    I want to set two different welcome files for my two different
    servlets in web.xml
    Please, can some one give me sample code to achieve this.
    Here web.xml code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>     
         <servlet>
              <servlet-name>reports</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>reports</servlet-name>
              <url-pattern>/reports</url-pattern>
         </servlet-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>reportsindex.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>calldetails</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>calldetails</servlet-name>
              <url-pattern>/calldetails</url-pattern>
         </servlet-mapping>
    <welcome-file-list>
              <welcome-file>calldetailsindex.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    I need this fix immediately. Your help will be really appreciated. Thanks in advance.

    First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
    Your servlet section:
    <servlet>
      <servlet-name>Controller</servlet-name>
      <servlet-class>com.company.ControllerServlet</servlet-class>
    </servlet>Now you would add the following to your welcome file list:
    <welcome-file-list>
      <welcome-file>Controller</welcome-file>
    </welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
    Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
    Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
    HTH.

  • SDK : web.xml file, what for ?

    Hello,
    I designed a new web service using the SDK, I noticed a file named web.xml, with some authority settings in it.
    What's the purpose of such file ? Is it to define which roles is required to be able to call a WS ?
    Thanks

    Thank Ivan, can you give me more details ?
    Here is my file content :
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>Extended Web Services</display-name>
         <login-config>
           <auth-method>BASIC</auth-method>
         </login-config>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>restricted methods</web-resource-name>
                   <url-pattern>/*</url-pattern>
                   <http-method>POST</http-method>
                   <http-method>GET</http-method>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>Admin</role-name>
              </auth-constraint>
         </security-constraint>
    </web-app>
    What the purpose of the <role-name> node ? Is it referring a NW role needed to call WS ?

  • Unable to load descriptor .../web.xml - DescriptorException - Java EE6 war

    Deploying a simple Java EE 6 war into WebLogic 10.3.3 fails with <Unable to load descriptor /root/Oracle/Middleware/user_projects/domains/palis1/servers/AdminServer/upload/SimpleEE6App.war/WEB-INF/web.xml of module SimpleEE6App.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    problem: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
    The web app consists of one JSF 2 web dialog, one managed bean, one stateless session bean and one entity bean. In GlassFish v3 the app works fine. Then I installed the actual version of WebLogic server in order to check whether I can run EE6 apps there to. But deploying the war using WebLogic admin console fails with
    ... <AdminServer> <main> <<WLS Kernel>> <> <> <1273649525966> <BEA-000360> <Server started in RUNNING mode>
    ... <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <> <1273649790693> <BEA-160197> <Unable to load descriptor /root/Oracle/Middleware/user_projects/domains/palis1/servers/AdminServer/upload/SimpleEE6App.war/WEB-INF/web.xml of module SimpleEE6App.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
    problem: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
    at weblogic.servlet.utils.WarUtils.getWebAppBean(WarUtils.java:124)
    at weblogic.application.compiler.WARModule.processLibraries(WARModule.java:413)
    at weblogic.application.compiler.WARModule.merge(WARModule.java:455)
    at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:16)
    at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
    at weblogic.application.compiler.ReadOnlyWarMerger.merge(ReadOnlyWarMerger.java:27)
    at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:88)
    at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:41)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
    at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:157)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.AppMerge.merge(AppMerge.java:169)
    at weblogic.deploy.api.internal.utils.AppMerger.merge(AppMerger.java:88)
    at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.java:63)
    at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:181)
    at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createLazyDeployableObject(WebLogicDeployableObjectFactoryImpl.java:156)
    at weblogic.deploy.api.tools.SessionHelper.inspect(SessionHelper.java:661)
    at com.bea.console.actions.app.install.Flow$2.execute(Flow.java:469)
    at com.bea.console.utils.DeploymentUtils.runDeploymentAction(DeploymentUtils.java:5000)
    at com.bea.console.actions.app.install.Flow.appSelected(Flow.java:467)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
    at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
    at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
    The web.xml is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
    </context-param>
    <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>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
    </web-app>
    After changing the version number I got the same error message with the differing number. I also tryed to deploy the web-app_3_0.xsd into the server. This also did not solve the problem.
    Any ideas?
    Thanks in advance
    Axel Burghof

    The web app consists of one JSF 2 web dialog, one managed bean, one stateless session bean and one entity bean. In GlassFish v3 the app works fine. Then I installed the actual version of WebLogic server in order to check whether I can run EE6 apps there to. But deploying the war using WebLogic admin console fails with ...
    Hey Axel -
    WLS 10.3.x does not implement Java EE 6 -- it's a Java EE 5 based server.
    While we have added support for a few independent Java EE 6 specifications where we can -- such as JSF 2.0 in WLS 10.3.3 and JPA 2.0/JAX-RS 1.1 with WLS 10.3.4 that is coming in the next patchset -- we don't support all of the Java EE 6 model and thus you can't use any of the EJB 3.1, Servlet 3.0 changes and you can't deploy EJBs (and JPA entities) inside of a WAR file. Our next major release will be a Java EE 6 implementation, where this will be possible.
    -steve-

  • Problem in web.xml  -- servletcontext

    Pls look at the code and web.xml file for invoking servlet.
    index.html
    <html>
    <head>
    <title>Servlet Context Example</title>
    </head>
    <body>
    <form method="get" action="callservlet">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>ServletConExample.java
    package com.servletcontext;
    import java.io.IOException;
    import javax.servlet.ServletContext;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ServletConExample extends HttpServlet {
         private static final long serialVersionUID = 1L;
         ServletContext con;
         public void init()
              con = getServletContext();
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              con.setAttribute("logname", "shobhit");
              response.sendRedirect("./com.servletcontext.TestServCon");
    }TestServCon.java
    package com.servletcontext;
    import java.io.IOException;
    import javax.servlet.ServletContext;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class TestServCon extends HttpServlet {
         private static final long serialVersionUID = 1L;
         ServletContext con;
         public void init()
              con = getServletContext();
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException
              String str = (String)con.getAttribute("logname");
              response.getWriter().println("value of attribute logname is "+str);
    }web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
         <servlet>
              <servlet-name>servletcontext</servlet-name>
              <servlet-class>com.servletcontext.ServletConExample</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>servletcontext</servlet-name>
              <url-pattern>/callservlet</url-pattern>
         </servlet-mapping>
         <Welcome-file-list>
              <Welcome-file>index.html</Welcome-file>
         </Welcome-file-list>
    </web-app>Error Page:
    HTTP Status 404 - /ServletContext/com.servletcontext.TestServCon
    type Status report
    message /ServletContext/com.servletcontext.TestServCon
    description The requested resource (/ServletContext/com.servletcontext.TestServCon) is not available.
    Apache Tomcat/5.5.26 I think problem is in web.xml file. Can any help me to resolve this problem.
    Thanks,
    Shobhit

    You must declare TestServCon.java on web.xml as you did for the first servlet
    and in the sendRedirect use the following code :
    response.sendRedirect("TestServCon");//   TestServCon is the servlet mapping you declared in web.xml
    //or this
    response.sendRedirect("./TestServCon");

Maybe you are looking for

  • How to get All Mails from outlook

    Hi am reading mail from outlook.. It reads only unread mails. But i want to read all mails. if any one knows please help me..My code is.. import javax.mail.*; import javax.mail.internet.*; import java.util.*; import java.io.*; public class AllPartsCl

  • Changing Order of Songs in Album-iTunes 12

    Like the title says, how do I change the order of songs in a album? Before you could use get info and sort by track number. Thanks

  • "Remove all website data," cookies, and extension preferences

    Safari 5.1 Lion Can someone please confirm the following (very unfortunate) behavior? 1) Check the option "Block cookies from 3rd parties and advertisers" 2) Visit any major site (CNN, CNET, etc.) 3) 3rd party cookies and tracking data is still acqui

  • Mouse to switch primary and seconds buttons not working on Forms 6i

    Hi All, I am facing problem while i am using Form6i Application on web. We have a couple users that they are left hand. When they set their mouse to switch primary and seconds buttons under windows setup. The menus do not worked on Form6i Application

  • Migrating existing portable homes to new server

    aside from moving the homedir data from the old server to the new, there seem to be at least a few issues with migrating existing portable home accounts to a new server: 1. some of users' account details, like GeneratedUID, authentication authority,