Can DOCTYPE in web.xml Be "Localized"

At times when starting WebLogic Server 5.1 (sp6) in a Windows NT
environment, our internet connection is slow and the DTD file specified in
the web.xml file cannot be resolved. I have been able to get around this
problem by changing the DOCTYPE in the web.xml file as follows:
From:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
To:
<!DOCTYPE web-app SYSTEM
"file:/d:\weblogic\examples\webapp\ensodex\WEB-INF\web-app_2_2.dtd">
I have placed a copy of Sun's web-app_2_2.dtd file in the specified
directory, and WLS starts up just fine and I can access our web application
without any problems, but ....
Is there any way to simplify the DOCTYPE specification so that the full,
explicit path doesn't have to be specified. A co-worker has been able to
resolve the issue with an Orion server with the following specification,
<!DOCTYPE web-app SYSTEM "web-app_2_2.dtd">, but I have been unable to get
this to work in the WebLogic environment.
I've read the BEA online documentation, and tried placing the
web-app_2_2.dtd file under the document root (defined as
weblogic.httpd.documentRoot=public_html/ in our weblogic.properties file,
but WLS was still unable to locate the file.
Our intent is to place the web-app_2_2.dtd file under WEB-INF along with the
web.xml file since WLS is able to locate the web.xml file successfully, yet
we don't want to have to specify an explicit path to web-app_2_2.dtd file
since this would have to be customized each time the web application is
installed in a different hardware/operating system environment.
Thanks in advance for any suggestions.
John J. Feigal Voice (651)766-8787 (main)
Sr. Technical Consultant (651)766-7249 (direct)
Ensodex, Inc. Fax (651)766-8792
4105 N. Lexington Ave., Suite 150 email [email protected]
Arden Hills, MN 55126 WebSite http://www.ensodex.com

If I remember correctly from the spec, anything that follows SYSTEM is
basically arbitrary, meaning the parser can interpret it as it may. It is
possible that Orion uses a different parser implementation or version. The
other possibility has to do with where the file would have to be in order to
be found; it might have to be in the JAR in the directory with the XML, or
it might have to be in the "working directory" that WebLogic is launched
from (i.e. the weblogic directory).
When we had this problem, we inlined the DTD into the XML, which is
supported by the XML specification.
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"John J. Feigal" <[email protected]> wrote in message
news:[email protected]...
At times when starting WebLogic Server 5.1 (sp6) in a Windows NT
environment, our internet connection is slow and the DTD file specified in
the web.xml file cannot be resolved. I have been able to get around this
problem by changing the DOCTYPE in the web.xml file as follows:
From:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
To:
<!DOCTYPE web-app SYSTEM
"file:/d:\weblogic\examples\webapp\ensodex\WEB-INF\web-app_2_2.dtd">
I have placed a copy of Sun's web-app_2_2.dtd file in the specified
directory, and WLS starts up just fine and I can access our webapplication
without any problems, but ....
Is there any way to simplify the DOCTYPE specification so that the full,
explicit path doesn't have to be specified. A co-worker has been able to
resolve the issue with an Orion server with the following specification,
<!DOCTYPE web-app SYSTEM "web-app_2_2.dtd">, but I have been unable to get
this to work in the WebLogic environment.
I've read the BEA online documentation, and tried placing the
web-app_2_2.dtd file under the document root (defined as
weblogic.httpd.documentRoot=public_html/ in our weblogic.properties file,
but WLS was still unable to locate the file.
Our intent is to place the web-app_2_2.dtd file under WEB-INF along withthe
web.xml file since WLS is able to locate the web.xml file successfully,yet
we don't want to have to specify an explicit path to web-app_2_2.dtd file
since this would have to be customized each time the web application is
installed in a different hardware/operating system environment.
Thanks in advance for any suggestions.
John J. Feigal Voice (651)766-8787 (main)
Sr. Technical Consultant (651)766-7249 (direct)
Ensodex, Inc. Fax (651)766-8792
4105 N. Lexington Ave., Suite 150 email [email protected]
Arden Hills, MN 55126 WebSite http://www.ensodex.com

Similar Messages

  • How can JSP access web.xml

    I have a JSP application that requires properties that are kept in a text file, which I am currently reading from. I would like to move these properties in the web.xml file and read them from there.
    I know how to read properties for a servlet from web.xml, however I do not know how to do this for a JSP. Can someone advise me?
    Thanks
    Matthew

    I'm not exactly sure what you are looking for, but if it's something you can do from a servlet, then you can do it from a JSP the same way. Remember, JSPs are compiled into servlets anyway. Just use the implicit objects (HttpServletRequest request, ServletContext application, etc)

  • Error of xml doctype in web.xml

    which version of doctype to be included for weblogic8.1
    The following is the error that I get while starting my weblogic i.e. startWebLogic.sh
    <Feb 25, 2006 6:34:44 PM IST> <Warning> <Management> <BEA-149317> <Application SmartRefinance is configured with a deprecated deploy
    ment protocol and will be deployed as such.>
    Unexpected Signal : 11 occurred at PC=0xFE09FED0
    Function=[Unknown. Nearest: JVM_Close+0x48674]
    Library=/dre2.ind/users/custody/jdk142_08/jre/lib/sparc/client/libjvm.so
    Current Java thread:
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    - locked <0xb85d3270> (a sun.misc.Launcher$AppClassLoader)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    - locked <0xb85d3270> (a sun.misc.Launcher$AppClassLoader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    - locked <0xb8e892e8> (a weblogic.utils.classloaders.GenericClassLoader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    - locked <0xb1446ed0> (a weblogic.utils.classloaders.GenericClassLoader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    - locked <0xb162e050> (a weblogic.utils.classloaders.ChangeAwareClassLoader)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    - locked <0xb162e050> (a weblogic.utils.classloaders.ChangeAwareClassLoader)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:875)
    - locked <0xb1654938> (a weblogic.servlet.internal.ServletStubImpl)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3430)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3387)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3373)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3356)
    - locked <0xb146a500> (a weblogic.servlet.internal.WebAppServletContext)
    at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:727)
    at weblogic.servlet.internal.WebService.preloadResources(WebService.java:486)
    at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
    at weblogic.Server.main(Server.java:32)
    Dynamic libraries:
    0x10000 /dre2.ind/users/custody/jdk142_08/bin/java
    0xff350000 /usr/lib/libthread.so.1
    0xff340000 /usr/lib/libdl.so.1
    0xff200000 /usr/lib/libc.so.1
    0xff390000 /usr/platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1
    0xfe000000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/client/libjvm.so
    0xff2d0000 /usr/lib/libCrun.so.1
    0xff1d0000 /usr/lib/libsocket.so.1
    0xff100000 /usr/lib/libnsl.so.1
    0xff0b0000 /usr/lib/libm.so.1
    0xff090000 /usr/lib/libsched.so.1
    0xff070000 /usr/lib/libmp.so.2
    0xff040000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/native_threads/libhpi.so
    0xfe7d0000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libverify.so
    0xfe790000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libjava.so
    0xfe770000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libzip.so
    0xf97d0000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libnet.so
    0xf9690000 /dre2.ind/users/custody/weblogic81/server/lib/solaris/libweblogicunix1.so
    0xf95e0000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libnio.so
    0xf95c0000 /usr/lib/librt.so.1
    0xf95a0000 /usr/lib/libaio.so.1
    0xf94e0000 /usr/lib/libsendfile.so.1
    0xf94c0000 /dre2.ind/users/custody/jdk142_08/jre/lib/sparc/libioser12.so
    Heap at VM Abort:
    Heap
    def new generation total 113088K, used 5475K [0xb1400000, 0xb85c0000, 0xb85c0000)
    eden space 109696K, 4% used [0xb1400000, 0xb1958e88, 0xb7f20000)
    from space 3392K, 0% used [0xb7f20000, 0xb7f20000, 0xb8270000)
    to space 3392K, 0% used [0xb8270000, 0xb8270000, 0xb85c0000)
    tenured generation total 932096K, used 16719K [0xb85c0000, 0xf1400000, 0xf1400000)
    the space 932096K, 1% used [0xb85c0000, 0xb9613cc8, 0xb9613e00, 0xf1400000)
    compacting perm gen total 21504K, used 21331K [0xf1400000, 0xf2900000, 0xf9400000)
    the space 21504K, 99% used [0xf1400000, 0xf28d4c18, 0xf28d4e00, 0xf2900000)
    Local Time = Sat Feb 25 13:04:54 2006
    Elapsed Time = 24
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002EF 01
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
    # An error report file has been saved as hs_err_pid6800.log.
    # Please refer to the file for further information.
    and it hangs over here.

    Please show the file
    helloworldtags.tld

  • How can I change application's web.xml in NetWeaver CE 7.1?

    Hello Experts,
    Please help me. I need to configure a J2EE application on NetWeaver 7.1, but I don't know how I can change the web.xml of the application.
    The web.xml of the app needs to be modified during the configuration. This can be achieved via single-file-update in VA in Netweaver 6.4 or 7.0. But I cannot figure out how to do that in NW 7.1.
    Please show me how to do that or at least give me some hints.
    Thank you!
    Jack

    Hi Jack,
    In SAP NetWeaver 7.1 and later, you use the SAP NetWeaver Administrator instead of Visual Administrator.
    To get some information on how to configure web applications, try [THIS|http://help.sap.com/saphelp_nwce10/helpdata/en/45/48a60a528608d1e10000000a11466f/frameset.htm] piece of documentation.
    I hope it helps.
    Best,
    Yordan

  • WEB-INF/web.xml not found exception for deployed war on server startup

    Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!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>
              <display-name>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              

    Kumar,
              Here it is.
              Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
              Can you send us your webapp? I will try to duplicate it in my environment.
              Kumar
              Steve Demuth wrote:
              Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              Interesting.
              This shouldn't happen though.
              Can you stop the server delete the .wl_temp_do_not_delete
              dir? Let's see if that makes any difference.
              Kumar
              Steve Demuth wrote:
              Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!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>
              <display-name>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              [att1.html]
              [controllerUnitTests.war]
              

  • How to deploy web.xml in OAF to server?

    Hello,
    Currently i used oracle 9i jeveloper to develop OAF page for EBS 11.5.10
    based on requirement, i need create a new JSP file and change default web.xml file in jeveloper. Who can help how to deploy new web.xml to server? Thank you very much!
    Added following code to web.xml
    ---web.xml------------
    <servlet>
    <servlet-name>barbecue</servlet-name>
    <servlet-class>net.sourceforge.barbecue.BarcodeServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>barbecue</servlet-name>
    <url-pattern>/CreateBarCode</url-pattern>
    </servlet-mapping>
    -----------------------------------

    Anyone know how to deploy web.xml in local jeveloper to server? thanks a lot!

  • How to configure a JNDI ressource in the web.xml file

    Hi,
    does someone know if there is a way to configure a JNDI ressource with its parameters only in the web.xml file ?
    In my case, the JNDI ressouce is an oracle database an its conenction paramters: driverClassName, username, password, etc...
    Actually, I put everything in the configuration file of Tomcat but I would like my war file to be 100% independent of the application server.
    Thanks in advance.
    Fred.

    I wrestled with this for a long time. I may have done something wrong, but to get my mySQL JDNI reference to work, I had to add it to the server.xml file. You can try with web.xml, but I eventually just got frustrated and put it in server.xml.
    The following is between two <context> tags:
    <Resource name="jdbc/instance_name_goes_here"
                   auth="Container"
                   type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/same_instance_name_here">
                   <parameter>
                        <name>username</name>
                        <value>user_name_goes_here</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>password_goes_here</value>
                   </parameter>
                   <parameter>
                        <name>driverClassName</name>
                        <value>jdbc_fully_qualified_class_name</value>
                   </parameter>
                   <parameter>
                        <name>factory</name>
                        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                   </parameter>
                   <parameter>
                        <name>url</name>
                        <value>jdbc_connect_url_database_vendor_specific</value>
                   </parameter>
                   <parameter>
                        <name>maxActive</name>
                        <value>8</value>
                   </parameter>
                   <parameter>
                        <name>maxIdle</name>
                        <value>8</value>
                   </parameter>
              </ResourceParams>
    - Saish
    "My karma ran over your dogma." - Anon

  • Sevlet without specific mapping in web.xml

    Hi,
              1. How to invoke a servlet without specfic mapping entry in the web.xml file, by compiling and placing the class file under WEB-INF/classes directory?
              2. Is it correct to mapping the servlets in the directory structure alone (not specific), Like
              <servlet-mapping>
              <servlet-name>/myservlets/*</servlet-name>
              <url-pattern>servlets/../myservlets/*</url-pattern>
              Where * - for servlets under myservlets package compiled and placed under WEB-INF classes and invoked from the browser as
              http://localhost:9999/servlets/../myservlets/testpackage.test
              

    You can use servletservlet :
              web.xml:
              <web-app>
              <servlet>
              <servlet-name>ServletServlet</servlet-name>
              <servlet-class>weblogic.servlet.ServletServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>ServletServlet</servlet-name>
              <url-pattern>/servlets/*</url-pattern>
              </servlet-mapping>
              </web-app>
              and your servlet will be accessible as
              http://localhost:7001/yourWebApp/servlets/testpackage/test
              Chitrapandian <[email protected]> wrote:
              > Hi,
              > 1. How to invoke a servlet without specfic mapping entry in the web.xml file, by compiling and placing the class file under WEB-INF/classes directory?
              > 2. Is it correct to mapping the servlets in the directory structure alone (not specific), Like
              > <servlet-mapping>
              > <servlet-name>/myservlets/*</servlet-name>
              > <url-pattern>servlets/../myservlets/*</url-pattern>
              >
              > Where * - for servlets under myservlets package compiled and placed under WEB-INF classes and invoked from the browser as
              > http://localhost:9999/servlets/../myservlets/testpackage.test
              Dimitri
              

  • Read web.xml from a webservice method

    Hi,
    How can i read web.xml parameters inside a webservice method

    Huh?
    What is the use case for that? A web service method may need parameters, but you should not read them from the web.xml file. Instead you can use a method in a bead which reads the parameters and pass them to the web service method.
    Timo

  • How can i read XML from local drive using Javascript into Live Cycle

    Hello,
    I am creating PDF Form using Acrobat LiveCycle.
    I want to write java script for load data into relative field and data present into xml file which is located at local drive
    I have write all method for parsing xml which is required ............... but i am stuck into how to read/open/load local drive xml using javascript?

    sandyrock:
    You'd better post this message to Adobe LiveCycle forum: http://www.adobeforums.com/webx/.3bbeda8d/
    You can use postMessage method in LiveCycle JavaScript to communicate with host application,the host application can be a web brower like IE.
    In IE you can use IE javascript to access local XML file.

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • Can a web.xml include another web.xml ?

    The application i am working at has alot of servlets and i was wondering if i can put some order in my web-app by separating my web.xml in different smaller web.xml's ?

    I can sympathize with you as far as the readability goes.
    I know that Tomcat 4 provides a GUI that's intended to make editing server and container level XML files a lot easier, but I'm not certain if it handles application level XMLs too. I think it's safe to say that version 5 will probably either support modifying web.xml files through the GUI or someone will make that feature available through an add-on module.
    In the meantime, the length of the XML doesn't affect Tomcat. I would just put up with it until the tool comes along.

  • How can one use one specific security realm per application ? The realm-name attribute of the login-config tag of web.xml does not make any difference

    Hi,
    I have different sets of users coming from different databases and using different
    roles mapping for each of my web applications. I would like to configure a specific
    security realm per application in my weblogic server 7.0 . Is it possible ?
    I try to specify the realm-name of the login-config tag from the web-xml deployement
    descriptor but it doesn't make any difference. The default realm is always used.
    I also would like to tell the Weblogic server to use the default realm in case
    the realm isn't specified or isn't found. For example, the default would contains
    my admin users.
    Thanks a lot for your answer.
    Iz

    I thik this is a common mistake the ralm-name tag in the deployment descriptor is used
    just by the browser for display purposes (when it opens the basic auth dialog box) so as
    of now there is only 1 active realm which can have multiple providers as Kevin pointed
    out
    Kevin Lewis wrote:
    WebLogic 7 now ignores the realm-name tag (I found that out yesterday).
    My understanding is that there is only one realm active at a time for a domain
    (I would be interested in being contradicted in this).
    However, you can have multiple providers in each category of a realm: authentication,
    authorization, etc. Therefore, what you can do is key authentication, et al,
    off of some other information. We have our users enter their company, for example,
    and use the TextInputCallback to get it. You could also encode something in the
    initial page, based on the URL they hit, or whatever, and get that back in your
    callback.
    You can store that information in your own Principal implementation, and key off
    of that in your authorization provider, going to a different database as appropriate,
    or abstaining when a specific provider doesn’t have anything to say about a subject.
    Anyway, there should be a way to do it, even if it's more complex than you would
    have hoped.
    --Kevin

  • Strange web.xml tag error deploying on jBoss 4.0.5 / java5 / ejb3 : local-h

    Hi.
    We have an ejb3 / jsf / Java5 app that lives quite happily on OC4J standalone.
    When i try to deploy it on BEA 10 (tech preview) or jBoss 4.0.5 - ejb3 it throws the following:
    [org.jboss.web.tomcat.tc5.Tomcat5] Problem in init
    org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected one local-home tag)
    It's asking for the local-home tag.
    We have quite a few <local> tags spread around, but no need for <local-home> (that seems to me as a ejb 2.x web.xml DTD tag for me).
    Why doesn't oc4j bother me, and bea or jboss do ??
    What is the standard ?? And/Or why isn't it implemented the same way ??
    Any clues ..?
    servlet motor (2.4, 2.5 ??)
    Thanks a lot.
    js.

    Do your standard deployment descriptors (ejb-jar.xml, web.xml, etc.) refer to the latest
    Java EE 5 schema versions? The ejb-ref element was changed in
    Java EE 5 to make local-home optional, since it's not needed to express a business interface
    dependency. It's either that or the schema versions in the tech preview itself are not up to date.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" 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_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

Maybe you are looking for

  • Macbook Pro to Macbook Pro Video Mirroring

    Hey all, Is there a way while downloading video off of video camera onto a MBP to connect it another MBP so that both screens can be watched at the same time? I'm a football coach and on the way home from away games we'll download the video of the ga

  • Opening an External Window which shares the same context.

    Hi, I have a requirement where <b>I need to open an external window which shares the same context</b>. (i.e, A window which belongs to the same application in a seperate browser) If I use the following coding <b>it only opens a model window in the sa

  • Problem with palette

    Hello, I am writing a script for Illustrator. I created a palette with some buttons. I like to keep the palette open while working in Illustrator. The problem is, that the buttons dont work. For example, I have a delete button that should delete my a

  • Email Names/Addresses  in Groups Don't Show up

    I have some groups which contain members of my address book which fail to show up when sending an email to this particular group. I have created the group over and over again....although the group has all the correct names and email addresses; it fai

  • IDM Workflow - Reading values of Multiselect

    Hi, I have some user ids in the multselect box - in the left side list box. Once the user selection is done, the user ids will be moved to right hand list box. There is a launch button in the page. When i click the launch button the values of list bo