Document Root
I am not able to set the document root for weblogic 6.0 to a custom
directory. How is it possible? I need to run the jsps there. And I dont
want to create a war out of the existing stuff.
This is a feature that we want to add in the future. At the current time,
you could put the JSP pages directly in the default webapp directory:
C:\bea\wlserver6.0\config\examples\applications\DefaultWebApp_examplesServer
Or, you can create a stub Web.XML file and directory structure and create
and exploded war file.
Michael Girdley, BEA Systems Inc
Learning WebLogic? Buy the book.
http://www.learnweblogic.com/
"S. Rochan" <[email protected]> wrote in message
news:[email protected]..
I am not able to set the document root for weblogic 6.0 to a custom
directory. How is it possible? I need to run the jsps there. And I dont
want to create a war out of the existing stuff.
Similar Messages
-
hi
using tomcat 4
and jdf1.5
i am getting bellow error
org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".Check your web.xml once again.
-
Org.xml.sax.SAXParseException: Document root element is missing.
Hi,
I am trying to get the portal login id from a weblogic server based application from iplaet portal server.
I get this follwoing error
org.xml.sax.SAXParseException: Document root element is missing.
at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
at com.sun.xml.parser.Parser.fatal(Parser.java:2805)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:493)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at com.sun.xml.tree.XmlDocument.createXmlDocument(XmlDocument.java:226)
at com.iplanet.portalserver.util.XMLParser.<init>(XMLParser.java:70)
at com.iplanet.portalserver.naming.share.NamingResponseParser.<init>(NamingResponseParser.java:33)
at com.iplanet.portalserver.naming.share.NamingResponse.parseXML(NamingResponse.java:74)
at com.iplanet.portalserver.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:174)
at com.iplanet.portalserver.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:155)
at com.iplanet.portalserver.naming.WebtopNaming.getServiceURL(WebtopNaming.java:57)
at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:534)
at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:520)
at com.iplanet.portalserver.session.Session.getSession(Session.java:414)
at jsp_servlet.__eatonPortalLogin._jspService(__eatonPortalLogin.java:155)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:462)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
<May 19, 2004 9:01:12 AM EDT> <Error> <HTTP> <101017> <[ServletContext(id=4873279,name=ematrix,context-path=/ematrix)] Root cause of ServletException
com.iplanet.portalserver.session.SessionException
at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:539)
at com.iplanet.portalserver.session.Session.getSessionServiceURL(Session.java:520)
at com.iplanet.portalserver.session.Session.getSession(Session.java:414)
at jsp_servlet.__eatonPortalLogin._jspService(__eatonPortalLogin.java:155)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:462)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
Any help/pointers will be appreciated.
AshishJust for anyone else who hits this problem: I encountered the same issue with an XML document that XMLSpy claims is quite well formed. I opened the document in a hex editor, and there at the from was a three-byte byte order marker - the marker that I believe the UTF-8 standard says is optional. I removed these three bytes, and the file was parsed correctly.
In this case, the XML file was created using a Microsft DOM (save).
My solution is to make the java parser - as I use it - a tad more robust: Open the file and create an input stream - a pushback input stream. Read the first three bytes; if they are NOT a BOM, then push those bytes back. Now - in any case - give the stream to the parser to read.
try {
// Open file for reading.
f = new File(path);
FileInputStream fis = new FileInputStream(f);
PushbackInputStream pis = new PushbackInputStream(fis);
byte[] buf = new byte[3];
pis.read(buf, 0, 3);
if (! (buf[0] == 0x00EF) && (buf[1] == 0x00BB) && (buf[2] == 0x00BF) ) {
pis.unread(buf, 0, 3);
builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
doc = builder.parse(pis);
catch (Exception x) {
x.printStackTrace();
} -
XML "Document root element is missing"
i have made a research in the forums but i have no definite solution about the error.
my flash client sends XML stream to my ServerSocket. and i want to parse these XML datas.
Document XMLDoc;
DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();
DocumentBuilder Builder = Factory.newDocumentBuilder() ;
InputSource Is = new InputSource(new BufferedReader(new InputStreamReader(Sock.getInputStream(),"UTF-16LE")));
XMLDoc = Builder.parse(Is);
But now i have problem called "Document root element is missing". My XML stream comming from flash client :
// Actionscript code :
XDoc = new XML("<?XML version=\"1\"?><LOGIN><USERNAME>KHARON</USERNAME><PASSWORD>485009</PASSWORD></LOGIN>");
----- The XML data i want to sent to ...
<?XML version="1"?>
<LOGIN>
<USERNAME>KHARON</USERNAME>
<PASSWORD>485009</PASSWORD>
</LOGIN>
What is the problem ?now ?
// Actionscript
XSock = new XMLSocket();
XSock.connect("127.0.0.1",6667);
XDoc = new XML("<?xml version=\"1.0\"?><LOGIN><USERNAME>KHARON</USERNAME><PASSWORD>ew2345dfs</PASSWORD></LOGIN>");
// Java
public void run() {
try {
Document XMLDoc;
DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();
DocumentBuilder Builder = Factory.newDocumentBuilder() ;
InputSource Is = new InputSource(new BufferedReader(new InputStreamReader(Sock.getInputStream(),"UTF-16LE")));
XMLDoc = Builder.parse(Is);
org.w3c.dom.Node Node = XMLDoc.getFirstChild();
System.out.print(Node.getNodeValue());
/* Incomming data test code
System.out.print("Listening to incomming messeges");
char in ;
while ( (in = (char)Reader.read()) != -1 ) {
System.out.print( in );
but the result
parser exception ( Document root element is missing )
ihave made a research ( i am newbee in XML) and i have made some declerations like <!DOCTYPE LOGIN <!Element ...
i have declared root element with DOC type decleration. but the same error. :|
since 2 days i am working over these, but solution = null -
Setting Document Root in WebLogic 6.1
I have recently migrated from WebLogic 5.1 to WebLogic 6.1, on Windows 2000
running jdk 1.3.1. My Document Root settings (weblogic.httpd.documentRoot)
from WebLogic 5.1 in my weblogic.properties file did not carry over to
WebLogic 6.1, so does anybody know how to set the Document Root in WebLogic
6.1? Or is there an equivalent to it now?
Thanks in advance,
Dustin N. JenkinsHi Dustin,
I think you posted this to the wrong newsgroup :-)
In WLS 6.1, document roots are Web Application specific. Unless you explicitly
change it, the default Web Application (the one that you get when you type in
the http://localhost:7001 URL), the document root is a folder under your domain's
application directory named "DefaultWebApp_{name-of-your-server}". Where {name-of-your-server}
is whatever value you assigned to the -Dweblogic.Name property, on the command
line you started WLS with. Refer to the WLS 6.1 documentation for instructions
on how to change this to a different Web Application. Here are a couple of links
that will provide you with some insight into this:
http://edocs.bea.com/wls/docs61/webapp/basics.html#136976
http://edocs.bea.com/wls/docs61/adminguide/web_server.html#113228
Regards,
Mike Wooten
"Dustin N. Jenkins" <[email protected]> wrote:
I have recently migrated from WebLogic 5.1 to WebLogic 6.1, on Windows
2000
running jdk 1.3.1. My Document Root settings (weblogic.httpd.documentRoot)
from WebLogic 5.1 in my weblogic.properties file did not carry over to
WebLogic 6.1, so does anybody know how to set the Document Root in WebLogic
6.1? Or is there an equivalent to it now?
Thanks in advance,
Dustin N. Jenkins -
Changing the document root in WLS 6.0 SP1
Hello,
I want to change the deployment folder of
config/<domainName>/applications
to another folder in our source tree. Is this possible? The reason we
want to do this is because our root tree contains the java source code
and web-related content in our configuration management system. It
would seem very odd to map our web-related stuff to
/WLS6.0sp1/config/<mydomain>/applications and everything else to the
standard structure.
In 5.1, setting the weblogic.httpd.documentRoot property does this.
However, I understand that WLS 6.0 uses a classloader for the
/applications directory. Can I use a system to property to notify WLS
6.0 to look at a different directory instead?
There seems to be error in docs related to this.
http://e-docs.bea.com/wls/docs60///////config_xml/properties.html
Says DocumentRoot entry can be set in config.xml.
But the entry is not found in DTD (config.dtd)
http://e-docs.bea.com/wls/docs60///////config_xml/config.html
Thanks.
--Bahar
Bahar,
The docs you pointed out is absolutely right. There is no error in the
document.
If you want to change the document root make the following
modifications in your config.xml as per the example here:
<Application Deployed="true" Name="DefaultWebApp_myserver"
Path="d:\docmain">
<WebAppComponent Name="DefaultWebApp_myserver"
Targets="myserver" URI="www"/>
</Application>
Where Your document root is : d:\docmain\www
Make sure that you have web.xml under
d:\docmain\www\WEB-INF
Kumar.
Bahar Limaye wrote:
> Hello,
>
> I want to change the deployment folder of
> config/<domainName>/applications
> to another folder in our source tree. Is this possible? The reason we
> want to do this is because our root tree contains the java source code
> and web-related content in our configuration management system. It
> would seem very odd to map our web-related stuff to
> /WLS6.0sp1/config/<mydomain>/applications and everything else to the
> standard structure.
>
> In 5.1, setting the weblogic.httpd.documentRoot property does this.
> However, I understand that WLS 6.0 uses a classloader for the
> /applications directory. Can I use a system to property to notify WLS
> 6.0 to look at a different directory instead?
>
> There seems to be error in docs related to this.
> http://e-docs.bea.com/wls/docs60///////config_xml/properties.html
> Says DocumentRoot entry can be set in config.xml.
> But the entry is not found in DTD (config.dtd)
> http://e-docs.bea.com/wls/docs60///////config_xml/config.html
>
> Thanks.
>
> --Bahar
-
How to map directory not under "document root" directory?
In Weblogic (5.1.0), how do you map one URL "directory" to a filesystem
directory that is not a subdirectory of the regular document root
directory?
This is, I want some URL "http://xxx.com/some/subset" to map to local
directory "/x/y" instead of mapping to a subdirectory "some/subset"
under the document root directory (the directory to which
"http://xxx.com/" maps).
How do you do this in Weblogic (using Weblogic as the HTTP server,
not using it plugged in to some other HTTP server)?
(In Apache, this would be the "Alias" directive.)
Thanks,
Daniel
Daniel Barclay
Digital Focus
[email protected][REPLY TO NEWSGROUP ------- This followup was posted to
weblogic.support.install and a copy was sent to the cited author.]
Default registration for the file servlet is:
weblogic.httpd.register.file=weblogic.servlet.FileServlet
weblogic.httpd.initArgs.file=defaultFilename=index.html
So do this:
weblogic.httpd.register.some/subset=weblogic.servlet.FileServlet
weblogic.httpd.initArgs.some/subset=defaultFilename=index.html,docHome=d:
/foo/bar/baz
mbg
In article <[email protected]>,
[email protected] says...
>
In Weblogic (5.1.0), how do you map one URL "directory" to a filesystem
directory that is not a subdirectory of the regular document root
directory?
This is, I want some URL "http://xxx.com/some/subset" to map to local
directory "/x/y" instead of mapping to a subdirectory "some/subset"
under the document root directory (the directory to which
"http://xxx.com/" maps).
How do you do this in Weblogic (using Weblogic as the HTTP server,
not using it plugged in to some other HTTP server)?
(In Apache, this would be the "Alias" directive.)
Thanks,
Daniel
==================================================
NewsGroup Rant
==================================================
Rant 1.
The less info you provide about your problem means
the less we can help you. Try to look at the
problem from an external perspective and provide
all the data necessary to put your problem in
perspective. -
Can I have more document roots?
Hello,
I am new to Web Logic. I have been using JRun for a while. Now I have to
port these applications to Web Logic server. In Allaire JRun document roots
can be specified in local.properties file (see the following example). How
to modify weblogic.properties file to run both the applications
simultaneously. See the attachment for more info about local.properties.
JRUN local.properties
Store1.rootdir=H:\\Webroot\\Store1
Store1.class={webapp.service-class}
webapp.mapping./store1=store1
Store2.rootdir=H:\\Webroot\\Store2
Store2.class={webapp.service-class}
webapp.mapping./store1=store2
H:\Webroot
- \Store1
- HTML folder
- Images folder
- WEB-INF
- classes
- \Store2
- HTML folder
- Images folder
- WEB-INF
-classes
Thanks
Meher
[local.properties]See doc about deploying a webapp in .war format.
Basically, each .war web application has its own document root,
specified by the
weblogic.httpd.webApp.<webapp-docroot>=<fullpathtowarfile> in the
weblogic.properties file.
John Salvo
SrinivasMeher Kandukuri wrote:
>
Hello,
I am new to Web Logic. I have been using JRun for a while. Now I have to
port these applications to Web Logic server. In Allaire JRun document roots
can be specified in local.properties file (see the following example). How
to modify weblogic.properties file to run both the applications
simultaneously. See the attachment for more info about local.properties.
JRUN local.properties
Store1.rootdir=H:\\Webroot\\Store1
Store1.class={webapp.service-class}
webapp.mapping./store1=store1
Store2.rootdir=H:\\Webroot\\Store2
Store2.class={webapp.service-class}
webapp.mapping./store1=store2
H:\Webroot
- \Store1
- HTML folder
- Images folder
- WEB-INF
- classes
- \Store2
- HTML folder
- Images folder
- WEB-INF
-classes
Thanks
Meher
Name: local.properties
local.properties Type: unspecified type (application/octet-stream)
Encoding: x-uuencode -
How do I change the document root and servlets root in WL 6.0
Please reply fast.
Suresh WilsonIn 5.1, you specify the "name" via the property:
weblogic.httpd.webApp.NAME=<path_to_war>
... where NAME is the path in the URL where you want your webapp to be
access from
Say:
weblogic.httpd.webApp.sampleapp=/home/weblogic/product/wls/5.1/sample.war
... the application's root is http://hostname/sampleapp
In 6.0, it seems to be the name of the war file itself. I deployed the
war twice, one using sampleapp.war and the other using sampleapp2.war,
and the webapps' root are http://hostname/sampleapp and
http://hostname/sampleapp2, respectively.
Is this rigth? Well, that is at least what I observed. The admin docs
regarding deploying was not clear on what is defined as "name" or where
it gets it from ... until I tried the above.
For a while, I thought that the application's root are defined by the
servlet spec.
John
Gene Chuang wrote:
>
Servlets in 6.0 must be deployed in .war; "document root" setting is irrelevant in 6.0.
Gene
"suresh wilson" <[email protected]> wrote in message news:[email protected]..
Please reply fast.
Suresh Wilson
Homepage: http://homepages.tig.com.au/~jmsalvo/ -
StreamingSender raises missing document root
I have a jax-rpc web service that I generated using jwsdp 1.2 tools. It all works fine except when I try to throw a user defined Exception on the server side, I get the following exception on the client:
ava.rmi.RemoteException: Runtime exception; nested exception is:
XML parsing error: com.sun.xml.rpc.sp.ParseException:1: Document root element is missing
at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:258)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:240)
at com.wstest.webrpc.ObjectPropertiesIF_Stub.createObject(ObjectPropertiesIF_Stub.java:69)
at com.wstest.webrpc.clients.MyClientProxy.createObject(MyClientProxy.java:128)
When I inspect the SOAP response I see the following:
HTTP/1.1 500 Internal Server Error
Date: Wed, 04 May 2005 17:12:52 GMT
Server: Apache/2.0.52 (Win32) mod_jk2/2.0.4
SOAPAction: ""
Content-Type: text/xml; charset="utf-8"
Connection: close
Transfer-Encoding: chunked
371
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://com.test/types/MyObjectProperties" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"><env:Body><env:Fault xsi:type="env:Fault"><faultcode>env:Server</faultcode><faultstring>com.wstest.webrpc.MyServerException</faultstring><detail><ans1:MyServerException xmlns:ans1="http://com.test/wsdl/MyObjectProperties" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:MyServerException"><code xsi:type="xsd:long">2</code><message xsi:type="xsd:string">This is a dummy error</message></ans1:MyServerException></detail></env:Fault></env:Body></env:Envelope>
0
which appears to my untrained eyes to be a reasonably legitimate fault response. Can anyone tell me why my client is choking on this instead of raising the appropriate exception?
Thanks!
JimI have a jax-rpc web service that I generated using jwsdp 1.2 tools. It all works fine except when I try to throw a user defined Exception on the server side, I get the following exception on the client:
ava.rmi.RemoteException: Runtime exception; nested exception is:
XML parsing error: com.sun.xml.rpc.sp.ParseException:1: Document root element is missing
at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:258)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:240)
at com.wstest.webrpc.ObjectPropertiesIF_Stub.createObject(ObjectPropertiesIF_Stub.java:69)
at com.wstest.webrpc.clients.MyClientProxy.createObject(MyClientProxy.java:128)
When I inspect the SOAP response I see the following:
HTTP/1.1 500 Internal Server Error
Date: Wed, 04 May 2005 17:12:52 GMT
Server: Apache/2.0.52 (Win32) mod_jk2/2.0.4
SOAPAction: ""
Content-Type: text/xml; charset="utf-8"
Connection: close
Transfer-Encoding: chunked
371
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://com.test/types/MyObjectProperties" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"><env:Body><env:Fault xsi:type="env:Fault"><faultcode>env:Server</faultcode><faultstring>com.wstest.webrpc.MyServerException</faultstring><detail><ans1:MyServerException xmlns:ans1="http://com.test/wsdl/MyObjectProperties" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns0:MyServerException"><code xsi:type="xsd:long">2</code><message xsi:type="xsd:string">This is a dummy error</message></ans1:MyServerException></detail></env:Fault></env:Body></env:Envelope>
0
which appears to my untrained eyes to be a reasonably legitimate fault response. Can anyone tell me why my client is choking on this instead of raising the appropriate exception?
Thanks!
Jim -
Problems while accessing images outside the web document-root folder
Our application runs on Oracle application server on Linux. Facing problems while accessing images outside the web document-root folder. This works with changes in global-web-application.xml by including the <virtual-directory> tag. The same change does not work when done on Linux machine. It is unable to find the image. Please help in resolving this issue.
</locale-encoding-mapping>
</locale-encoding-mapping-list>
</web-app>
<virtual-directory virtual-path="/img" real-path="/home/eposuat/" />
</orion-web-app>
Code in the jsp:
<img width=700 height=700 src="/img/3.tif"></img>
<img width=700 height=700 src="/img/WB.gif"></img>This is one of the least satisfactory aspects of site management in Dreamweaver, and several developers, including myself, have been pressuring the Dreamweaver team for some years to improve this. Who knows? They might eventually take notice.
The only way to do this at the moment is to create two site definitions, one nested inside the other. Set up the site definition normally based on htdocs as your site root. Then create a new site definition based on site. Dreamweaver will nag you that it can cause problems, but it won't actually stop you from doing it. The only potential problem is with site synchronization.
The problem with using site as the only basis for your site definition is that Dreamweaver automatically puts things like the Connections, Scripts, and other folders in the site root. So, everything ends up at the wrong level of the site hierarchy. Quite frankly, the whole thing is a bit of a pain. Dynamic site development was added to Dreamweaver only in version 6 (Dreamweaver MX), and no one had really thought through the need to store files outside the site root. -
WL 8.1: Configuring a document root for multiple web applcations in a domain
Subject: Application - document root
I am using the Apache web server with the BEA proxy plug-in. All requests to the
apache server are proxied to WebLogic.
http://localhost/wip-gl/xxx.jsp?param1...
http://localhost/wip-am/xxx.jsp?param1...
http://localhost/stg-gl/xxx.jsp?param1...
etc
For weblogic I have a domain where I have deployed 6 web applications. Each application
represents a web site.
.../wip-gl
.../wip-am
.../stg-gl
etc
But when processing jsp's it appears that the document root (web root) is not
defined correctly.
For each application how do I define the document root?
Thanks for the help.Distributed sessions has nothing to do with different web applications. The concept is about distributing load for the same application between several appserver instances running on the same box(different jvm) or on some other box in the network.
What you used with iAS 6.5 is not available in 8.1 because sharing sessions between web apps is forbidden by the servlet spec. You should consider repackaging your apps. into a single web app. or using other way of signing/verifying user identity(check Sun Access Manager for example).
Have a look at this thread as well: http://swforum.sun.com/jive/thread.jspa?threadID=100931 -
I got an application running on Sun ONE Web Server 6.1SP5, during the application start, I got the following message. The application can run without any problem. I would like to know if there is any solution to avoid the PARSE error? Thanks a lot.
[01/Aug/2006:11:42:09] info (21921): CORE1116: Sun ONE Web Server 6.1SP5 B08/18/2005 02:17
[01/Aug/2006:11:42:09] info (21923): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun Microsystems Inc.]
[01/Aug/2006:11:42:09] info (21923): WEB0100: Loading web module in virtual server [https-sunfire] at [myapp]
[01/Aug/2006:11:42:09] info (21923): WEB0100: Loading web module in virtual server [https-sunfire] at [search]
[01/Aug/2006:11:42:13] info (21923): CORE3282: stdout: PARSE error at line 6 column 19
[01/Aug/2006:11:42:13] info (21923): CORE3282: stdout: org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".
[01/Aug/2006:11:42:13] info (21923): WEB2798: [myapp] ServletContext.log(): Loading Spring root WebApplicationContext
[01/Aug/2006:11:42:18] info (21923): WEB2798: [myapp] ServletContext.log(): Loading WebApplicationContext for Spring FrameworkServlet 'action'
[01/Aug/2006:11:42:18] info (21923): HTTP3072: [LS ls1] http://sunfire:9999 ready to accept requests
[01/Aug/2006:11:42:18] info (21923): CORE3274: successful server startupThat doesn't say much. Which is this xml file? and what have you given in the <!DOCTYPE > tag? Probably, that is the mistake...
-
Hello
I want Tomcat to use another document root (where index.html typically resides in). I set
<Host name="localhost" debug="0" appBase="" docBase="d:\WWW" unpackWARs="true">
but I got error
MAPPING configuration error for request URI
Unfortunately, I can't track down the problem, even some articles in this newsgroup explain something like this.
I took care of capitalizing letters.
Thank you for your aid.Hi,
use:
<Host name="localhost" debug="0" appBase="d:\www" unpackWARs="true">
or:
<Context path="" docBase="d:\www" debug="0"/>
I think the first edit the default directory for all webapps. The second edit the root-doc only for the uri-path "", thats means for "http://localhost:8080" e.g.
Good Luck
Kuno -
Multiple document roots on one instance of weblogic server..
Hi,
Is it possible to configure multiple document roots for one weblogic server?
Here is my situation...
We have a sun box which is having 4 IP addresses. We would like to have a
document root for each IP address, but we want to run a SINGLE weblogic
server instance..
Any help is appriciated..
thxcheck this out for more info:
http://www.weblogic.com/docs51/admindocs/properties.html#multihoming
"Mauricio Del Moral" <[email protected]> wrote in message
news:3977759c$[email protected]..
Hi,!
I'm afraid not, but that would be great. -
When starting Sun One Application Server 7 I get the following error in the console:
SEVERE ( 5028): ContextConfig[ROOT] Parse error in application web.xml
org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".
What does this error mean and how do I fix?
My web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<display-name>My appliation</display-name>
<description>My appliation</description>
<context-param>
<param-name>log4j-file</param-name>
<param-value>WEB-INF/log4j.properties</param-value>
</context-param>
<listener>
<listener-class>
com.gh.web.listener.Listener
</listener-class>
</listener>
<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>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<jsp-config>
<taglib>
<taglib-uri>/tags/common</taglib-uri>
<taglib-location>/WEB-INF/tld/common.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>If running on Tomcat Server, then is start without errors.
I made a following change in web.xml and error is disappeared:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>
<web-app>
</web-app>The reason for the 'break' is because I attempting to deploy a web application following the 2.4 spec that Sun One Application Server 7 does not support or why?
Maybe you are looking for
-
How to Create a Table with Merge and partitions in HANA
Hi, What is the best way to create a Table with MERGE and PARTITION and UNLOAD PRIORITIES. Any body can you please give me some examples. Regards, Deva
-
Error in File IC Work Order Report_v3-3: Max processing time or Max records
Hello Friends, While running the Crystal report in Business Object Infoview, I am getting the below mentioned error when i am trying to go to the next page or trying to export all pages of report into PDF and any other format. I
-
hi, pleas suggest me how to relese in system status in QA32 screen presently it shows a "CRTD CHCR SPRO" and "CRTD CHCR" Regards Maashish
-
MuVo-TX-SE and Win98SE: driv
Hi, I'm planning to buy MuVo-TX-SE, and as I have Win98SE as OS, I need a driver. But I cannot find a driver for MuVo-TX-SE, only for MuVo-TX. At Creative's web page the Minimum System Requirements for MuVo-TX-SE is Win98SE. So can I use the driver o
-
I cant deploy servlet on websever(urgent)
Ses i am constantly getting this problem. First i have developed a applet in Jdeveloper1.1 but it was not worked .But as per our requirement it is necesaary for us to use Jdeveloper Please anyone can help me how to deploy the servlet after designing