Adding properties to XML Registry
I'm using WLS 6.0. I was wondering if it is possible
to add more properties into the XML Registry on the console.
The two properties currently there are: DocumentBuilderFactory
and SaxParserFactory.
I'd like to add the two system properties: javax.xml.transform.TransformerFactory
and org.xml.sax.driver.
I know I can set these from the command line using the
-D option but I'd much rather have the configuration
in the console.
Can I do this? If so, how?
Thanks!
Follow-up: Even though it lists 4 missing required properties in the error, when I went back and added only the Value property, the red flags went away....
Werry Interestink!
Similar Messages
-
"package java.xml.registry does not exist" error in NetBeans
Hi all
I'm using netbeans for developing webservices and and have to use JAXR. I have downloaded and installed jwsdp1.5.
When I view the source code for the JAXR sample java files that accompany the java EE tutorial in the NetBeans IDE Source Editor, I get the error : package java.xml.registry does not exist.
However, the release note for NetBeans says that it supports JAXR.
Also, when I compile and run the same files using DOS and the ant command, the files work.
Can someone please tell me what to do and how to work on JAXR clients in NetBeans because the Help files don't have any documentation on it nor does the NeBeans Field Guide?Do you have the jaxrpc-api.jar and jaxprc-ri.jar in your classpath?
They are in <wspack1.1 installation>/jaxrpc-1.0.2/lib
Regards,
Bhakti -
Using XML registry FactoryConfigurationError
Hi I have been trying to use the XML registry to parse an XML doc, using weblogic6.0.
I generated a custom parser from the dtd for the said xml doc.
I have attached the config window (reg1) for the registry, the SAX and Document
builder factories are the default.
I have also attached a portion of the code used to the JAXP to call the custom
generated parser class
When I try to run this I get the error specified below.
Running on a windows NT machine.
Any advice or pointers would be greatly appreciated.
Thanks,
Brian
<Apr 17, 2001 4:09:13 PM PDT> <Error> <HTTP> <[WebAppServletContext(5163124,subs
)] Servlet failed with Exception
javax.xml.parsers.FactoryConfigurationError: weblogicx.xml.objects.SubscriberPar
ser
at weblogic.xml.jaxp.RegistryParser.getCustomParser(RegistryParser.java:
247)
at weblogic.xml.jaxp.RegistryParser.getParser(RegistryParser.java:172)
at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:103)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:100)
at JAXPSubscriberParser.<init>(JAXPSubscriberParser.java:40)
at jsp_servlet._jaxpsubscriberparser._jspService(_jaxpsubscriberparser.j
ava:94)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
[subs.doc]Hi Rothrock, thanks for your reply...
Flash Version: 8, but the swf was published to be 7+
compatible.
The font is Meta Normal, it is embedded, and it does include
the character.
I am retrieving the xml by using this script in the html
page:
<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject("/templates/flash/index.swf" +
cKiller, "ad-flash", "710", "351", "7", "#FFFFFF");
fo.addVariable("xmlURL", "/flash_content/products.xml");
fo.write("ad");
// ]]>
</script>
I am creating the XML using Macromedia Homesite, with the
encoding declaration <?xml version="1.0" encoding="UTF-8" ?>
The XML is being read fine, only the special characters don't
show up... so it will cut off the word, or just have an empty space
where the character should be.
I am not sure how to specifiy Extended Latin charset in the
document... could you tell me how to do that?
Thanks -
Best way to handle .properties and .xml files
Hi,
I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
Is there any way we can make sure that these files can take changes without redeploying or starting the server?
Please clarify.
Thanks.Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.
-
Javax.xml.registry.JAXRException
Hi Friends,
Anybody has idea what does this mean:
javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
- with linked exception:
[javax.xml.soap.SOAPException: Cannot find MessageFactory implementation]
at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
at FindBusinessInfo.main(FindBusinessInfo.java:43)
Caused by: javax.xml.bind.JAXBException
- with linked exception:
[javax.xml.soap.SOAPException: Cannot find MessageFactory implementation]
at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
... 4 more
Caused by: javax.xml.soap.SOAPException: Cannot find MessageFactory implementation
at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:111)
... 5 more
Thanks!
VishalPlease describe in more detail at which circumstances this error appears? It's not completely clear from the stack trace.
-
Weblogic XML Registry and Entity Resolution
Hi,
I have configure Weblogic XML Registry as described in
http://e-docs.bea.com/wls/docs81/ConsoleHelp/xml.html. I have a directory
where my dtds reside (%WLDOMAIN%/xml/registries/MyRegistry/). I using JAXP
(the BEA recommended API which should automatically make use of the registry
for entity resolution). But somehow it seems that it is looking in the root
of the weblogic domain for the entities and not in the registry entities
directory.
A sample doctype in one of my doc looks like <!DOCTYPE substance_id PUBLIC
"-//CAS//DTD substance_id//EN" "substance_id.dtd">
The registry is configured as follows
Public ID System ID
Entity URI When To Cache Cache Timeout Interval
============================================================================
===============
-//CAS//ENTITY CMD Defined Entities//EN CMSents.dtd CMSents.dtd
defer-to-registry-setting -1
-//CAS//DTD control//EN control.dtd
control.dtd defer-to-registry-setting -1
-//CAS//DTD substance_id//EN substance_id.dtd
substance_id.dtd defer-to-registry-setting -1
Below is the exception from the server log. Any help would be greatly
appreaciated.
####<Dec 12, 2003 11:09:32 AM EST> <Debug> <org.cas.felix.util.XML>
<PC81227> <myserver> <ExecuteThread: '13' for queue:
'weblogic.kernel.Default'> <<anonymous>> <BEA1-0009897C74118C32D0F4>
<000000> <exception parsing document <?xml version="1.0"?>
<!DOCTYPE substance_id PUBLIC "-//CAS//DTD substance_id//EN"
"substance_id.dt ... (4869)
java.io.FileNotFoundException: D:\wls_domains\felix\substance_id.dtd (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
9)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:156)
at java.net.URL.openStream(URL.java:960)
at
weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.ja
va:836)
at
weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager
.java:796)
at
weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerIm
pl.java:275)
at
weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XM
LDocumentScannerImpl.java:841)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocumentFragmentScannerImpl.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.jav
a:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at org.cas.felix.util.XML.validate(XML.java:88)
at org.cas.felix.util.XML.validate(XML.java:69)
at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:94)
at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:139)
at
org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.processRecord(Unknown
Source)
at org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.onMessage(Unknown
Source)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:374)
at
weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:30
8)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:273)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2550)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2470)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)Hi Brian,
In your config.xml, in the <XMLRegistry> section, what does the
EntityURI look like? I believe it should be a relative entry, something
like %WLDOMAIN%/xml/registries/MyRegistry
If this is not the issue, I would encourage you to provide this
information with your config.xml to our outstanding support team to
resolve this issue.
Thanks,
Bruce
Brian Sam-Bodden wrote:
>
Hi,
I have configure Weblogic XML Registry as described in
http://e-docs.bea.com/wls/docs81/ConsoleHelp/xml.html. I have a directory
where my dtds reside (%WLDOMAIN%/xml/registries/MyRegistry/). I using JAXP
(the BEA recommended API which should automatically make use of the registry
for entity resolution). But somehow it seems that it is looking in the root
of the weblogic domain for the entities and not in the registry entities
directory.
A sample doctype in one of my doc looks like <!DOCTYPE substance_id PUBLIC
"-//CAS//DTD substance_id//EN" "substance_id.dtd">
The registry is configured as follows
Public ID System ID
Entity URI When To Cache Cache Timeout Interval
============================================================================
===============
-//CAS//ENTITY CMD Defined Entities//EN CMSents.dtd CMSents.dtd
defer-to-registry-setting -1
-//CAS//DTD control//EN control.dtd
control.dtd defer-to-registry-setting -1
-//CAS//DTD substance_id//EN substance_id.dtd
substance_id.dtd defer-to-registry-setting -1
Below is the exception from the server log. Any help would be greatly
appreaciated.
####<Dec 12, 2003 11:09:32 AM EST> <Debug> <org.cas.felix.util.XML>
<PC81227> <myserver> <ExecuteThread: '13' for queue:
'weblogic.kernel.Default'> <<anonymous>> <BEA1-0009897C74118C32D0F4>
<000000> <exception parsing document <?xml version="1.0"?>
<!DOCTYPE substance_id PUBLIC "-//CAS//DTD substance_id//EN"
"substance_id.dt ... (4869)
java.io.FileNotFoundException: D:\wls_domains\felix\substance_id.dtd (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
9)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:156)
at java.net.URL.openStream(URL.java:960)
at
weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.ja
va:836)
at
weblogic.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager
.java:796)
at
weblogic.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerIm
pl.java:275)
at
weblogic.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XM
LDocumentScannerImpl.java:841)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocumentFragmentScannerImpl.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.jav
a:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at org.cas.felix.util.XML.validate(XML.java:88)
at org.cas.felix.util.XML.validate(XML.java:69)
at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:94)
at org.cas.felix.si.master.MasterDocument.<init>(MasterDocument.java:139)
at
org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.processRecord(Unknown
Source)
at org.cas.felix.si.j2ee.processing.FelixSIProcessorBean.onMessage(Unknown
Source)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:374)
at
weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:30
8)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:273)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2550)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2470)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151) -
XML Registry problem in WLS 7.0
Hi,
I have created an XML Registry with SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
because i want to use the latest saxparser in my webapplication. But when i invoke
this line of code in my webapplication: -
SAXParserFactory spf = SAXParserFactory.newInstance();
i get weblogic.xml.jaxp.RegistrySAXParserFactory instead of org.apache.xerces.jaxp.SAXParserFactoryImpl
I also get system property javax.xml.parsers.SAXParserFactory=weblogic.xml.jaxp.RegistrySAXParserFactory
in the WLS log file.
I have tried putting xercesImpl.jar in the classpath before weblogic.jar. I also
tried changing the system property in startWLS.cmd also, ..but all in vain.
Can someone help me out in figuring out who is setting this system property to
WLS's default SAXfactory and how can i use my parser work in a webapplication?
Any help would be greatly appreciated!!
thanks -
ManojFirst thing, most of BEA's forums are terrible as people rarely reply. I noticed your post through google searching for the same fix. You have likely done the same things as me and have learned that your Oracle JDBC Client driver has some bugs interacting with certain version of Oracle Server. For us, this problem occured when we migrated from Solaris to AIX. We were able to fix this by downloading the latest version of ojdbc14.zip from oracle's site. You can either replace the current ojdbc14 file in the bea installation or make sure it is visible in the classpath for WLS before the old version.
Here is a good link which describes the problem, good luck.
http://www.dbtalk.net/comp-databases-oracle-server/java-sql-sqlexception-bigger-type-289015.html -
Friends,
I don't understand why this error is coming :-
javax.xml.registry.JAXRException: Failed to create instance of: null
at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:75)
at JAXRFindBusiness.doQuery(JAXRFindBusiness.java:46)
at JAXRFindBusiness.main(JAXRFindBusiness.java:28)
Caused by: java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:70)
... 2 more
Please help
Thanks
VishalPlease describe in more detail at which circumstances this error appears? It's not completely clear from the stack trace.
-
Multi-Valued Properties in XML Forms
Hello,
Can anyone tell me how to select multiple values for multi-valued properties in an XML Forms. It seems that the combo box only allows you to select one value.
Thanks,
Chris.Hi Chris,
nice to hear, that you're implementing my way of solving this multi value issue. And much nicer to hear, that it seems to work for you, too!
You can not write back your multi value properties from XML form. Thats for sure. You can think of:
1. Synchronize the value of your text field property with the value of the multi value propery whenever you store the document. This could be done using the event "property set".
<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0ab890-0201-0010-849d-98d70bd1d5f0">See: KM Events</a>
2. Overwrite the content of your multi value property at runtime, depending on the value of the single value property which holds the csv. Do this by using a Repository Filter. <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521">See: RepositoryFilter</a>
3. Forget about the multi value property and make the text field property indexable. This should work, too.
All three options should work!
HTH,
Carsten -
Configure a new XML Registry...
Hi all,
I made the configuration followed document instruction(http://edocs.bea.com/wlp/docs40/deploygd/refdmain.htm#1120486),
when I processed 10 step, that is :
On the portal XML registry page, click the Targets tab. Then move your server
from the Available to the Chosen list.
I got a exception message, that is ”Distributed Management”, please
find the attachment details:
BTW, I happened to the same problem in the different computer.
In addition, I have to edit config.xml file by hand,I haven’t met
other problem currently, I only want to clarify why the above abnormity appeared?
Wish can get your help, thanks in advance.
[att1.html]These queues are automatically created by OIM during installation. You can verify this by loggin into WLS admin console and going to
Home >Services > Messaging >JMS Modules >OIM_JMS_MODULE >Summary of Resources -
I'm still trying to run Xalan from the server side...
I tried to set up an XML Registry to use the org.apache.xerces.jaxp
classes. Though it is selected by the server on the XML Services tab,
and it is the only registry I have, I print out the factory and parser
classes that get created, and they are still
weblogic.xml.jaxp.RegistryBlahblahblah classes. The config.xml has the
right class names as shown on the console. Why aren't they used?
The other question I have is that since the Xerces classes that I want
to use have the same names as the ones included but are a different
version, how do I get the server to use the new classes and not the ones
bundled with WebLogic?
Any help would be greatly appreciated!
MichelleTry to define XML Registry Entry for your specific DTD.
WL compares PublicId, SystemId and RootElement between XML and DTD to find
specific Parser class name for your XML. In this case you must create
xml/registry directory in your domain directory and put there your DTD file.
If it still not working - write this code:
public SAXParser getParser() {
// Return the parser we already created (if any)
if(parser!=null) {
return (parser);
// Create and return a new parser
try {
SAXParserFactory factory= new
org.apache.xerces.jaxp.SAXParserFactoryImpl();
factory.setNamespaceAware(false);
factory.setValidating(false);
parser=factory.newSAXParser();
return (parser);
} catch(Exception e) {
System.out.println("getParser: "+e.getMessage());
return (null);
"Michelle Baxter" <[email protected]> wrote in message
news:[email protected]...
Ok, thanks. I suspected it might be wrapping it, but I wasn't sure how
to tell. I have not figured out how to get the server to run as a
JBuilder run configuration to debug it. It's looking for ".\config",
even though I've given it weblogic.system.home. So I can't look at the
stack trace, at least not that way.
Whatever parser it's getting, it's still the wrong one because I still
get the AbstractMethodError. I don't see how it's possible to have the
wrong version with xmlx.jar out of the way. But I have to keep looking.
Thanks for all your help.
Sandeep Shrivastava wrote:
The parser is weblogic.xml.jaxp.RegistrySAXParser, but it wraps the
org.apache.xerces.parser.SAXParser. the actual parse will be done by the
xerces parser ( whatever is configured in the xml registry )
look at the stack trace in one of your sax callback methods to verify
this.
>>
sandeep
Michelle Baxter wrote in message <[email protected]>...
If that is true, then why when I print out the class name of a parser
that I created do I get weblogic.xml.jaxp.RegistrySAXParser instead of
org.apache.xerces.parsers.SAXParser, which is what is configured in the
config.xml file?
Sandeep Shrivastava wrote:
the weblogic.xml.jaxp package contains classes which implement JAXP
inside
weblogic server. The parser configured in the registry will be invoked
by
the server's jaxp implementation. You can verify this by examining thestack
trace inside one of your sax handler callback methods.
Michelle Baxter wrote in message <[email protected]>...
I'm trying to use Xalan 2J D05. The config.xml is attached.
Xalan is the first thing in my classpath when I run the server.
Xerces
is the second. I tried renaming xmlx.jar to something else, but it
doesn't make a difference.
Sandeep Shrivastava wrote:
Which version of Xalan are you trying to use?
Can you post the config.xml?
The weblogic 6.0 install contains Xerces 1.2 in
weblogic.apache.xerces.parsers package and Xalan 1.2 in the
weblogic.apache.xalan.xslt package ( These are the built-in sax and
dom
parser and xslt engine, bundled in weblogic.jar )
The install also includes Xerces 1.2 in theorg.apache.xerces.parsers
package and Xalan 1.2 in the org.apache.xalan.xslt package ( Theseare
>>>>>
the
XML module's parser and xslt engine, bundled in xmlx.jar )
If you want to use another version of xalan rename the xmlx.jar to
xmlx.jar.bak in the lib directory of the install. You may lose on
the
>>>>>
other
goodies that come with the XML module, i.e. the parser generator and
the
jsp
tag library though.
thanks
Sandeep
"Michelle Baxter" <[email protected]> wrote in message
news:[email protected]...
I'm still trying to run Xalan from the server side...
I tried to set up an XML Registry to use the org.apache.xerces.jaxp
classes. Though it is selected by the server on the XML Services
tab,
and it is the only registry I have, I print out the factory andparser
classes that get created, and they are still
weblogic.xml.jaxp.RegistryBlahblahblah classes. The config.xml hasthe
right class names as shown on the console. Why aren't they used?
The other question I have is that since the Xerces classes that Iwant
to use have the same names as the ones included but are a different
version, how do I get the server to use the new classes and not theones
bundled with WebLogic?
Any help would be greatly appreciated!
Michelle -
WL 6.1 and Configuring External Entity Resolution with XML Registry
I have an XML document that uses a DTD with an http:// URL (specifically, my configuration
file for Struts). It works fine if the machine on which WebLogic is running has
an internet connection, but doesn't work when that machine (for security reasons)
is not connected.
I found in the "Administering WebLogic server XML" document the "External Entity
Configuration Tasks" section which seemed that it would solve my problem by specifying
a local file when encountering an external entity. I followed the directions,
but it didn't seem to make a difference.
Am I interpreting the documentation correctly (and if so, would the XMLRegistry
section below do what I think it should do), or do I need to do something completely
different (i.e., modify the Struts code) to have it not look for the http-based
DTD?
Any help is appreciated.
;ted
The XMLRegistry section of the config.xml file:
<XMLRegistry Name="Struts">
<XMLEntitySpecRegistryEntry CacheTimeoutInterval="-1" EntityURI="file:c:/struts-config_1_1.dtd"
Name="XMLEntitySpecRegistryEntry-1003533562502" PublicId="-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN" WhenToCache="cache-at-initialization" />
<XMLEntitySpecRegistryEntry EntityURI="file:c:/struts-config_1_1.dtd" Name="XMLEntitySpecRegistryEntry-1003525690002"
SystemId="http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" />
</XMLRegistry>
A copy of the struts-config_1_1.dtd file is in the C:\ directory.Firstly, ensure that your XML Registry is targeted at a server. I know that's stating the obvious but you never know.
Secondly the xml/registries/??? directory belongs in the config/domain directory and not one level higher in the applications directory.
I'm been experincing problems resolving to an XML Schema. Resolution to a DTD works fine. Let me know how you get along -
EJBComponents not added to config.xml
We are in the process of upgrading our version of Weblogic Server from 6.1 to 8.1.
In 6.1 weblogic used to add all an EJBComponent tag into config.xml for each
ejb module in application.xml, but it no longer seems to do this in 8.1. From
the weblogic console I can all the ejbs are listed as modules, however they have
no target set. Do we have to manually add the EJBComponents to config.xml now?
Below is the contents of the config.xml:
<Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
<FileRealm Name="wl_default_file_realm"/>
<Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
<JDBCConnectionPool CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
Properties="user=energydb" RefreshMinutes="999999"
ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
Targets="myserver" TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
<JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
PoolName="energyPool" Targets="myserver"/>
<SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
<Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
<ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>
<JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore" Targets="myserver">
<JMSQueue JNDIName="InputBatch" Name="InputBatch"
RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
<JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
Name="InterfacesAsyncCompletionQueue"
RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
</JMSServer>
<JMSConnectionFactory DefaultRedeliveryDelay="5"
JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
<JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
<Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
<ServerDebug DebugEJB="true" DebugEJBCalls="true"
DebugEJBDeployment="true" Name="myserver"/>
<Log FileName="logs/weblogic.log" Name="myserver"/>
<ServerStart Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<WebServer DefaultWebApp="energy"
LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
<KernelDebug Name="myserver"/>
<SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
</Server>
<EmbeddedLDAP
Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE=" Name="E7.2_jeantine_weblogic8.1"/>
<SecurityConfiguration
Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
</Domain>I tried removing the application tag from config.xml, but it didn't manage to automatically
pick up my application.
I am able to deploy my application successfully from the console and the all the
appropriate components get added to the config.xml during that process, but for
some reason it doesn't do this when I first deploy??
The contents of my applications/energy directory are:
n028 jeantine <applications/energy> ls
AdvancedSearchSessionBean.jar MeterMgmtBean.jar
APIAdministrationBean.jar NonTransCORBABean.jar
App4SupSessionBean.jar ParameterStorageBean.jar
AppServSessionBean.jar PasswordServerBean.jar
ARCCCommonControllerBean.jar PaymentArrangementMaintenanceBean.jar
ARCCSessionBean.jar PaymentPlanBOControllerBean.jar
ARSessionBean.jar PaymentPlanCSRControllerBean.jar
AsyncInterfaceControllerBean.jar PaymentPlanCSRLogicBean.jar
AsyncMessageDrivenBean.jar PeriodicBillingLightingSessionBean.jar
BillingMarketModelSessionBean.jar PeriodicBillingSessionBean.jar
BillingSessionBean.jar PostalAddressMaintenanceBean.jar
CCSessionBean.jar PremiseAddressMaintenanceBean.jar
ComponentSessionBean.jar PremiseSearchBean.jar
ContactSessionBean.jar PremiseSessionBean.jar
ContractSessionBean.jar PriceSessionBean.jar
CredControlSessionBean.jar ProcessTrackingMaintenanceBean.jar
CreditControlMaintenanceBean.jar ProfileSessionBean.jar
CustomerMaintenanceBean.jar ProspectInfoSessionBean.jar
CustomerSearchBean.jar ProspectSearchSessionBean.jar
CustomerSessionBean.jar ProspectTransSessionBean.jar
CustomerSignUpBean.jar PRWSessionBean.jar
DirectDebitMaintenanceBean.jar PtjSessionBean.jar
energy QuotationSessionBean.jar
energyapicommon.jar ReadingAdjustmentSessionBean.jar
EnergyCommonControllerBean.jar ReadingSessionBean.jar
energycorba.rar RegisterSessionBean.jar
energyejbcommon.jar ReprocessSessionBean.jar
EnergyLocaleBean.jar SalesMarketing
EnergyPaginatorBean.jar SearchSessionBean.jar
EnrollmentSessionBean.jar ServiceConfigSessionBean.jar
ExternalBillingSessionBean.jar ServiceSessionBean.jar
FIRSessionBean.jar SessionManagerBean.jar
GenericAdminBean.jar SMInBoundProxySessionBean.jar
interfaces_clients.jar SMOutBoundProxySessionBean.jar
interfaces.jar StatementGenerationBean.jar
InternalAsyncRequestBean.jar SupplySessionBean.jar
InvoiceValidationSessionBean.jar SyncInterfaceControllerBean.jar
JDBCOnly1Bean.jar TariffSessionBean.jar
JDBCOnly2Bean.jar TaxExemptionSessionBean.jar
logging.jar TaxJurisdictionSessionBean.jar
MarketExtRefBean.jar TaxSessionBean.jar
MenuServerBean.jar TransactionalRemoteInvokerBean.jar
META-INF UMCSessionBean.jar
Rob Woollen <[email protected]> wrote:
No, you shouldn't have to manually add the EJBComponents.
The Deployed attribute of your application appears to be false. That
doesn't seem too good.
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>My recommendation would be to remove this application's entry from the
config.xml and restart the server. Since it's in the applications
directory, it should be picked up automatically.
If you're still having problems, can you show me the contents of the
applications/energy directory?
-- Rob
Jeantine wrote:
We are in the process of upgrading our version of Weblogic Server from6.1 to 8.1.
In 6.1 weblogic used to add all an EJBComponent tag into config.xmlfor each
ejb module in application.xml, but it no longer seems to do this in8.1. From
the weblogic console I can all the ejbs are listed as modules, howeverthey have
no target set. Do we have to manually add the EJBComponents to config.xmlnow?
Below is the contents of the config.xml:
<Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
<FileRealm Name="wl_default_file_realm"/>
<Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
<JDBCConnectionPool CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
Properties="user=energydb" RefreshMinutes="999999"
ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
Targets="myserver" TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
<JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
PoolName="energyPool" Targets="myserver"/>
<SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
<Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
<ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>
<JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore"Targets="myserver">
<JMSQueue JNDIName="InputBatch" Name="InputBatch"
RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
<JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
Name="InterfacesAsyncCompletionQueue"
RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
</JMSServer>
<JMSConnectionFactory DefaultRedeliveryDelay="5"
JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
<JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
<Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
<ServerDebug DebugEJB="true" DebugEJBCalls="true"
DebugEJBDeployment="true" Name="myserver"/>
<Log FileName="logs/weblogic.log" Name="myserver"/>
<ServerStart Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<WebServer DefaultWebApp="energy"
LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
<KernelDebug Name="myserver"/>
<SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
</Server>
<EmbeddedLDAP
Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE="Name="E7.2_jeantine_weblogic8.1"/>
<SecurityConfiguration
Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
</Domain> -
Multiselect metadata propert in xml form
Hi,
I have created an xml form to create news items for our company. I would like to add a custom metadata property that i have created that is multiselect.
Eg I have created a multi valued property named sls_region with allowed values All, America, Europe. I have assigned this property in custom parameter section of Editxsl file of xml form.
I have created a filter with sls_region property with all allowed values for property available in dropdown.
While uploading news whatever value is selected in dropdown of filter gets assigned to custom property of the form.
To make it more clear
sls_region has value All, America, Europe
If in filter dropdown America is selected ..custom property has value set as America
If in filter dropdown Europe is selected ..Custom property has value set as Europe
If in filter dropdown All is selected ..Custom property has value set as All
This is working fine .Code which I am using for this is
<xsl:param name="ext_mars:sls_region" />(Defined in custom parameters section)
<input size="30" type="hidden">
<xsl:attribute name="name">wcmprop.mars:sls_region</xsl:attribute>
<xsl:if test="$ext_mars:sls_region=' '">
<xsl:attribute name="value" /> </xsl:attribute>
</xsl:if>
<xsl:if test="$ext_mars:sls_region!=' '">
<xsl:attribute name="value">
<xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute>
</xsl:if>
</input>
But I need to change functionality like when user select All in dropdown of filter, all available values for that custom property get sets in form.
If in filter dropdown All is selected ..Custom property should have value set as All, America, Europe
Please guide me how to modify above code to achieve this.
Regards,
MadhvikaThanks for responding
sls_region is a multi value property with values ALL , America, Europe.
My current code which is working fine is like whatever I select in my filter (a sender iview, custom developed component with multi value properties sls_region appearing as dropdown) get passed to receiver iview (basic search iview with a modified epcf receiver as collection renderer).
Receiver iview is used for both uploading news and searching news. To upload news I am using xml form. I have modified edit xsl of form .by adding code as mentioned above in my thread in detail
So if in filter if I select America as region ..Uploaded news will have sls_region property set to America.
If All is selected uploaded news has sls_region set to All.
Code mentioned in my thread is working fine but now I need to modify it like .
If I Select All in filter...Uploaded news should be set with all allowed values of sls_region property i.e. All, America, Europe.
To make it more clear if you look at my code above I want to add logic like
if (test="$ext_mars:sls_region=' '")
<xsl:attribute name="value" /> </xsl:attribute>
Else {
If (test="$ext_mars:sls_region = All)
Value of select = All and America and Europe means news get uploaded with available values of sls_region
Else
<xsl:value-of select="$ext_mars:sls_region"/></xsl:attribute> only with what is selected in filter either America or Europe.
I want to set all allowed values of property sls_region in case when All is selected in filter.
Hope this will help you to have a clear understanding of my problem. -
How to access System properties in xml file
hi,
i want to read system properties in my xml file using ${} .
I tried it but did not find any way.But when i use log4j if i set some variable in
System properties that properties is read by the log4j.properties .
I am writing a simple program that read a xml properties file file
try {
props = new Properties();
fis = new FileInputStream(xmlFile);
props.loadFromXML(fis);
}before reading this file i set some properties and accessing this properties from that xml .but i cant.
Thankssabre150 wrote:
fun_with_java wrote:
can you give some example?Not really - I would have to write the code for you and I'm not getting paid for writing your code.Thanks for your kindness.
I dont ask you to write the code.Need some help to start it .Actually i dont have knowledge that
whether xml file automatically read it or i have prase the system property manually. Now i got the way to
access system property in xml..
Ok thanks again..
Thanks & Regards
Maybe you are looking for
-
when I follow the instruction on importing bookmarks from IE 8 I do not see any action that they are being imported.
-
Interest received against investments, its TDS deduction
Hi All, Interest received against investments, its TDS deduction How we can create and maintain this proess in SAP. Please help me I am new in this process. Thanks & Regards, Juhi Edited by: juhis022 on Dec 13, 2011 8:30 AM
-
HOW DO I CHANGE A GPT VOLUME TO AN MBR VOLUME?
HOW DO I CHANGE GPT VOLUME INTO A MBR VOLUME? LAIRD LANDIS
-
A Small Question From an Inexperienced MacBook User
Hello everyone, hope all is well... I have a small (but perhaps big) problem that I was hoping someone could help me out with... I routinely use the erase free space function in disk utility (about once a month) and perform a seven pass erase on the
-
Mac needs to be restarted after Lion upgrade
hi, can anyone help me? I upgraded my Mac to Lion, ever since then I am having problems: every time I turn on the Mac it tells be to hold down the power button and restart it, I do this and it starts to work only then. I have been having problems wit