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,
Tim
Hi 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>
Similar Messages
-
ClassCastException: weblogic.xml.jaxp.WebLogicTransformerFactory
I am running Weblogic 6.1 on a Solaris 7 machine.
I have added the following runtime properties in my startWebLogic.sh to handle
Weblogic 6.1
transformation bugs.
-Djavax.xml.parsers.DocumentBuilderFactory=weblogic.xml.jaxp.WebLogicDocumentBuilderFactory
-Djavax.xml.transform.TransformerFactory=weblogic.xml.jaxp.WebLogicTransformerFactory
-Djavax.xml.parsers.SAXParserFactory=weblogic.xml.jaxp.WebLogicSAXParserFactory
After adding these parameters, my servlet (which is loaded on startup and creates
a Transformer
Template during its init function for future XSL transformations) was working
fine.
Now, however, I need to create an XML Registry in order to perform entity resolution.
When I created an XML Registry and entered the above values in the Registry, my
servlet now
throws the following exception:
java.lang.ClassCastException: weblogic.xml.jaxp.WebLogicTransformerFactory
at weblogic.xml.jaxp.RegistrySAXTransformerFactory.<init>(RegistrySAXTransformerFactory.java:48)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:119)
at com.nokia.imessage.AlertServlet.loadStylesheets(AlertServlet.java:549)
at com.nokia.imessage.AlertServlet.init(AlertServlet.java:59)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
My XML Registry is the following:
<XMLRegistry
DocumentBuilderFactory="weblogic.xml.jaxp.WebLogicDocumentBuilderFactory"
Name="MyXMLRegistry"
SAXParserFactory="weblogic.xml.jaxp.WebLogicSAXParserFactory"
TransformerFactory="weblogic.xml.jaxp.WebLogicTransformerFactory"
WhenToCache="cache-on-reference">
<XMLEntitySpecRegistryEntry EntityURI="dtds/pap_1.0.dtd"
Name="XMLEntitySpecRegistryEntry-1000329224935"
PublicId="-//WAPFORUM//DTD PAP 1.0//EN"
SystemId="http://www.wapforum.org/DTD/pap_1.0.dtd" WhenToCache="cache-at-initialization"/>
</XMLRegistry>
Why do the runtime parameters work but the XML Registry (with the same information)
don't?
Am I doing something wrong or is there a solution/workaround for this problem?
Thank you!
SamanthaHello,
I have the answer, thanks for BEAs customer support, there is a bug from WL
6.1, and it should be fixed with sp2 (scheduled for the middle of December).
So here is the answer from BEA:
-----------------answer-from-Gareth Chapman--------------------
When I tried the code you send I did not receive the ClassCastException but
a ClassNotFoundException, I think the root problem could be the same though.
There looks to be two parts of a bug that's stopping this code from working
correctly:
(CR 055082)
To work around the ClassNotFoundException (hopefully in your case the
ClassCastException) add this line of code before calling the
XSLTProcessorFactory.getProcessor():
System.setProperty("javax.xml.transform.TransformerFactory",
"weblogic.apache.xalan.processor.TransformerFactoryImpl");
Secondly I received the error:
SystemId Unknown; Line 0; Column 0; SystemId Unknown; Line 0; Column 0;
javax.xml.transform.TransformerException: SAX Exception
Which looks to be part of the same bug, in order to fix this you will need
to:
Extract org/apache/xalan/res/XSLTInfo.properties from
$WL_HOME/lib/weblogic.jar change the path to
weblogic/apache/xalan/res/XSLTInfo.properties and then add it to
$WL_HOME/lib/weblogic.jar
Steps to do this:
WL_HOME is the directory where weblogic is installed....e.g.
e:\bea6.1\wlserver6.1
1) Make a backup copy of %WL_HOME%\lib\weblogic.jar
2) jar xvf %WL_HOME%\lib\weblogic.jar
org/apache/xalan/res/XSLTInfo.properties
3) move org weblogic
4) jar uvf %WL_HOME%\lib\weblogic.jar weblogic
-----------------answer-from-Gareth Chapman--------------------
My case the path of XSLTInfo.properties was correct, so I did not have to
make any chances from it.
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
Hi Jouni,
Could you post full text of the exception here?It is (was) the full Exception!
Regards,
Slava Imeshev
"Jouni Koistinen" <[email protected]> wrote in message
news:[email protected]...
I have (allmost) same problem.
I get exception from XSLTProcessor.process() when running code above:
java.lang.ClassCastException:
weblogic.xml.jaxp.RegistrySAXTransformerFactory
My code works fine when I use WL 6.0 sp2, but WL 6.1 sp1 gives that
exception. If I let XSLTInputSource:s empty, WL 6.0 sp2 gives another
exception: weblogic.apache.xalan.xslt.XSLProcessorException: File "null"not
found, but WL 6.1 sp1 gives still the same exception, so prosessor noteven
try to found those files.
If I put xalan.jar (version 2.0.1) to my CLASSPATH and then run class
like
Samantha, then it works fine, but without xalan.jar, even if I run itlike
this, its not working:
java -Djavax.xml.parsers.DocumentBuilderFactory=weblogic.xml.jaxp.WebLogicDo
>>
>
cumentBuilderFactory -Djavax.xml.transform.TransformerFactory=weblogic.xml.j
>>
>
axp.WebLogicTransformerFactory -Djavax.xml.parsers.SAXParserFactory=weblogic
.xml.jaxp.WebLogicSAXParserFactory xalanTest
We are going to update our servers to 6.1sp1 from 6.0sp2, but I need toget
system working first, I have not tested this yet from servlet but I
think
its working just like from console.
What can I do with this?
xalanTest.java:
import weblogic.apache.xalan.xslt.XSLTProcessorFactory;
import weblogic.apache.xalan.xslt.XSLTInputSource;
import weblogic.apache.xalan.xslt.XSLTResultTarget;
import weblogic.apache.xalan.xslt.XSLTProcessor;
public class xalanTest {
public static void main(String[] args) {
try {
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
XSLTInputSource inXML = new XSLTInputSource("atom.xml");
XSLTInputSource inXSL = new XSLTInputSource("atom.xsl");
XSLTResultTarget out = new XSLTResultTarget(System.out);
System.out.println("Start parsing ...\n");
processor.process(inXML,inXSL,out);
System.out.println("\n... Parsing ok");
}catch (Exception e){
System.out.println(e);
atom.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="17-2.xsl"?>
<PERIODIC_TABLE>
<ATOM STATE="GAS">
<NAME>Hydrogen</NAME>
<SYMBOL>H</SYMBOL>
</ATOM>
</PERIODIC_TABLE>
atom.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="PERIODIC_TABLE">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="ATOM">
<P>
<xsl:apply-templates/>
</P>
</xsl:template>
</xsl:stylesheet>
Thanks
-Jouni Koistinen- -
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. -
Overriding web.xml using Plan.xml
Hi,
I want to override certain values (MAX_ROW_FETCH_SIZE) in web.xml using Plan.xml for a servlet deployed on weblogic server.
My web.xml looks like this.
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>trial</servlet-name>
<servlet-class>oracle.apps.cmi.sv.fwk.webui.trial</servlet-class>
<init-param>
<param-name>MAX_ROW_FETCH_SIZE</param-name>
<param-value>50</param-value>
</init-param>
<init-param>
<param-name>JDBC_MAX_FETCH_SIZE</param-name>
<param-value>20</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>trial</servlet-name>
<url-pattern>/trial</url-pattern>
</servlet-mapping>
</web-app>
My Plan.xml looks like this
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
<application-name>SPUF</application-name>
<variable-definition>
<variable>
<name>SessionDescriptor_timeoutSecs_13708393894780</name>
<value>3602</value>
</variable>
<variable>
<name>MAX_ROW_FETCH_SIZE</name>
<value>3</value>
</variable>
<variable>
<name>JDBC_MAX_FETCH_SIZE</name>
<value>2</value>
</variable>
</variable-definition>
<module-override>
<module-name>SPUF.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>SessionDescriptor_timeoutSecs_13708393894780</name>
<xpath>/weblogic-web-app/session-descriptor/timeout-secs</xpath>
</variable-assignment>
</module-descriptor>
<module-descriptor external="false">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>MAX_ROW_FETCH_SIZE</name>
<xpath>/web-app/servlet/init-param/[param-name="MAX_ROW_FETCH_SIZE"]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
<variable-assignment>
<name>JDBC_MAX_FETCH_SIZE</name>
<xpath>/web-app/servlet/init-param/[param-name="JDBC_MAX_FETCH_SIZE"]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
</module-descriptor>
<module-descriptor external="true">
<root-element>wldf-resource</root-element>
<uri>META-INF/weblogic-diagnostics.xml</uri>
</module-descriptor>
</module-override>
<config-root>/home/oracle/ebssdk2</config-root>
</deployment-plan>
I can see new value reflected for "Session TimeOut" for service configuration.
However when I use service to query certain data while considering "MAX_ROW_FETCH_SIZE" parameter, It is still querying 50 rows (Value in web.xml) at a time instead of 3 (As defined in Plan.xml)
I am using servlet init method to get init parameters in my java file.
Can someone help me to overcome from this issue or have any suggestion?You could use Apache Ant and create 2 separate WAR files , one for development and one for production.
Normally I don't create a WAR file for the development environment. WAR file is made only for production.
This is how my Ant task runs currently.
1) For the development environment the ant task runs only to compile Java classes and nothing else, web.xml is that for development environment.
2) When the app is ready for production , I run Ant to copy all files from my dev folder to a temporary build folder - during this copy I filter out the .java files (since there's no longer a need for them in production) only class files are moved.
3) Then I treat the above temporary folder as the source folder, and run the Jasper pre-compiler which significantly alters the web.xml file .
But the good part is that my original development web.xml stays unaltered since it is in it's own folder.
4) Then finally I run a WAR task on the processed contents of the temporary build folder which contains the modified web.xml
This way each environment has it's own web.xml . -
Can i override error duing event planning
In our case, retired professor can give lecture for certain time and it caused error while event planning.
can i override this PIQST00 845 error.
i know, in order to override message i have to link my rule to academic or non academic event but it is not any of them.
regards,
jin dalJindal,
There is a BAdi that can be implemented to allow inactive employees to be used in event planning. Look at OSS Note 460047. This might solve your problem. However, I believe this is a PD-wide implementation, and not specific to event planning only, so be careful.
Alternatively, you could just set up these retired professors as External Persons.
Michael -
resource-env-description can't be set in weblogic.xml
hi guys , i've been troubled with this configuration problem. i am trying a very simple example to send messages from a servlet to a weblogic queue, but i cant configure the weblogic.xml properly. i've been reading a lot of information but i cant find it.:
this is my web.xml
<resource-ref>
<res-ref-name>jms/ConnectionFactory1</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>jms/colaIN</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>jms/colaOUT</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
this work fine, but when i try to create the weblogic.xml , it doesn;t work:
<weblogic-web-app>
<reference-descriptor>
<resource-description>
<res-ref-name>jms/ConnectionFactory1</res-ref-name>
<jndi-name>weblogic.jms.ConnectionFactory</jndi-name>
</resource-description>
</reference-descriptor>
<resource-env-description>
<res-ref-name>jms/colaIN</res-ref-name>
<jndi-name>weblogic.jms.Queue</jndi-name>
</resource-env-description>
</weblogic-web-app>
what am i doing wrong? . i try to set resource-env-description in weblogic-ejb-jar.xml but it didn't work either? some ideas?Is your workflow looking for publishing infrastructure to be turned on at site collection and site level?
Is this a 2013 WF? is WF management service connected?
Stacy Simpkins | MCSE SharePoint | www.sharepointpapa.com -
How can I to use XML Catalog for OSM 7.0.3?
I have a xquery that execute a business rules in view.When I put it inside Data Instance Behavior, tab Data, inline, and
XQUERY the deploy in OSM doesn't work because it is a large xquery, more than 4000 characters.
So, I saw in OSM 7.0.3 doc (Developer’s Guide,Release 7.0.3 - Using XML Catalogs in OSM) that there is a possibility
of import resources files (xquery file in my case) in OSM Data Instance Behavior through XML Catalog.
I executed the follow steps
1) Add entry
*<rewriteURI uriStartString="http://br.com.ctbc" rewritePrefix="osmmodel:///XQuery/1.0.0/resources"/>*
to my catalog.xml, which is in path <My_Cartridge>/xmlCatalogs/core/catalog.xml
2) Set XML_CATALOG_SUPPORT variable in Design Studio with "enable"
3)Add *<oms-parameter>*
*<oms-parameter-name>oracle.communications.ordermanagement.util.net.CatalogUriResolver.DefaultXmlCatalogsUris</oms-parameter-name>*
*<oms-parameter-value>file://<My_domin>/XQuery/catalog.xqy</oms-parameter-value>*
*</oms-parameter>* to oms-config.xml, after unpack osm.ear
4) Created a Data Instance Behavior, inline and type XQuery whith source
declare namespace ctbcoms = "http://br.com.ctbc";
let $result := ctbcoms:retorna()
*return <DadosOrdem><Fim>{$result}</Fim></DadosOrdem>*
The XQuery that has the method retorna() has name: catalog.xqy. Code:
module namespace ctbcoms = "http://br.com.ctbc.xquery";
declare function ctbcoms:retorna()
let $retorno := 'teste'
return $retorno
So, when I deployed my cartridge I get the mensage:
Error on line 2
XPST0017: Cannot find a matching 0-argument function named {http://br.com.ctbc}retorna()
<11-Jan-2012 6:40:47,906 VET PM> <WARN> <impl.e> <ExecuteThread: '14' for queue:
'oms.xml'> <failed to compile xquery expression for xqueryInstanceType: xquery[
declare namespace ctbcoms = "http://br.com.ctbc";
let $result := ctbcoms:retorna()
return <DadosOrdem><Fim>{$result}</Fim></DadosOrdem>
]>
; Line#: 2; Column#: -1
net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function named {http://br.com.ctbc}retorna()
I am using Design Studio 3.1.3 with OSM 7.0.3.
Could have I a example these procedure? thank you !!!Two observations:
1) Your inline xquery expression need to use the "import" xquery module expression. see point a) in my example below.
2) the change in oms-config.xml is to support the case for overriding the cartridge xml catalog ( for example developer, qa tester, etc) so this step is not mandatory to get your cartridge working.
=============================
For example, In OSM Order To Activate Cartridges 703, the OrderLifeCycle, Amending State/Submit Amendment Transition has the following inline xquery which delegates xquery implementation details to a PoinOfNoReturn.xqy xquery module
a) Inline Expression in Design Studio Entity
CommunicationsSalesOrderFulfillmentPIP\Orders\POLICY\CommunicationsSalesOrderLifeCyclePolicy
import module namespace pipponrfn = "http://xmlns.oracle.com/communications/ordermanagement/pip/ponr" at "http://xmlns.oracle.com/communications/ordermanagement/pip/ponr/PointOfNoReturn.xqy";
let $taskData := fn:root(.)/GetOrder.Response
let $checkPointOfNoReturn := pipponrfn:checkPointOfNoReturn($taskData)
if ($checkPointOfNoReturn ..........
b) xquery module
module namespace pipponrfn = "http://xmlns.oracle.com/communications/ordermanagement/pip/ponr";
declare function pipponrfn:checkPointOfNoReturn($taskData as element()) as xs:boolean { ....};
c) cartridge xml catalog
CommunicationsSalesOrderFulfillmentPIP\xmlCatalogs\core\catalog.xml
<rewriteURI uriStartString="http://xmlns.oracle.com/communications/ordermanagement/pip/ponr" rewritePrefix="osmmodel:///CommunicationsSalesOrderFulfillmentPIP/1.0.0/resources"/>
=======================
Optinally if you have OSM 703.3 path you can use <oms-parameter><oms-parameter-name> in oms-config.xml if you need to OVERRIDE the cartridge xml catalog.
d) osm-config.xml
<oms-parameter>
<oms-parameter-name>oracle.communications.ordermanagement.util.net.CatalogUriResolver.DefaultXmlCatalogsUris</oms-parameter-name>
<oms-parameter-value>file:///<My_test_folder>/XQuery/catalog.xqy</oms-parameter-value>
</oms-parameter>
e) your developer xml catalog overrideing the cartridge catalog:
your_full_path_to_xml_catalog.xml
<rewriteURI uriStartString="http://xmlns.oracle.com/communications/ordermanagement/pip/ponr" rewritePrefix="file:///d:/your_full_path_to_test_folder"/> -
Location of weblogic.xml
I am very new to App server and weblogic too.
I have created the new domain inside the server and I have to make some entires in weblogic.xml
Where I can find this in my domain? Actually there are two weblogic.xml in my domain.
I don't know which one to use.
<doamin- root>\servers\AdminServer\tmp\_WL_internal\bea_wls9_async_response\8tpkys\war\WEB-INF
and
<doamin- root>\servers\AdminServer\tmp\_WL_internal\bea_wls_internal\9j4dqk\war\WEB-INF
The entries looks like
<resource-description>
<res-ref-name>jms/ConnectionFactory</res-ref-name>
<jndi-name>ConnectionFactory</jndi-name>
</resource-description>
<resource-env-description>
<res-env-ref-name>jms/SystemQueue</res-env-ref-name>
<jndi-name>SystemQueue</jndi-name>
</resource-env-description>
<resource-env-description>
<res-env-ref-name>jms/ApplicationQueue</res-env-ref-name>
<jndi-name>ApplicationQueue</jndi-name>
</resource-env-description>
<resource-env-description>
<res-env-ref-name>jms/DaemonQueue</res-env-ref-name>
<jndi-name>DaemonQueue</jndi-name>
</resource-env-description>Here you will find your *"weblogic.xml"* after deploying your App on WebLogic:
Syntax:
<DOMAIN_HOME>\servers\<Your-Server_Name>\tmp\_WL_user\<APPLICATION_NAME>\......
Example: C:\bea103\user_projects\domains\7001_Domain\servers\AdminServer\tmp\_WL_user\helloWorldEar\ckwaac\war\WEB-INF
But remember ...making any changes On DD contents...here in this Location...will not affect the Actual Application......You need to either use *"Plan.xml"* to make changes on DDs, Or else you need to ask your Developers tio make changes on the Application DDs....then you can deploy it again:
Plan.xml Demos:
http://jaysensharma.wordpress.com/2009/11/29/shared-library-with-plan-xml/
http://jaysensharma.wordpress.com/2010/03/24/changing-context-root-of-an-ear-app-using-plan-xml/
http://jaysensharma.wordpress.com/2010/03/29/adding-virtual-directory-using-plan-xml/ -
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 -
I'm using weblogic6.1 and want to take a look at weblogic 7.0. After
install weblogic7.0, I can't even start weblogic server - workshop,
examples, mydomain, petstore, etc. Can someone tell if I need to change
anything to make weblogic 7.0 runs? Thanks in advance.
Starting WebLogic Server...
<Mar 27, 2002 4:18:24 PM PST> <Notice> <Management> <140005> <Loading
configuration .\..\workshop\config.xml>
<Mar 27, 2002 4:18:53 PM PST> <Emergency> <WebLogicServer> <000342> <Unable
to initialize the server: Fatal initialization exception
Throwable: javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157)
at com.octetstring.vde.schema.InitSchema.init(InitSchema.java:50)
at
weblogic.systemdatastore.SystemDataStoreService.initialize(SystemDataStoreSe
rvice.java:198)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:688)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:575)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:271)
at weblogic.Server.main(Server.java:33)
>
The WebLogic Server did not start up properly.
Exception raised:
javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157)
at com.octetstring.vde.schema.InitSchema.init(InitSchema.java:50)
at
weblogic.systemdatastore.SystemDataStoreService.initialize(SystemDataStoreSe
rvice.java:198)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:688)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:575)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:271)
at weblogic.Server.main(Server.java:33)
Reason: Fatal initialization exceptionHi Vincent,
Something is getting confused between the 6.1 installation and the 7.0
installation. Can you set your WL_HOME environment variable through the
control panel? Another thing you could try is rename the directory where
your 6.1 is installed to and see what happens. I would expect that you
would stop seeing the exception and start seeing complaints about files &
directories not being found.
Thanks,
Mike Kaufman
Software Engineer
BEA Systems
"Vincent Le" <[email protected]> wrote in message
news:[email protected]...
Mike,
After install weblogic 7.0 without changing anything, I got below fatal
initialization exception when I started any domains - petstore, mydomain,
workshop. I also looked at
\<bea-root>\weblogic700b\server\bin\startweblogic.cmd and knew thatWL_HOME
points to weblogic 7.0. Though, I tried this at home with similar
environment and installation steps, it just works fine. What to cause the
exception? Thanks.
Vincent
"Mike Kaufman" <[email protected]> wrote in message
news:[email protected]...
Hi Vincent,
You will need to update your WL_HOME environment variable to be the
value
<bea-root>\weblogic700b\server (e.g., c:\bea\weblogic700b\server). Youwill
need to change WL_HOME back to the initial setting to run the wls 6.1.
Hope this helps,
Mike Kaufman
Software Engineer
BEA Systems
"Vincent Le" <[email protected]> wrote in message
news:[email protected]...
Yes, I use startWebLogic.cmd from \bea\weblogic700b\samples\workshop.Then
I also tried all other domains like petstore, mydomain using both
command
line and from workshop IDE. I get same error message as shown below.Note
that this computer also have weblogic6.1. If I use another seperate
computer that doesn't install weblogic before, then weblogic7.0 worksfine.
Vincent
"Mike Kaufman" <[email protected]> wrote in message
news:[email protected]...
Hi Vincent,
Are you trying to start weblogic from the commandline or through the
workshop ide? If from the command line, are you running the
startWebLogic.cmd script from \bea\weblogic700b\samples\workshopdirectory?
Thanks,
Mike
Mike Kaufman
Software Engineer
BEA Systems
"Vincent Le" <[email protected]> wrote in message
news:[email protected]...
I'm using weblogic6.1 and want to take a look at weblogic 7.0.
After
install weblogic7.0, I can't even start weblogic server -
workshop,
examples, mydomain, petstore, etc. Can someone tell if I need tochange
anything to make weblogic 7.0 runs? Thanks in advance.
Starting WebLogic Server...
<Mar 27, 2002 4:18:24 PM PST> <Notice> <Management> <140005>
<Loading
configuration .\..\workshop\config.xml>
<Mar 27, 2002 4:18:53 PM PST> <Emergency> <WebLogicServer>
<000342>
<Unable
to initialize the server: Fatal initialization exception
Throwable: javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157)
atcom.octetstring.vde.schema.InitSchema.init(InitSchema.java:50)
at
weblogic.systemdatastore.SystemDataStoreService.initialize(SystemDataStoreSe
rvice.java:198)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:688)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:575)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:271)
at weblogic.Server.main(Server.java:33)
>
The WebLogic Server did not start up properly.
Exception raised:
javax.xml.parsers.FactoryConfigurationError:
weblogic.xml.jaxp.RegistrySAXParserFactory
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157)
atcom.octetstring.vde.schema.InitSchema.init(InitSchema.java:50)
at
weblogic.systemdatastore.SystemDataStoreService.initialize(SystemDataStoreSe
rvice.java:198)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:688)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:575)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:271)
at weblogic.Server.main(Server.java:33)
Reason: Fatal initialization exception
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
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 -
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 -
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. -
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
-
Hi All, Having trouble when I upgrade to CF 10. We have Windows 2008 R2 64 Bit. In CF 9 I followed the instructions on how to use MS Access in CF on 64 Bit and all worked well. When I upgraded to CF 10 the Datasources would not work. I then tried to
-
Is it just my browser or is it a general thing.When I log in to check the usage monitor it is a full day behind,which rather defeats the object. For instance,this morning at 07:00am,I checked and it only gave me the usage till the end of the 20th Mar
-
HT4623 how do i restore back my ios on my iphone 3s
How do I restore back my iphone 3g ios. I try updating it and after it has finish updating it couldn't restore anymore. I need help with how to restore it.
-
hi I want to create a database using script.for some practice work on 11gR2. what to do if : [oracle@rac-1 ~]$ sqlplus '/ as sysdba' SQL*Plus: Release 11.2.0.1.0 Production on Sun Feb 14 22:06:19 2010 Copyright (c) 1982, 2009, Oracle. All rights res
-
Enable SQL Notification Services for BAM alerts , Biztalk 2010
Hi, Enable SQL Notification Services for BAM alerts is greyed out. I need to enable bam alerts in BizTalk 2010. Regards, Sharmishtha