Weblogic.xml
Hi
I am using WLS 8.1 sp4
The webapp is deployed in an exploded format.
weblogic.xml is under the folder WEB-INF.
When I display the descriptor using the console I don't see all the
entries that I see when I open the xml in notepad
For example I was using the option 'printNulls' as 'false'
I don't see this option when I click on the weblogic.xml link from the
console
Any thoughts?
Thanks
Kevin
Thanks for looking into it
It did not give any error and the application is working fine. I was
trying to remove the option printNull from the weblogic.xml
when I display the xml from the console nothing other than the
compileCommand is getting displayed
Note:and printNulls=false appears to be working fine.
Attached the xml
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
Application 6.0//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
1
</param-value>
</jsp-param>
<jsp-param>
<param-name>
verbose
</param-name>
<param-value>
true
</param-value>
</jsp-param>
<jsp-param>
<param-name>precompile</param-name>
<param-value>false</param-value>
</jsp-param>
<jsp-param>
<param-name>compileCommand</param-name>
<param-value>e:\bea\weblogic\8.1\jdk142_05\bin\javac</param-value>
</jsp-param>
<jsp-param>
<param-name>printNulls</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
Kevin Powe wrote:
Do you get any warnings or errors on deploying the application, Kumar?
Could you post your weblogic.xml or provide a link to it?
<br>
Kevin Powe
http://www.integral-techsolutions.com
Similar Messages
-
Creation of Virtual Directory in weblogic.xml (OBIEE11 Weblogic)
We are using OBIEE 11.1.1.6.4, we want to create a Virtual directory mapping in weblogic server so that we can place our static image files to access from the application URL.
To do this activity, we have performed following steps -
1) Navigated to C:\OBIEE11G\Oracle_BI1\bifoundation\jee
2) Open analytics.ear file
3) Existing code in weblogic.xml is: (if weblogic.xml is not present we need to create the file with below code)
<?xml version = '1.0' encoding = 'US-ASCII'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<session-descriptor>
<cookie-path>/analytics</cookie-path>
</session-descriptor>
</weblogic-web-app>
4) We have added virtual-directory-mapping tag; After adding virtual directory mapping tag, the code in weblogic.xml is
<?xml version = '1.0' encoding = 'US-ASCII'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<session-descriptor>
<cookie-path>/analytics</cookie-path>
</session-descriptor>
<virtual-directory-mapping>
<local-path>D:/virtualdirectory</local-path>
<url-pattern>/images/*</url-pattern>
<url-pattern>*.jpeg</url-pattern>
</virtual-directory-mapping>
</weblogic-web-app>
5) We have created a folder virtualdirectory under D: drive. And then created a folder images within folder virtualdirectory.
6) Then we have placed an image (lets say) test.jpeg within image folder.
7) Restarted all BI services,
8) Now when we try to access URL http://localhost:9704/analytics/images/test.gif. Now we are able to see the image, it’s working perfectly fine.
If we paste the above URL in browser it will automatically displays the image without any authentication. So our requirement is, on pasting the URL in browser first it should redirect to OBIEE homepage and when authentication is done then it should display the image.
Request you to please advise with your inputs.Why did you modify analytics.ear ?
Should'nt you make changes here : Middleware_Home>\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1
\analyticsRes\WEB_INF\web.xml
Follow this note : OBIEE 11g: How To Access Custom Files Through URL By Creating Virtual Directory In Weblogic Server? [ID 1408240.1]
And you should be able to deploy that virtual directory and access it after authentication.
HTH,
SVS -
prefer-web-inf-classes in weblogic.xml doesn't work
When I try to use <prefer-web-inf-classes>true</prefer-web-inf-classes> it works fine with default classloaders structure. But after I changed classloaders hierarhy by means of <classloader-structure> in weblogic-application.xml classes from web app are ignored and classes from outside web app are loaded.
Here is classloaders structure I use
<weblogic-application>
<classloader-structure>
<module-ref>
<module-uri>mywar.war</module-uri>
</module-ref>
<classloader-structure>
<module-ref>
<module-uri>myejb.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</weblogic-application>
Has anybody encountered this before?Hi, Rob
Does it work in WL9.2?
It seems I do it exactly as the explained at http://edocs.bea.com/wls/docs81/programming/classloading.html - and it fails :o(.
I try to run my app.ear with WL9.2 There are 2 components in it: webapp and mdb. The webapp/WEB-INF contains weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
Mdb is expected to run in the same mode, i.e. to prefer the webapp/WEB-INF/*.jar over the parent Weblogic classloader. To do so I add the weblogic-application.xml to the app.ear!/META-INF:
<weblogic-application>
<classloader-structure>
<module-ref>
<!-- reminder: this webapp contains
prefer-web-inf-classes -->
<module-uri>webapp</module-uri>
</module-ref>
<classloader-structure>
<module-ref>
<module-uri>mdb.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</weblogic-application>
Now, when classloader-structure specified, both webabb and mdb prefer the weblogic root loader as if prefer-web-inf-classes not defined at all. -
Several paths with the virtual-directory-mapping in weblogic.xml
Hello! I don´t know if this is well posted here. Sorry, and my english is aswful :(.
I´m trying to put several paths for jsp files in an application, similar to how the extendend document root works in websphere.
How can I get this on weblogic? With this lines I only managed to get the first but the second url-pattern doesn´t work.
<weblogic-web-app>
<virtual-directory-mapping>
<local-path>/path1/</local-path>
<url-pattern>*.jsp</url-pattern>
</virtual-directory-mapping>
<virtual-directory-mapping>
<local-path>/path2</local-path>
<url-pattern>/jsp/*.jsp</url-pattern>
</virtual-directory-mapping>
</weblogic-web-app>
My intention is make that the app could access to jsp´s files in path1 and in path2. Is this possible on weblogic?
Thanks in advanceI see. In my case, x == images, so if I reverse my directory
structure I could still get this to work for me. For instance:
<virtual-directory-mapping>
<local-path>C:\webapps\context\y</local-path>
<url-pattern>/images/*</url-pattern>
</virtual-directory-mapping>
/images/z.gif would map to C:\webapps\context\y\images\z.gif.
I'll have to weigh changing our directory structure vs. keeping the
servlet we have that rewrites the URL.
Thanks for your help.
Scott Steimle.
Rajesh Mirchandani <[email protected]> wrote in message news:<[email protected]>...
From the developer
Virtual directories just replace the doc root. The doc root in your case
is C:\webapps\context\x\y. The request uri is /images/Z.gif. So the whole
thing resolves to C:\webapps\context\x\y\images\Z.gif. Which is where the
image should be located.
We have cleared up the docs. Sorry for any inconvenience.
Scott Steimle wrote:
Hi. I noticed in WebLogic Platform 7.0 there is a entry for
WEB-INF/weblogic.xml that defines a virtual directory. Example:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
<weblogic-web-app>
<virtual-directory-mapping>
<local-path>C:\webapps\context\x\y</local-path>
<url-pattern>/images/*</url-pattern>
</virtual-directory-mapping>
</weblogic-web-app>
In this case I'm assuming that a request of the form
http:/host:7001/context/images/z.gif would map to the physical file
C:\webapps\context\x\y\z.gif. However I cannot get this to work. Is
my assumption about it's use incorrect? Is the syntax of
<local-path/> or <url-pattern/> wrong? Is there something you have to
do to get WebLogic to recognize the weblogin.xml file?
This is urgent. Please help.
Thanks.
Scott Steimle
Software Engineer
Convera -
Error parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Transform</title>
<link type="text/css" rel="stylesheet" href="css/CascadeMenu.css">
</head>
<body id="Bdy">
Hello all, I've run into a perplexing problem with a new and unexptected error on a web application that resides in a JDeveloper 11g environment. I just run it from JDeveloper on my laptop. No deployement other than to the default server at run time Integratedweblogicserver. I am doing an XML transform using XSLT and it has been working fine until I tried to use the page yesterday. I get the following error. javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:417) at jsp_servlet.__transform._jspService(__transform.java:109) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: javax.xml.transform.TransformerConfigurationException: XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). at oracle.xml.jaxp.JXSAXTransformerFactory.reportConfigException(JXSAXTransformerFactory.java:759) at oracle.xml.jaxp.JXSAXTransformerFactory.newTemplates(JXSAXTransformerFactory.java:371) at oracle.xml.jaxp.JXSAXTransformerFactory.newTransformer(JXSAXTransformerFactory.java:272) at weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209) at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:145) at jsp_servlet.__transform._jsp__tag2(__transform.java:223) at jsp_servlet.__transform._jspService(__transform.java:102) ... 25 more Caused by: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser at oracle.xml.jaxp.JXSAXTransformerFactory.newTemplates(JXSAXTransformerFactory.java:357) ... 30 more ------------------------------------------------ I changed no code or moved any XML or XSLT file. I do see an error in the log regarding a bad URL ----------------------------------------------- XML-22108: (Error) Invalid Source - URL format is incorrect. XML-22000: (Fatal Error) Error while parsing XSL file (weblogic.xml.jaxp.RegistryXMLReader cannot be cast to oracle.xml.parser.v2.SAXParser). <[ServletContext@10343785[app:QSBQAR module:QSBQAR-QSBQAR-context-root path:/QSBQAR-QSBQAR-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@699744[ GET /QSBQAR-QSBQAR-context-root/Transform.jsp?reqtype=1 HTTP/1.1 Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Accept-Language: en-us User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; . ------------------------------ Here is the XML ------------------------------ <?xml version="1.0" encoding="windows-1252" standalone="no"?>
ACME Bird Seed Co. Capture the Road Runner using a boulder, rope and bird seed. Quinn Brian 00 00 00 00 00 00 00 00 00 11 08 08 08 08 00 43 43 Hours have been approved. APPROVED Smart Jean 00 00 00 00 00 00 00 00 00 Hours approved. APPROVED --------------------------------------------------------------------------------------- Here is the XSL --------------------------------------------------------------------------------------- <?xml version="1.0" encoding="windows-1252"?>
<!-- Root template -->
<h2>Project Hours Worked</h2>
----------------------------------------------------------------------------------------- Here is the JSP with the transform ----------------------------------------------------------------------------------------
<table>
<tr>
<td>Week Ending Date:--</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<th>Client</th>
<td></td>
<th>Project</th>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Task</th>
<th>---</th>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
<th>---</th>
<th>Ttl</th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>---</td>
<td>---</td>
<td></td>
<td>---</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>---</td>
<td></td>
</tr>
<tr>
<td>Total Hours: </td>
<td></td>
<td></td>
</tr>
<%@ page contentType="text/html;charset=windows-1252"%><%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %></table>
<script type="text/javascript" src="scripts/CascadeMenu.js">
</script>
<% int bad = 1; %>
<div id="menuBar" class="menuBar">
<div id="Bar1" class="Bar">Home</div>
<div id="Bar3" class="Bar">Accounting</div>
<div id="Bar4" class="Bar">Help</div>
</div>
<div style="background:#84ffff; color:Aqua; "><br>
<br>
<p style="color:Orange; font-size:x-large; font-style:italic; font-weight:bold;
font-family:Arial, Helvetica, sans-serif; "><img src="images/logoqsq.jpg" style="border:1" height="120" width="120" alt="Q Squared">
</p>
</div>
<div>
<p style="color:Black; font-size:x-large; font-style:italic; font-weight:bold; font-family:Arial, Helvetica, sans-serif;"><img src="images/dilbert.gif" alt="Dilbert" height="100" width="100">
? ? Welcome to Q Squared-Brian Quinn Consulting - Manager Time Approval</p>
</div>
<div>
<table width="100%" class="table1">
<tr>
<td style="width:15%; border-width:medium; background-color:silver ">
<h3>Contractor Resources</h3>
<ul style="list-style-type:circle; ">
<li>Time Entry</li>
<li>Profile</li>
</ul>
<h3>Manager Resources</hLOL - I didn't think about the forum message area having trouble displaying my XML XSLT problem
It seemed to mix the code with the site XML.
Oh brother
The deal is this.
The XML XSLT transform was working and now it is not and I think it has something to do with
the HTTP links for either the Oracle core and/or XML TAGLIBs. Either that or the W3.org has
outdated XSLT http links.
Anyone know if changes have been made to any of these taglib links?
This in the JSP
<!--
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
<c:import url="./HoursWorked3.xsl" var="xslt" charEncoding="windows-1252"/>
<x:transform xml="${xmlHoursWorked}" xslt="${xslt}" />
-->
This in the XSL
<!--
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-->
And the other JSP having the same problem.
<!--
<%@ page contentType="text/html;charset=windows-1252"
import="java.util.List, qsbqar.XMLHandler, org.w3c.dom.NodeList,
javax.xml.transform.*, javax.xml.transform.stream.*,
org.w3c.dom.Node, oracle.xml.parser.v2.*, java.io.File,
java.io.FileReader " %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<xsl:param name="employeeID" value="2"/>
<%session.setAttribute("employee_ID", request.getParameter("consultantID")); %>
<c:import url="HoursWorked.xml" var="xmlHoursWorked" charEncoding="windows-1252"/>
<c:import url="./HoursWorked4.xsl" var="xslt" charEncoding="windows-1252"/>
<x:transform xml="${xmlHoursWorked}" xslt="${xslt}">
<x:param name="employeeID" value="${sessionScope.employee_ID }"/>
</x:transform>
-->
Edited by: B of Carbon on Dec 19, 2010 12:25 AM -
How to edit weblogic.xml in Jdeveloper web project
Hi, All,
I created a web application in Jdeveloper11.1.1.1 and deployed to weblogic server 10.3, I found there is weblogic.xml under WEB-INF folder in war file.
I try to add something in weblogic.xml, but the problem is I cannot find weblogic.xml in Jdeveloper.
How to edit weblogic.xml in Jdeveloper? Thanks in advanced.
Best Regards,
BillThe weblogic.xml file is generated at deploy time if it doesn't exist in your application. To create it specifically in your application at design time for editing, select the appropriate project then the New option, from the New Gallery select General -> Deployment Descriptors -> Weblogic Deployment Descriptor, and in the resulting dialog select the weblogic.xml file. It will be added to the project -> Web Content -> WEB-INF directory.
Cheers,
CM. -
Hello,
I am building JSP client for webservice. The client is deployed on tomcat 4.x.
This time fortunatelly clientgen swallowed WSDL and I got client code generated.
I added webserviceclient.jar to WEB-INF/lib. However I am getting java.lang.NoClassDefFoundError:
weblogic/xml/schema/binding/SequenceCodecBase Exception.
Indeed webserviceclient.jar has no weblogic/xml/schema/binding/SequenceCodecBase
class defined. Do I have bad webserviceclient.jar or am I doing something wrong?
Also I've found weblogic/xml/schema/binding/SequenceCodecBase in weblogic.jar
so I added it to my application. Now I am getting
java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:328)
at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:304)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
What am I doing wrong?
Thanks,
AlekseyIt looks like you have the JAXM suns RI registered. We do not
work with other JAXM impls. To set your MessageFactory to
use WLS jaxm impl do the following:
System.setProperty( "javax.xml.soap.MessageFactory",
"weblogic.webservice.core.soap.MessageFactoryImpl" );
before you invoke the web service method.
regards,
-manoj
"Aleksey" <[email protected]> wrote in message
news:3c9a43f7$[email protected]..
>
Hello,
I am building JSP client for webservice. The client is deployed on tomcat4.x.
This time fortunatelly clientgen swallowed WSDL and I got client codegenerated.
I added webserviceclient.jar to WEB-INF/lib. However I am gettingjava.lang.NoClassDefFoundError:
weblogic/xml/schema/binding/SequenceCodecBase Exception.
Indeed webserviceclient.jar has noweblogic/xml/schema/binding/SequenceCodecBase
class defined. Do I have bad webserviceclient.jar or am I doing somethingwrong?
>
Also I've found weblogic/xml/schema/binding/SequenceCodecBase inweblogic.jar
so I added it to my application. Now I am getting
java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
atweblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
atweblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
.java:328)
atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
.java:304)
atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
>
What am I doing wrong?
Thanks,
Aleksey -
The application was previously using classes in the weblogic.xml.om package, which no longer appears to exist in Weblogic 9.2
Were these classes (such as weblogic.xml.om.ElementEnumeration and weblogic.xml.om.Document) moved to another package with this weblogic9.2 release, is there an additonal jar that would provide this functionalityHi Praveen,
I tried this but still it is not working.
One more thing:
Say if I deploy application in exploded format(MyLibrary, MyWebApp) then it is working fine but when make these as .war files then it is not working.
Thanks for looking into this....
Regards,
Sharath. -
Deployment descriptor "weblogic.xml" is malformed. in managed server
Hi All,
Appreciate if anyone can help.
I have set up a cluster containing two nodes - one local and other
remote machine on weblogic 8.1.4
then i install my application this cluster setup its working fine.
for my requirement i upgrade the the weblogic version from 8.1.4 to
8.1.6 .
i upgrade through the smart update from the bea site . i upgraded both
the node.
i started the admin server.it started with no issue.
my problem comes when i start the my managed server on the cluster .it
gives me this exception.
<HTTP> <BEA-101296> <Unable to load the default compiler class
"com.sun.tools.javac.Main". Using the default javac compiler to compile
JSPs.>
i checked the classpath it has the same jdk that i used for 8.1.4
(jdk1.4.05 from sun.)
should i used new jdk that comes with the upgrade package of 8.1.6 like
(jdk1.4.11)
my class path having the weblogic jar also.
this is my class path.:
E:\bea\weblogic81\server\lib\weblogic.jar and other my application
jars.
complete exception it is shown like :
<Dec 19, 2006 12:44:58 PM GMT+05:30> <Warning> <HTTP> <BEA-101247>
<Application:
'E:\bea\user_projects\domains\wlupgdomain\XLApplications\WLNexaweb.ear',
Module: 'Nexaweb': Public ID references the old version of the Servlet
DTD. You must change the public ID in web.xml file to "-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN".>
<Dec 19, 2006 12:45:00 PM GMT+05:30> <Warning> <HTTP> <BEA-101248>
<[Application:
'E:\bea\user_projects\domains\wlupgdomain\XLApplications\WLXellerateFull.ea?br>Module: 'xlWebApp']: Deployment descriptor "weblogic.xml" is malformed.
Check against the DTD: org.xml.sax.SAXParseException: The content of
element type "weblogic-web-app" must match
"(description?,weblogic-version?,security-role-assignment*,run-as-role-assi?t*,reference-descriptor?,session-descriptor?,jsp-descriptor?,auth-filt?ontainer-descriptor?,charset-params?,virtual-directory-mapping*,url-ma?ap?,preprocessor*,preprocessor-mapping*,security-permission?,context-r?wl-dispatch-policy?,servlet-descriptor*,init-as*,destroy-as*)".
(line 26, column 20).>
Compiler class: 'com.sun.tools.javac.Main', not found
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.ja?6)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:498)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:793)
at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:708?>
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:496)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContain?va:3212)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1628)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
<Dec 19, 2006 12:45:00 PM GMT+05:30> <Warning> <EJB> <BEA-010202>
<Call-by-reference is not enabled for the EJB 'JMSBean'. The server
will have better performance if it is enabled. To enable
call-by-reference, set the enable-call-by-reference element to True in
the weblogic-ejb-jar.xml deployment descriptor for this EJB.>
<Dec 19, 2006 12:45:00 PM GMT+05:30> <Error> <Deployer> <BEA-149205>
<Failed to initialize the application Xellerate due to error
weblogic.management.ApplicationException: prepare failed for
xlBackOfficeBeans.jar
Module Name: xlBackOfficeBeans.jar, Error: Exception preparing module:
EJBModule(xlBackOfficeBeans.jar,status=NEW)
Unable to deploy EJB: xlBackOfficeBeans.jar from xlBackOfficeBeans.jar:
Compiler class: 'com.sun.tools.javac.Main', not found
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:498)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:793)
at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:708?>
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:496)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContain?va:3212)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1628)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
java.io.IOException: Compiler class: 'com.sun.tools.javac.Main', not
found
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.ja?1)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:498)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:793)
at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:708?>
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:496)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContain?va:3212)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1628)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
weblogic.management.ApplicationException: prepare failed for
xlBackOfficeBeans.jar
Module Name: xlBackOfficeBeans.jar, Error: Exception preparing module:
EJBModule(xlBackOfficeBeans.jar,status=NEW)
Unable to deploy EJB: xlBackOfficeBeans.jar from xlBackOfficeBeans.jar:
Compiler class: 'com.sun.tools.javac.Main', not found
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:498)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:793)
at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:708?>
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:496)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContain?va:3212)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1628)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
java.io.IOException: Compiler class: 'com.sun.tools.javac.Main', not
found
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.ja?1)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:498)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:793)
at
weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:708?>
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1431)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:496)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContain?va:3212)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1628)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
at
weblogic.j2ee.J2EEApplicationContainer.tryPrepareModules(J2EEApplicationCon?r.java:1658)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContai?ava:1584)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?3)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?6)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.jav?)
at
weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDep?.java:3058)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(Slave?yer.java:985)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:34?r>
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(Depl?tManagerServerLifeCycleImpl.java:229)
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)
><Dec 19, 2006 12:45:00 PM GMT+05:30> <Emergency> <Deployer>
<BEA-149229> <Server xlManagedServer_1 in cluster xlCluster is unable
to initialize due to failed deployments.>
<Dec 19, 2006 12:45:00 PM GMT+05:30> <Error> <Deployer> <BEA-149601>
<The deployment framework was unable to resume accepting requests.>
<Dec 19, 2006 12:45:00 PM GMT+05:30> <Emergency> <WebLogicServer>
<BEA-000342> <Unable to initialize the server: [Deployer:149601]The
deployment framework was unable to resume accepting
requests.[Deployer:149229]Server xlManagedServer_1 in cluster xlCluster
is unable to initialize due to failed deployments.>
hope the scope of the questions is not too broad. Kindly let me know
if you need more information.
Thanks a lot.ram ram <> wrote:
should i used new jdk that comes with the upgrade package of 8.1.6 like
(jdk1.4.11)
my class path having the weblogic jar also.
this is my class path.:
E:\bea\weblogic81\server\lib\weblogic.jar and other my application
jars.
Add tools.jar from your Java installation to the classpath.
Bart
Schelstraete Bart
http://www.schelstraete.org
http://www.mqseries.be -
WebLogic 9.2 MP1 - NoClassDefFoundError: weblogic/xml/domimpl/Saver
Hello,
I'm currently experiencing the following error in our production WebLogic environment. Curiously, the same WAR file deploys and works fine on our QA and STAGE servers. I must admit that my debugging knowledge of WebLogic is limited, but I have checked the obvious things (same version of WebLogic on all servers, same JAR files present on all, etc).
The error occurs when trying to generate a WSDL for a web service. The error is as follows:
####<Oct 16, 2008 6:46:59 PM BST> <Error> <HTTP> <lxxxxxxxxx.xxxxx.com> <xxxxxx_16621_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1224179219556> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@5ebaa3 - appName: 'AJPServices', name: 'AJPServices.war', context-path: '/AJP/AJPServices'] Root cause of ServletException.
java.lang.NoClassDefFoundError: weblogic/xml/domimpl/Saver
at weblogic.wsee.wsdl.WsdlDefinitions.write(WsdlDefinitions.java:581)
at weblogic.wsee.wsdl.WsdlDefinitions.write(WsdlDefinitions.java:569)
at weblogic.wsee.server.servlet.WsdlRequestProcessor.writeWsdl(WsdlRequestProcessor.java:146)
at weblogic.wsee.server.servlet.WsdlRequestProcessor.process(WsdlRequestProcessor.java:81)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:173)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Any suggestions would be most appreciated.
Thanks,
Sam
Edited by: user3634124 on 17-Oct-2008 04:41 (Fixed typos)Hey Sam,
Are you using the same kinda startup means ?
(NodeManager / Regular Scripts)
If you created your application the same way on all environments, you could try to use the script from QA to production (means you'll have to do it by night :) ) or in the other way : try your production startup script in the QA env.
Else, the good old-fashioned way : compare both config.xml with WinCompare or BeyondCompare or anything that does the job.
Make also sure you don't have any XML Registry declared and that your domain/lib directories look alike.
Hope this helps. -
Jsp-descriptor jsp-param jspCheckSeconds weblogic.xml?
For some reason I can't get weblogic to recompile my jsp's when I change
them. I am using Weblogic 6sp1 on NT4. I place my weblogic.xml in the
d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam\Web-inf
directory.
When I change one of the jsps I copy it into the
d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam directory
and expect weblgoic to notice it changed. I use ant to copy the jsp's and I
confirmed that it is actually copying correctly.
The jsp's use custom tags, but I tried a simple jsp, not using custom tags,
that doesn't get recompiled either. What could I be doing wrong? Has
anybody else run into this problem? Restarting weblogic on every change to
a jsp takes way too long.
please help.
-Scot
<-------here is my weblogic.xml--------------------------->
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEASystems, Inc.//DTD Web Application 6.0//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
<weblogic-web-app>
<description>
CAM - Customer Account Management
</description>
<session-descriptor>
<session-param>
<param-name>
TimeoutSecs
</param-name>
<param-value>
900
</param-value>
</session-param>
<session-param>
<param-name>
URLRewritingEnabled
</param-name>
<param-value>
false
</param-value>
</session-param>
</session-descriptor>
<jsp-descriptor>
<jsp-param>
<param-name>
pageCheckSeconds
</param-name>
<param-value>
1
</param-value>
</jsp-param>
<jsp-param>
<param-name>
verbose
</param-name>
<param-value>
true
</param-value>
</jsp-param>
<jsp-param>
<param-name>
keepgenerated
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
This is correct. I started my web-app under a new directory which was not
the default web-app originally and was not able to refresh the jsp's upon a
change to the jsp. Next I tried it as the default web-app and I was able to
refresh the jsp's as described in the weblogic.xml. Thank you for your
help.
Is this a known bug? Or should you not be able to use the weblogic.xml
properites in a web application that is not the default application?
"cheenle" <[email protected]> wrote in message
news:[email protected]...
>
> Are you start a new server for you own application?
> I met the same problem, but I found it only appear under a new server
>
> "Scot Hale" <[email protected]> wrote:
> >For some reason I can't get weblogic to recompile my jsp's when I change
> >them. I am using Weblogic 6sp1 on NT4. I place my weblogic.xml in the
> >d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam\Web-inf
> >directory.
> >
> >When I change one of the jsps I copy it into the
> >d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam
directory
> >and expect weblgoic to notice it changed. I use ant to copy the jsp's
> >and I
> >confirmed that it is actually copying correctly.
> >
> >The jsp's use custom tags, but I tried a simple jsp, not using custom
> >tags,
> >that doesn't get recompiled either. What could I be doing wrong? Has
> >anybody else run into this problem? Restarting weblogic on every change
> >to
> >a jsp takes way too long.
> >
> >please help.
> >
> >-Scot
> >
> >
> ><-------here is my weblogic.xml--------------------------->
> >
> ><?xml version="1.0" encoding="ISO-8859-1"?>
> >
> ><!DOCTYPE weblogic-web-app
> > PUBLIC "-//BEASystems, Inc.//DTD Web Application 6.0//EN"
> > "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
> >
> ><weblogic-web-app>
> > <description>
> > CAM - Customer Account Management
> > </description>
> >
> > <session-descriptor>
> > <session-param>
> > <param-name>
> > TimeoutSecs
> > </param-name>
> > <param-value>
> > 900
> > </param-value>
> > </session-param>
> > <session-param>
> > <param-name>
> > URLRewritingEnabled
> > </param-name>
> > <param-value>
> > false
> > </param-value>
> > </session-param>
> > </session-descriptor>
> >
> > <jsp-descriptor>
> > <jsp-param>
> > <param-name>
> > pageCheckSeconds
> > </param-name>
> > <param-value>
> > 1
> > </param-value>
> > </jsp-param>
> >
> > <jsp-param>
> > <param-name>
> > verbose
> > </param-name>
> > <param-value>
> > true
> > </param-value>
> > </jsp-param>
> >
> > <jsp-param>
> > <param-name>
> > keepgenerated
> > </param-name>
> > <param-value>
> > true
> > </param-value>
> > </jsp-param>
> > </jsp-descriptor>
> >
> ></weblogic-web-app>
> >
> >
>
-
Upgrading weblogic.xml from 6.1 to 8.1
I'am upgrading form weblogic 6. to weblogic 8.1.
I have a problem upgrading my weblogic.xml, i get this message when i validate
the xml file:
The content of element type "weblogic-web-app" must match "(description?,weblogic-version?,security-role-assignment*,run-as-role-assignment*,reference-descriptor?,session-descriptor?,jsp-descriptor?,auth-filter?,container-descriptor?,charset-params?,virtual-directory-mapping*,url-match-map?,preprocessor*,preprocessor-mapping*,security-permission?,context-root?,wl-dispatch-policy?,servlet-descriptor*,init-as*,destroy-as*)".
I have changed the header form:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.1//EN"
"http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd">
to:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application
8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
Is there any oder changes i must do to the weblogic.xml and what is the reason
for the error message ?
-Bjørnar-"Bjørnar" <[email protected]> wrote in message
news:[email protected]..
>
I'am upgrading form weblogic 6. to weblogic 8.1.
I have a problem upgrading my weblogic.xml, i get this message when ivalidate
the xml file:
The content of element type "weblogic-web-app" must match"(description?,weblogic-version?,security-role-assignment*,run-as-role-assig
nment*,reference-descriptor?,session-descriptor?,jsp-descriptor?,auth-filter
?,container-descriptor?,charset-params?,virtual-directory-mapping*,url-match
-map?,preprocessor*,preprocessor-mapping*,security-permission?,context-root?
,wl-dispatch-policy?,servlet-descriptor*,init-as*,destroy-as*)".
>
I have changed the header form:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD WebApplication 6.1//EN"
"http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd">
to:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD WebApplication
8.1//EN""http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
>
Is there any oder changes i must do to the weblogic.xml and what is thereason
for the error message ?
The upgrade has this note.
XML Parsing
Issue: The new XML parser rejects some XML documents that were accepted
by the previous parser.
The built-in XML parser for WebLogic Server 8.1 is based on the Apache
Xerces 1.4.4 parser, which is stricter than its predecessors.
Symptom: An EAR file's deployment descriptors are all correct, but the
EAR still cannot be loaded.
Solution: Verify that the other XML documents in your deployment comply
with Version 2 SAX and DOM interfaces. Track down and repair the XML. For
6.x see Apache Xerces XML Parser; for 7.1 see Apache Xerces XML Parser. For
an example, see Fix Encoding Error, where a minor encoding error is fixed.
I would compare the XML file to the new DTD and see if you can determine why
the parse is failing. You may also want to ask this in the
weblogic.developer.interest.servlet newsgroup. -
Namespaces in plan.xml - can't override weblogic.xml
So, we've tried every combination we can think of, but we can't seem to get a plan.xml that successfully overrides items in weblogic.xml. It seems to be an issue around namespaces:
<May 19, 2009 10:40:57 AM MDT> <Error> <J2EE> <BEA-160197> <Unable to load descriptor /nas/scart/domain_tmps/tcatshopDomain/servers/tcatshop1/tmp/_WL_user/MasterEar/v99i42/MasterWebPortal.war/WEB-INF/weblogic.xml of module MasterWebPortal.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
/nas/scart0/prod_ecom2/local/apps/apps92/tcatshop/THUNDER_01.09.06.004/nullplan.xml:0: problem: cvc-complex-type.2.4a: Expected elements 'description@http://www.bea.com/ns/weblogic/90 weblogic-version@http://www.bea.com/ns/weblogic/90 security-role-assignment@http://www.bea.com/ns/weblogic/90 run-as-role-assignment@http://www.bea.com/ns/weblogic/90 resource-description@http://www.bea.com/ns/weblogic/90 resource-env-description@http://www.bea.com/ns/weblogic/90 ejb-reference-description@http://www.bea.com/ns/weblogic/90 service-reference-description@http://www.bea.com/ns/weblogic/90 message-destination-descriptor@http://www.bea.com/ns/weblogic/90 session-descriptor@http://www.bea.com/ns/weblogic/90 jsp-descriptor@http://www.bea.com/ns/weblogic/90 auth-filter@http://www.bea.com/ns/weblogic/90 container-descriptor@http://www.bea.com/ns/weblogic/90 charset-params@http://www.bea.com/ns/weblogic/90 virtual-directory-mapping@http://www.bea.com/ns/weblogic/90 url-match-map@http://www.bea.com/ns/weblogic/90 security-permission@http://www.bea.com/ns/weblogic/90 context-root@http://www.bea.com/ns/weblogic/90 wl-dispatch-policy@http://www.bea.com/ns/weblogic/90 servlet-descriptor@http://www.bea.com/ns/weblogic/90 work-manager@http://www.bea.com/ns/weblogic/90 logging@http://www.bea.com/ns/weblogic/90 library-ref@http://www.bea.com/ns/weblogic/90' instead of *'session-descriptor@http://www.w3.org/2001/XMLSchema-instance' here in element weblogic-web-app@http://www.bea.com/ns/weblogic/90:<nullplan.xml>*
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:229)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:216)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
This is in WLP 9.2...
Plan:
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://www.bea.com/ns/weblogic/90">
<application-name>MasterEar.ear</application-name>
<variable-definition>
<variable>
<name>ThundercatCookieName</name>
<value>JSESSIONID_THUNDERCAT_PLAN_XML</value>
</variable>
<variable>
<name>ThundercatCookieDomain</name>
<value>.qwest.com</value>
</variable>
</variable-definition>
<module-override>
<module-name>MasterWebPortal.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>weblogic-web-app</root-element>
<uri>WEB-INF/weblogic.xml</uri>
<variable-assignment>
<name>ThundercatCookieName</name>
<xpath>/weblogic-web-app/session-descriptor/cookie-name</xpath>
</variable-assignment>
<variable-assignment>
<name>ThundercatCookieDomain</name>
<xpath>/weblogic-web-app/session-descriptor/cookie-domain</xpath>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>
We've tried a lot of combinations of namespaces and such to try and get it to work, and it always spits out the same error....
Thanks,
TimHi Folks -
Below is the weblogic.xml (or at least one version of it).
We're trying to override the session-descriptor cookie-name and cookie-domain ...
Thanks!!
Tim
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
<context-root>home</context-root>
<jsp-descriptor>
<page-check-seconds>-1</page-check-seconds>
<precompile>true</precompile>
<precompile-continue>true</precompile-continue>
<verbose>false</verbose>
<print-nulls>false</print-nulls>
</jsp-descriptor>
<session-descriptor>
<cookie-name>JSESSIONID_THUNDERCAT</cookie-name>
<cookie-domain>.tservicesq.com</cookie-domain>
</session-descriptor>
<library-ref>
<library-name>wlp-tools-visitor-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-commonui-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-services-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-framework-full-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>p13n-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>beehive-controls-1.0-war</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>weblogic-controls-1.0-war</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-wsrp-producer-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-lookandfeel-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-light-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-framework-common-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>wlp-framework-struts-1.2-web-lib</library-name>
<specification-version>9.2.0</specification-version>
<implementation-version>9.2.1</implementation-version>
</library-ref>
<library-ref>
<library-name>struts-1.2</library-name>
<specification-version>1.2</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>wls-commonslogging-bridge-war</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>jstl</library-name>
<specification-version>1.1</specification-version>
<implementation-version>1.1.2</implementation-version>
</library-ref>
<library-ref>
<library-name>beehive-netui-resources-1.0</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>beehive-netui-1.0</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.0</implementation-version>
</library-ref>
<library-ref>
<library-name>QwestCmsLibrary</library-name>
<specification-version>1.0</specification-version>
<implementation-version>1.3.4.2</implementation-version>
</library-ref>
<library-ref>
<library-name>SIWebPortal.war</library-name>
</library-ref>
<library-ref>
<library-name>StylesWebPortal.war</library-name>
<specification-version>2.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>ShopWebPortal.war</library-name>
<specification-version>1.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>ProfileWebPortal.war</library-name>
<specification-version>1.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>CommonsWebPortal.war</library-name>
<specification-version>1.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>EBillWebPortal.war</library-name>
<specification-version>1.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>EPayWebPortal.war</library-name>
<specification-version>1.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
<library-ref>
<library-name>AdminWebPortal.war</library-name>
<specification-version>2.0.0</specification-version>
<implementation-version>1.0.0</implementation-version>
</library-ref>
</weblogic-web-app> -
I am trying to use this in my weblogic.xml and this is the error that I get:
weblogic-web-app>
<description>Test Web App</description>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/TestDSRef</res-ref-name>
<jndi-name>TestJdbc</jndi-name>
</resource-description>
</reference-descriptor>
<security-permission>
<security-permission-spec>
// grant ability to read any file
grant codeBase "http://server/virtual_directory/-"
permission java.io.FilePermission "<<ALL FILES>>", "read";
</security-permission-spec>
</security-permission>
</weblogic-web-app>
Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
[Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
Any ideas on what I might be doing wrong? When I remove the security-permissions,
the application deploys fine.I am trying to use this in my weblogic.xml and this is the error that I get:
weblogic-web-app>
<description>Test Web App</description>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/TestDSRef</res-ref-name>
<jndi-name>TestJdbc</jndi-name>
</resource-description>
</reference-descriptor>
<security-permission>
<security-permission-spec>
// grant ability to read any file
grant codeBase "http://server/virtual_directory/-"
permission java.io.FilePermission "<<ALL FILES>>", "read";
</security-permission-spec>
</security-permission>
</weblogic-web-app>
Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
[Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
Any ideas on what I might be doing wrong? When I remove the security-permissions,
the application deploys fine. -
NullPointerException is weblogic xml parser
We are using weblogic server 8.1 SP4 on HP Tru64.
A NullPointerException is happening when parsing documents. I tried to find the source code however could not match the source version with the line numbers. Is this a problem in the message? Or a bug in the parser?
<?xml version="1.0" encoding="UTF-8"?>
<ns0:notificationOfApprovalResponse xmlns:ns0="http://www.auspost.com.au/elms/xml/notificationofapproval/response" elmsMailingStatementId="775507" pricingStatementNumber="0070922517">
<notificationOfApprovalStatus>
<code>S</code>
<extendedCode>233</extendedCode>
<description>ORDER_HEADER_IN has been processed successfully VBAKKOM </description>
</notificationOfApprovalStatus>
</ns0:notificationOfApprovalResponse>
java.lang.NullPointerException
at weblogic.apache.xerces.util.XMLAttributesImpl.getName(XMLAttributesImpl.java:261)
at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:428)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:727)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
at weblogic.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:957)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)
at com.bea.xbean.store.Root$SaxLoader.load(Root.java:776)
at com.bea.xbean.store.Root.loadXml(Root.java:1077)
at com.bea.xbean.store.Root.loadXml(Root.java:1069)
at com.bea.xbean.store.Root.loadXml(Root.java:1089)
at com.bea.xbean.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:241)
at au.com.auspost.elms.xml.notificationofapproval.response.NotificationOfApprovalResponseDocument$Factory.parse(Unknown Source)WLS 6.1 is not yet certifed with JDK 1.4.
Venki wrote:
Hi,
Does weblogic ships it's own XML parser.
We tried parsing an XML document using JDK1.4(default XML parser) it all worked
well, but after deploying in weblogic container, the document didn't parse correctly.
We are using Weblogic 6.1 sp2.
Our weblogic runs on JDK1.4 so the JVM is same it's only the different parser
i guess.
Any comments , help thanx !
Venki--
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
Weblogic.xml.schema.binding.DeserializationException
Hi all.
I am using WLS 8 and in my web application I have implemented a web service client. The client uses an API that I created with the clientgen executable providing a valid WSDL. That WSDL defines custom data types that are used during the communication to the web service server. Whenever I use one of those custom data types in my web service request everything works fine. But when I call a web service that responds with one of those custom data types I am getting the following exception:
Error occured while calling webservice! Error : web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure.
The weird thing is that weblogic somehow tries to refer to that custom data type with an IP address (e.g. 123.123.123.123) but in the WSDL all the URLs are defined with names (e.g. my.web-service.de) .
Has anyone experienced a similar problem and/or can help me with this issue?Hi all.
I am using WLS 8 and in my web application I have implemented a web service client. The client uses an API that I created with the clientgen executable providing a valid WSDL. That WSDL defines custom data types that are used during the communication to the web service server. Whenever I use one of those custom data types in my web service request everything works fine. But when I call a web service that responds with one of those custom data types I am getting the following exception:
Error occured while calling webservice! Error : web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure.
The weird thing is that weblogic somehow tries to refer to that custom data type with an IP address (e.g. 123.123.123.123) but in the WSDL all the URLs are defined with names (e.g. my.web-service.de) .
Has anyone experienced a similar problem and/or can help me with this issue?
Maybe you are looking for
-
My Mac's screen is blank white when starting up...Help!
This afternoon my web browser suddenly did not response. I had to shut down the computer by holding the power button. Then I restarted up my Mac and the screen became blank gray, and then a flashing question mark. Did some research, found a solution
-
Why JPA? What's the Point?
I'm creating a hobby application to learn new technologies. I have been struggling with the JPA portion for months now. What I would like to know is, what is waiting at the end of the tunnel? If I continue struggling with JPA and finally learn it, wh
-
I am not that computer literate. I want to know why i can't get my audible books onto my iTunes. I get an error message that says iTunes was inccorectly loaded and i should reload it. Not only do I not know how to do this but i don't think it need
-
Battery life seems too short on new macbook pro 15 with retina display
Wireless is set to off because the computer is connected by hardwire, bluetooth setting is off, and iCloud backup for various apps are checked (on). Battery seems to drain even when the computer is sleeping. Is this normal?
-
Merging cells in a row...
I'd like to be able to turn the first table into the second. I see that there is a cell merge, but I can't seem to figure out the syntax. Thanks in advance for your help.