Add a resource provider to application.xml
I am trying to setup Oracle AQ integration to BAM
This requires adding the following resource provider to the file application.xml
<resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
<description>BAM for Generic</description>
<property name="datasource" value="jdbc/OracleTTTDS"/>
</resource-provider>
It seems to give an error if I add it to either the beginning or end of this file.
What is the proper way to add this resource to application.xml?
As long as I add this text before the last line it works ok.
Similar Messages
-
Timestamp logging in Application.xml
Hello,
my problem is that I have to add this line
Application/StreamManager/Live/<LogInput>true</LogInput><LogOutput>true</LogOutput>
to the Application.xml to dump the timestamps at the AMS in a log file, because we get an error in our liveapp-stream.
I inserted this line into /opt/adobe/ams_edge/applications/livepkgr/Application.xml. Is that correct? Because I don't think that I get more logs now than before..
Thanks in advance
SvenHi Sven,
Welcome to adobe forums.
It seems fine for me, you have to add this line inside the application.xml of livepkgr app.
Let me know if you have any queries.
Regards,
Puspendra -
Revision: 4804
Author: [email protected]
Date: 2009-02-02 17:56:22 -0800 (Mon, 02 Feb 2009)
Log Message:
Bugs: LCDS-548: add code to deal with contentType="application/xml" with one parameter (avoid
name/value encoding in that case)
LCDS-405: baseURL on HTTPMultiService should accept URLs which start with "/"
Added convertParametersHandler and convertResultsHandler function hooks to RemoteObject
to support framework code which wants to modify the service behavior.
Moved "properties" from rpc/http/AbstractOperation to rpc/AbstractOperation so we can use
it for customizing the handling of remote object results
Couple of minor ASDoc fixes and one tab -> spaces change
Doc: minor asdoc edits
QE: LCDS QE will verify the bugs in this one
Reviewers: Mete, Pete, Seth, Ed reviewed different parts of this checkin
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-548
http://bugs.adobe.com/jira/browse/LCDS-405
Modified Paths:
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.asHello,
How about this as an alternative:
Use a functional global which has 3 cases:
1. open config file - it opens the config file and reads the contents into a string (which is the functional global data), and you only do this one time at the beginning of the program.
2. edit config data - it edits the string, which are really the contents of the file, but doesn't worry about writing to the file. you could even get fancy here, and allow an array of tags and an array of values as input, and it would go update/edit all the tags to have the corresponding values.
3. close config file - it writes the current string data (the functional global data) to the file and closes it.
Using the functions in the string palette, I think you'll find most of the code for that module/functional global will be easy to write.
I hope this helps!
Best Regards,
JLS
Best,
JLS
Sixclear -
Hi!
When deploying a WAR to WebLogic 10.3.5, what is the difference between the prefer-application-packages element in the files weblogic.xml and weblogic-application.xml?
In my WARs WEB-INF/lib/ I have a JAR that contains classes that are already provided by the container (but older versions).
If I do not use prefer-application-packages then my app gets the classes provided by the container.
If I use prefer-application-packages in weblogic.xml then I get the classes from WAR/WEB-INF/lib which is expected.
But if I use prefer-application-packages in weblogic-application.xml then I get the container versions. Why?
Is there a difference between those two options?
The exact data I use is:
(foo.bar.* is the conflicting package; I add or remove the linex marked with XXXX)
WEB-INF/weblogic.xml :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
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 http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
<wls:container-descriptor>
<wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
<wls:prefer-application-packages> <!-- XXXX -->
<wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
</wls:prefer-application-packages> <!-- XXXX -->
<wls:prefer-application-resources>
<wls:resource-name>META-INF/services/some....</wls:resource-name>
<wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
<wls:resource-name>META-INF/services/stuff...</wls:resource-name>
</wls:prefer-application-resources>
</wls:container-descriptor>
<wls:jsp-descriptor>
<wls:page-check-seconds>-1</wls:page-check-seconds>
<wls:precompile>true</wls:precompile>
<wls:precompile-continue>true</wls:precompile-continue>
<wls:keepgenerated>true</wls:keepgenerated>
</wls:jsp-descriptor>
<wls:session-descriptor>
<wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
</wls:session-descriptor>
</wls:weblogic-web-app>
META-INF/weblogic-application.xml :
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application
xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
<application-param>
<param-name>webapp.encoding.default</param-name>
<param-value>UTF-8</param-value>
</application-param>
<xml>
<parser-factory>
<saxparser-factory>
org.apache.xerces.jaxp.SAXParserFactoryImpl
</saxparser-factory>
<document-builder-factory>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
</document-builder-factory>
<transformer-factory>
org.apache.xalan.processor.TransformerFactoryImpl
</transformer-factory>
</parser-factory>
</xml>
<prefer-application-packages>
<package-name>foo.bar.*</package-name> <!-- XXXX -->
<package-name>javax.jws.*</package-name>
<package-name>javax.xml.ws.*</package-name>
<package-name>org.apache.cxf.*</package-name>
<package-name>antlr.*</package-name>
<package-name>org.xmlsoap.schemas.wsdl.*</package-name>
</prefer-application-packages>
</weblogic-application>weblogic-application.xml has no meaning in WARs, it is only used in EARs.
-
Error initializing the Oracle JMS Resource provider for Topics
Getting this error when starting OC4J 9.0.3 standlone on Windows2000.
Resource provider config'd as
<resource-provider class="oracle.jms.OjmsContext" name="ojms">
<description> OJMS/AQ </description>
<property name="datasource" value="jdbc/ProlianceDS"></property>
</resource-provider>
Datasource config'd as
<data-source
class="com.evermind.sql.OrionCMTDataSource"
name="ProlianceDS"
location="jdbc/ProlianceDS"
xa-location="jdbc/xa/ProlianceDS"
ejb-location="jdbc/ProlianceDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="proliance"
password="******"
url="jdbc:oracle:thin:@aps67.ere.com:1538:ifstst"
inactivity-timeout="30"
/>
ejb-jar config'd as
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<description>Proliance Message Driven Bean</description>
<display-name>ProlianceMDB</display-name>
<ejb-name>ProlianceMDB</ejb-name>
<ejb-class>com.lendlease.bll.ProlianceMDB</ejb-class>
<transaction-type>Container</transaction-type>
<message-selector>
<method>
<ejb-name>ProlianceMDB</ejb-name>
<method-name>onMessage</method-name>
</method>
</message-selector>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>Durable</subscription-durability>
</message-driven-destination>
<resource-ref>
<res-ref-name>java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ</res-ref-name>
<res-type>javax.jms.Topic</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>java:comp/resource/ojms/TopicConnectionFactories/aqTcf</resource-env-ref-name>
<resource-env-ref-type>javax.jms.TopicConnectionFactory</resource-env-ref-type>
</resource-env-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ProlianceMDB</ejb-name>
<method-name>onMessage</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
orion-ejb-jar config'd as:
<?xml version = '1.0'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-time="e7f1ce76f6" deployment-version="1.0.2.2">
<enterprise-beans>
<message-driven-deployment
name="ProlianceMDB"
connection-factory-location="java:comp/resource/ojms/TopicConnectionFactories/aqTcf"
destination-location="java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ"
subscription-name="PROLIANCE_SUBSCRIBER">
</message-driven-deployment>
</enterprise-beans>
</orion-ejb-jar>
Full startup trace is:
C:\ora\oc4j_9.0.3\j2ee\home>java -Djdbc.connection.debug=true -jar oc4j.jar
Node started with id=-2143203582
Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB.ear... done.
Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB\ProlianceMDB.war... done.
Auto-deploying ProlianceMDB (New server version detected)...
Copying default deployment descriptor from archive at C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB/ProlianceMDB
.jar/META-INF/orion-ejb-jar.xml to deployment directory C:\ora\oc4j_9.0.3\j2ee\home\application-deployments\ProlianceMDB
\ProlianceMDB.jar...
Auto-deploying ProlianceMDB.jar (New server version detected)... done.
Error initializing the Oracle JMS Resource provider for Topics: Not an OracleConnection
Error deploying file:/C:/ora/oc4j_9.0.3/j2ee/home/applications/ProlianceMDB/ProlianceMDB.jar homes: No javax.jms.Destina
tion found at the specified destination-location (java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ) for MessageDrivenBean
ProlianceMDB
OrionCMTConnection not closed, check your code!
Logical connection not closed, check your code!
Created at:
java.lang.Throwable: OrionCMTConnection created
at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:42)
at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:82)
at oracle.jms.AQjmsConnection.newDBConnection(AQjmsConnection.java:1681)
at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:537)
at oracle.jms.AQjmsTopicConnectionFactory.createTopicConnection(AQjmsTopicConnectionFactory.java:232)
at oracle.jms.OjmsResource.initT(OjmsResource.java:512)
at oracle.jms.OjmsResource.initAQ(OjmsResource.java:411)
at oracle.jms.OjmsResource.init(OjmsResource.java:214)
at oracle.jms.OjmsContextFactory.getObjectInstance(OjmsContextFactory.java:103)
at oracle.jms.OjmsContext.getResource(OjmsContext.java:328)
at com.evermind.server.Application.lookupResource(Application.java:2548)
at com.evermind.server.Application.lookupResource(Application.java:2563)
at com.evermind.server.ApplicationContext.handleResourceLookup(ApplicationContext.java:639)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:162)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:66)
at com.evermind.server.ejb.MessageDrivenHome.<init>(MessageDrivenHome.java:236)
at com.evermind.server.ejb.EJBPackageDeployment.bindHomes(EJBPackageDeployment.java:304)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:595)
at com.evermind.server.Application.postInit(Application.java:431)
at com.evermind.server.Application.setConfig(Application.java:136)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:484)
Auto-deploying ProlianceMDB Poster (New server version detected)...
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Using native aqapi.jar with OC4J -didn't copy from 9.2.0.2 DB. 9.2.0.2 patchset ran fully, completed fine. What's going wrong?
BrianShouldn't I be getting a com.evermind.sql.OrclCMTConnection created instead of a com.evermind.sql.OrionCMTConnection (per the stack trace)? OJMS is complaining that it doesn't have an OracleCOnnection but how do I tell it to use the "OrclCMTConnection" class instead?
Brian -
Howto delete Resource Provider Name for a database persistence provider?
Hi,
I have performed the steps successfully given here: http://mike-lehmann.blogspot.com/2006/09/simple-mdb-with-oracle-database-jms.html
Now, I need to do a clean up for this complete task. I have been able to do so completely sans one problem that if I want to do it again, the Resource Provider Name is visible in EM.
The steps I have taken to to clean the task are:
1. Undeployed the MDB application.
2. Deleted the data source
3. Deleted the connection pool
4. Undeployed the RA (doing so the JMS destination also got deleted)
5. Deleted the JMSUSER schema/user completely.
My environment is RH4 Update 5 + AS 10.1.3.1.0 [J2EE Server+ Web Server] + 10.1.3.3 patch.
Can someone please let me know how to remove the Resource provider name also?
thanks,
SaurabhIn addition to the steps highlighted above, the value for the Resource Provider Name was persisting in the application.xml file. Once it is deleted, OC4J instance restarted, all works fine.
Thanks. -
Hi,
Whenever I try to export the release build I get error from COmpiler during the process that "Error copying application.xml icons: Resource '/Project_Name/bin-release/assets/icons' does not exist." I have specified 4 icons in the -app.xml file of sizes 16,32,48,128 which exist in the path specified and files are not corrupt. I have checked and unchecked the compiler directive "Copy non-embedded resources in the Output file" but that has not helped too.
Can somebody please advise what do I do in this situation?
We are using
FB4 with Flex Hero(4.5) SDK and java heap space specified in .ini files is 1224m
This is somewhat urgent guys...
Thanks
ShubhraFrank,
Thank you for your answer. I had not checked (will do so tonight).
I had considered it adequate to wipe out the entire system directory (thereby wiping out the integrated weblogic server), but perhaps it was not adequate? I did not specify that this is on the integrated server, but that is the case....
Stuart -
Application.xml over-written when deploying JDeveloper 10.1.3.2
Hi all,
I created a Web Application that contains JSF, EJB, and Toplink. I have a ViewController project, a Model project, and a Deployment project. The ViewController obviously contains my JSPs, etc, the Model my EJBs and server code, and deployment profiles for each. The Deployment project contains a deployment profile for creating the EAR file for the other two projects.
When the EAR is created (or if I deploy to stand-alone OC4J) the application.xml is generated without an module/EJB tag containing my EJB jar. Therefore when the server starts up it does not find any of my EJBs.
If I manually modify the application.xml in a created EAR file and then deploy it manually, everything works great. So, I tried to create an application.xml file in my Deployment project (and I tried in my ViewController project, too), but it ends up getting over-written and changed to still not have the module/EJB tag. Can someone explain to me how to stop JDeveloper from overriding this file or how to get JDeveloper to include this tag set when creating the application.xml?
Thanks,
MikeJDeveloper 10.1.3.2 supports J2EE 1.4 in which the web.xml does not include the
<taglib> element. Remove the <taglib> element from the web.xml. Specify the http uri in the <%@ taglib prefix='srp' uri='' %>
Add the taglib JAR file to project libraries. -
How to include custom application.xml in JDev9i project
Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
Thanks,
mattThe standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
Re: Regarding 11i and E-business suite
has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
package mypackage4;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import oracle.xml.parser.v2.*;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
public class PostProcessEAR
public static void main( String[] args ) throws IOException
final String earFile = "C:\\temp\\myapp.ear";
final PostProcessEAR postProcess = new PostProcessEAR( earFile );
postProcess.addSecurityRole( null, "first_role" );
postProcess.addSecurityRole( "Description for the second role", "second_role" );
postProcess.commit();
System.out.println( "Done." );
private final File _earFile;
private final ArrayList _securityRoles = new ArrayList();
public PostProcessEAR( String earFile )
_earFile = new File( earFile );
public void addSecurityRole( String description, String roleName )
if ( roleName == null )
throw new IllegalArgumentException();
_securityRoles.add( description );
_securityRoles.add( roleName );
* Write out modified EAR file.
public void commit() throws IOException
if ( _securityRoles.size() == 0 )
return;
final ZipFile zipFile = new ZipFile( _earFile );
final Enumeration entries = zipFile.entries();
final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
while ( entries.hasMoreElements() )
final ZipEntry entry = (ZipEntry) entries.nextElement();
final InputStream in = zipFile.getInputStream( entry );
if ( "META-INF/application.xml".equals( entry.getName() ) )
final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
modifiedApplicationXml.print( byteOutput );
final int numBytes = byteOutput.size();
entry.setSize( numBytes );
if ( entry.getMethod() == ZipEntry.STORED )
entry.setCompressedSize( numBytes );
final CRC32 crc32 = new CRC32();
crc32.update( byteOutput.toByteArray() );
entry.setCrc( crc32.getValue() );
out.putNextEntry( entry );
byteOutput.writeTo( out );
else
// Copy all other zip entries as they are.
out.putNextEntry( entry );
copy( in, out );
in.close();
out.close();
private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
final DOMParser domParser = new DOMParser();
domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
try
domParser.parse( in );
final XMLDocument doc = domParser.getDocument();
final Element docElem = doc.getDocumentElement();
final Iterator iter = _securityRoles.iterator();
while ( iter.hasNext() )
final String desc = (String) iter.next(); // might be null
final String roleName = iter.next().toString(); // must not be null
final Element securityRoleElem = doc.createElement( "security-role" );
if ( desc != null )
securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
docElem.appendChild( securityRoleElem );
return doc;
catch ( SAXException e )
e.printStackTrace();
return null;
private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
final Element elem = doc.createElement( elemName );
elem.appendChild( doc.createTextNode( pcdata ) );
return elem;
private final byte[] buffer = new byte[4096];
private void copy( InputStream in, OutputStream out ) throws IOException
while ( true )
final int bytesRead = in.read( buffer );
if ( bytesRead < 0 )
break;
out.write( buffer, 0, bytesRead ); -
Newbie: orion-application.xml in both deployment and applications dirs
Okay,
I am using OAS 10.1.2.2 and have deployed an OC4J instance with a web application. The web application that I deployed (from a .war file) was installed normally but for some reason I have an orion-application.xml file in both the +/application-deployments/webappname/+ and the +/applications/webappname/META-INF/+ directories. They look almost identical with the differences noted below:
applications directory version:
This file has a complete definition for the jazn provider but is missing a reference to the principals.xml file.
jazn section looks like this:
<jazn provider="LDAP" location="ldap://ldap.server.edu:389">
<property name="ldap.user" value="cn=username" />
<property name="ldap.password" value="!password" />
<property name="ldap.cache.session.enable" value="false"/>
<property name="ldap.cache.realm.enable" value="false"/>
<property name="ldap.cache.policy.enable" value="false"/>
<property name="jaas.username.simple" value="true" />
<jazn-web-app auth-method="SSO"/>
</jazn>
application-deployments directory version:
It points to a principals.xml file and gives a generic definition for the jazn provider (specifies provider="LDAP" and a default-realm but no location attribute in the jazn tag).
jazn section looks like this:
<jazn provider="LDAP" default-realm="whidbey1">
<jazn-web-app auth-method="SSO"/>
<property name="jaas.username.simple" value="true" />
</jazn>
I assume the one defined in the +/applications/webappname/META-INF+ is the proper one since it has all the detailed OID connection information. However, are both needed? If so, why? If not, which one is being used and why would there be two of them?
I've checked all the documentation and have found several references to it being installed in one or the other place but not both.
Any help you can provide would be much appreciated.Hi,
The difference between these files is this:
The one in the applications/ tree is the one that comes packaged in your ear file. This is a way to package your deployment preferences. At deployment time, enterprise manager extracts this file to configure your deployment.
The one in the application-deployments directory is the one that is actually in use.
LDAP connection from OC4J containers is specified on the container level, because this is container-level security. This means that using the enterprise manager, you configure your container to connect to the LDAP (enterprise manager, tab administration, item Identity Management). In the orion-application.xml, you no longer need the details because they are stored on container level. So these are removed when deploying your application, leaving only what you see.
The configuration parameters you specify can be added as container startup parameters using -Dparam=value.
Regards,
Jeroen van Veldhuizen -
SOAP Adapter without SOAP envelope sets contenttype to application/xml
Hi,
I wrote a adaptermodul for the SOAP adapter to create a SOAP:HEADER.
I disable the SOAP envelope in the communication channel.
Now I get a error from the WebService Provider because the SOAP Adapter sends with Content-Type application/xml and not text/xml. I set the content-type in the adapter module but it seens to not work.
How can I correct this ?
Regards,
GeraldHi
Simple answer is NO, it is not possible (without party/channel/ service etc to process the request)
but it is worth a try to check if the URL encoding works.. though I have not tried..
for example sending the hex value of the "?" - %3F%
URL is a generic topic, you can search that to get more information
(ex : http://www.blooberry.com/indexdot/html/topics/urlencoding.htm)
Regards
Vishnu -
Non-default system-application.xml file?
There's mention in the OC4J documentation regarding specifying a non-default system-application.xml file; however, I cannot find the string defining it in any of the OC4J files, nor in the documentation though I might have missed it in that.
I am attempting to have multiple instances run out of the same ORACLE_HOME, and I'd like to point the logs to separate places per instance. Every other one is pretty clear (defined in the customized server.xml), this one with its logging parameter I cannot find a method for keeping a separate log file per instance other than simply creating multiple oracle or at least j2ee homes. Short cut for keeping things consistent for many settings and deployments, though may not be feasible for a running environment.
Any information or points in the right direction would be appreciated. Thanks,
GeoffYou can modify the <log> tag in system-application.xml to rotate the system log file.
System application is a key internal component that is critical to OC4J startup, the system-application.xml file should not be modified except for the <jazn> and <log> tags.
You can modify the <jazn> tag as needed to specify changes to the security provider, the location of the OC4J security configuration file (system-jazn-data.xml), or both. For more information about <jazn> and the system-jazn-data.xml file, see the Oracle Containers for J2EE Security Guide.
There's no reference of system-application.xml in other config files.
-Frances -
Failed to add the resource due to error in the resource
Mi problema es el siguiente:
Tenemos el ORA 10G Release 2 (10.1.2.0.2), versión LITE, y a la hora de hacer ciertas operaciones se produce el siguiente error:
avax.transaction.SystemException: Failed to add the resource due to error in the resource
at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:260)
at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:183)
at com.hphis.corp.Transaccion.conectaBD(Transaccion.java:255)
at com.hphis.corp.Transaccion.iniciarTransaccion(Transaccion.java:141)
at com.hphis.edoctor.anotaciones.DocAnotacionBean.createNote(DocAnotacionBean.java:211)
at edoctor.anotaciones._crearAnotacion._jspService(_crearAnotacion.java:211)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.hphis.corp.filters.logueo.LogueoFilter.doFilter(LogueoFilter.java:66)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.hphis.corp.filters.gzip.GZipFilter.doFilter(GZipFilter.java:56)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
El contenido de mi data-sources.xml es el siguiente:
<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://www.orionserver.com/dtds/data-sources.dtd">
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="ibasededatos"
location="jdbc/ibasededatos"
xa-location="jdbc/xa/ibasededatosXA"
ejb-location="jdbc/ibasededatos"
pooled-location="jdbc/ibasededatos"
connection-driver="com.informix.jdbc.IfxDriver"
username="informix"
password="informix"
url=""
max-connections="100"
min-connections="2"
inactivity-timeout="600"
schema="database-schemas/informix.xml"
</data-source>
</data-sources>
No pongo la url por motivos justificados, sale la IP de la BD a la que conecto.
No consigo saber por qué, pero con un servidor Orion no pasa.Mi problema es el siguiente:
Tenemos el ORA 10G Release 2 (10.1.2.0.2), versión LITE, y a la hora de hacer ciertas operaciones se produce el siguiente error:
avax.transaction.SystemException: Failed to add the resource due to error in the resource
at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:260)
at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:183)
at com.hphis.corp.Transaccion.conectaBD(Transaccion.java:255)
at com.hphis.corp.Transaccion.iniciarTransaccion(Transaccion.java:141)
at com.hphis.edoctor.anotaciones.DocAnotacionBean.createNote(DocAnotacionBean.java:211)
at edoctor.anotaciones._crearAnotacion._jspService(_crearAnotacion.java:211)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at com.hphis.corp.filters.logueo.LogueoFilter.doFilter(LogueoFilter.java:66)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at com.hphis.corp.filters.gzip.GZipFilter.doFilter(GZipFilter.java:56)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
El contenido de mi data-sources.xml es el siguiente:
<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://www.orionserver.com/dtds/data-sources.dtd">
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="ibasededatos"
location="jdbc/ibasededatos"
xa-location="jdbc/xa/ibasededatosXA"
ejb-location="jdbc/ibasededatos"
pooled-location="jdbc/ibasededatos"
connection-driver="com.informix.jdbc.IfxDriver"
username="informix"
password="informix"
url=""
max-connections="100"
min-connections="2"
inactivity-timeout="600"
schema="database-schemas/informix.xml"
</data-source>
</data-sources>
No pongo la url por motivos justificados, sale la IP de la BD a la que conecto.
No consigo saber por qué, pero con un servidor Orion no pasa. -
Adding resource-ref in web.xml
dos it make any difference adding
<resource-ref>
<description>Application Datasource </description>
<res-ref-name>jdbc/myDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>inside web.xml , it works with or without , please tell me the importance of thisThe optional resource-ref element defines a reference lookup name to an external resource. This allows the servlet code to look up a resource by a "virtual" name that is mapped to the actual location at deployment time.
http://www.chariotsolutions.com/geronimo/geronimo-1.1/database-mapping.html -
OC4J orion-application.xml - elements and attributes
Hi. i read in oracle docs sentense like this: "Each property maps to an element attribute in the orion-application.xml descriptor." These properties are from deployment plan and i need to know what is the name of the element in orion-application.xml wich is mapped to webSiteBinding property (from deployment plan).
I just did a quick test of this, and it seems to work for me.
I used the following XML:
<?xml version="1.0" encoding="iso-8859-1"?>
<Employees xmlns="
http://www.foo.com/Employees">
<Employee Id="001">
<LastName>Davis</LastName>
<FirstName>Kirk</FirstName>
</Employee>
<Employee Id="002">
<LastName></LastName>
<FirstName>James</FirstName>
</Employee>
<Employee Id="003">
<FirstName>Anthony</FirstName>
</Employee>
<Employee>
</Employee>
</Employees>
With the XPath "/Employees/Employee" I got rows in the data
set and things displayed fine in my page. Changing it to
"/employees/employee" caused the data set to have no rows which I
would expect since things should be case sensitive.
Can you provide me with some sample XML and XPath that
doesn't work?
Thanks!
--== Kin ==--
Maybe you are looking for
-
I was having problems with some sites having such faded lettering that I couldn't even read them. So I unchecked the box for "Allow pages to choose their own fonts, instead of my selections above". That screwed EVERYTHING up...backgrounds on websites
-
Report to check all GL account wise at the end of year
hii friends, Can we see all GL accounts wise report with opening balance, transaction and closing balance at the end of year. In FS10 N we are able to see one account no and it details or else we can see the total of all the balaces but not the a.c w
-
Windows 7 blue screen on Mid 2010 iMac running 10.8
I had previously had the 64 bit version of Windows 7 Home Premium running on my mid 2010 iMac running 10.7. However, after upgrading to 10.8, my Windows installation would blue screen after booting. I suspect this was due to upgrading to 10.8 as I di
-
Adobe reader not working after cs5 install
adobe reader not working after cs5 install
-
Microsoft SQL Server JDBC driver and WLS JMS problem?
Greetings, I'm using the Microsoft SQL Server JDBC driver with WLS with JMS persisted to SQL Server, during WLS startup the JMS attempts to read the JMSStore and JMSState tables in the db, if they are