Problem with Oracle9iAS SOAP EJB Sample
I have tried testing the stateless/stateful EJB soap services sample in Oracle9iAS SOAP server.
I have changed the provider.xml. Deployed that and the service.xml and put the sample.jar in the lib directory.
when i run the testit.bat, I get the following error :
Ouch, the call failed:
Fault Code = SOAP-ENV:Server
Fault String = Error in connecting to EJB [java.lang.SecurityException]
Can anyone help me out in this ??
Thanks in advance,
Chhimi
Chhimi, could you check the providers.xml you are using. Here is mine for a local OC4J:
<deployedProviders>
<isd:provider xmlns:isd="http://xmlns.oracle.com/soap/2001/04/deploy/provider"
id="stateless-ejb-provider"
class="oracle.soap.providers.ejbprov.StatelessEJBProvider">
<isd:option key="ContextProviderURL" value="ormi://localhost:23791" />
<isd:option key="SecurityPrincipal" value="admin" />
<isd:option key="FullContextFactoryName" value="com.evermind.server.rmi.RMIInitialContextFactory" />
<isd:option key="SecurityCredential" value="welcome" />
</isd:provider>
</deployedProviders>
When deploying to Oracle9iAS you will likely have to change the RMI port, hostname and password. For example,
a default 9iAS install has EJB's listening on RMI ports 3101 - 3200. For this to hook up you need to pick a port (e.g. 3102) with the appropriate host and password and it should hang together.
What some people do is change the ports to not be dynamic and set it to a specific port as it is with the OC4J stand-alone instance. You can check out the opmnctl command in the <Oracle9iAS_home>\opmn\bin directory to reload the opmn.xml file located in the <Oracle9iAS_home>\opmn\conf directory to do this or more safely use Enterprise Manager to change the RMI ports for the OC4J instance you are using.
Hope this helps. I have been offline for nearly a week but should be checking again regularly if you have problems.
Mike.
Similar Messages
-
Problem with Dynamically accessing EJB Class objects in WL 7.0 SP1
I am trying to build a component which has the ability to instantiate and execute
an known EJB method on the fly.
I have managed to build the component but when I try and execute it I get a ClassNotFoundException.
I know that the EJB I am trying to invoke is deployed and available on the server,
as I can see it in the console, I also seen to have been able to get the remote
interface of the object, my problem occurs when I try and access the class object
so I can perform a create on the object and then execute my method
The code I have written is below:
private Object getRemoteObject(Context pCtx, String pJNDIName, String pHomeBean)
throws Exception {
String homeCreate = "create";
Class []homeCreateParam = { };
Object []homeCreateParamValues = {};
try {
//This call seems to work and doesn't throw an exception
Object home = pCtx.lookup(pJNDIName);
//However this call throws a java.lang.ClassNotFoundException
Class homeBean = Class.forName(pHomeBean);
Method homeCreateMethod = homeBean.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
} catch (NamingException ne) {
logStandardErrorMessage("The client was unable to lookup the EJBHome.
Please make sure ");
logStandardErrorMessage("that you have deployed the ejb with the JNDI
name "+pJNDIName+" on the WebLogic server ");
throw ne;
} catch (Exception e) {
logStandardErrorMessage(e.toString());
throw e;
Any advice would be really appreciated, I'm fast running out of ideas, I suspect
it has something to do with the class loader but I'm not sure how to resolve it
Regards
Jo CorlessHello Joanne,
Congratulations! I'm very happy that you've managed to fix your problem. It's
always essential to understand how to package applications when deploying on BEA
WebLogic. Usually, by throwing everything into an EAR file solves just about all
the class loader problems. :-) Let us know if you have any further problems that
we can assist you with.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Joanne Corless" <[email protected]> wrote:
>
>
I've fixed it!!!!!!!!
Thanks to everyone who gave me help!!!!
The class loader was the culprit which is what I suspected all along.
As soon
as I put the 2 jar files I was using into an EAR file the problem went
away!!!!!
Thanks again
Jo Corless
"Ryan LeCompte" <[email protected]> wrote:
Hello Joanne,
As Mr. Woollen mentioned, I also believe it's a problem with the class
loader.
You need to be careful how you arrange your EJBs, because WebLogic has
a specific
method in which it loads classes in an EAR, JAR, and WAR file(s). Please
refer
to http://dev2dev.bea.com/articles/musser.jsp for more information about
BEA WebLogic
class loading mechanisms and caveats. Also, try printing out the various
methods
that are available on the object that was returned to you via reflection.
For
example, use the getMethods() method, which returns an array of Method
objects
that you can subsequently cycle through and print out the various method
names.
This way you can discover if the class found/returned to you is indeed
the one
you intend to locate.
Hope this helps,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
Rob Woollen <[email protected]> wrote:
I believe the issue is the home interface class for this EJB is not
available in the class loader which is doing the reflection.
If you do:
getClass().getClassLoader().loadClass(homeInterfaceClassName)
I suspect it will fail. Reflection still requires that the class be
loadable.
-- Rob
Joanne Corless wrote:
Hi Slava,
If I make my code look like you describe below I get a compliationerror telling
me that
home.getMethod() is not recognised (no such method)
If I change it slightly and use
Method homeCreateMethod =
home.getClass().getMethod(homeCreate,homeCreateParam);
The code will compile OK but when executed it still throws a NoSuchMethodException
Any ideas ?
Thanks for your help so far
Regards
Jo Corless
Your code should look like
Object home = pCtx.lookup(pJNDIName);
Method homeCreateMethod =
home.getMethod(homeCreate,homeCreateParam);
return homeCreateMethod.invoke(home, homeCreateParamValues);
Regards,
Slava Imeshev
"Joanne Corless" <[email protected]> wrote in message
news:[email protected]...
Hi Ryan,
I also wanted to mention that if you do a "header search" in this
particular
newsgroup
with the search query as "reflection", you will see many previousmessages
regarding
reflection and EJBs. I believe you could learn a lot from thedifficulties
that
others have faced and solved.I tried that and although there was a number of similar cases noneof them
actually
seem to fix my issue. Thanks for the suggestion though
Are the EJBs that you are trying to access accessible via your
system
classpath?
Try to avoid having them accessible via the main system classpath,and
only bundle
them in your appropriate EJB jar files (contained in an EAR file,for
example).Maybe I should have laid the problem out a little clearer.
I have a number of EJB's bundled up in a JAR file which is hot deployedto
the
server. Within this first JAR file is an EJB (SSB) component that
needs
to
be
able to invoke a known method on another EJB. This second EJB may
or
may
not be
within the first JAR file but it also will be hot deployed.
The component trying to invoke the method on the 2nd EJB has to
be
able to
create
an instance of the 2nd EJB without actually knowing anything bar
a
JNDI
Name which
is passed in at runtime.
I can get as far as doing the
Object home = pCtx.lookup(pJNDIName);
This returned a class with the name
"com.csc.edc.projects.allders.httppostoffice.postman.PostmanBean_mp8qy2_Home
Impl_WLStub"
My problem seems to occur when I try and invoke the create method
Method homeCreate = home.getClass().getMethod("create", new Class[0]);
My code throws a java.lang.NoSuchMethodException at this point so
I
am
unable
to progress to the next step of :
Object bean = homeCreate.invoke(home, null);
So I can return the instantiated bean back to the calling client.
Why am I getting the NoSuchMethodException, is is because I am gettinga
stub
back rather than the home interface and if so how do I get the truehome
interface
from the bean
Thanks in advance
Jo Corless -
Big problems with creative webcam instant (sample included)
yesterday i purchased a creative webcam instant, and i am dissapointed in the quality of the video.
The frame rate is great, however there is artifacting and the video jumps around all over the place.
I have never had a problem with any other imaging devices before, so i cant see why this is happening with this camera.
This happens with the creative webcam center, and also in any other application that uses video from the camera (such as any instant messenger program)
Here is a .88 meg file to show you how the video jumps around.
http://steven.moondrummer.com/misc/space/4328.aviBlah! The WEBCamInstant is "cheap" & nasty & for beach light only.
1. You have a USB-2?
-> calgarysteven ... 0-24-2004 09:47 PM
2. Try in WebCamCenter - Capture - Source - Exposure to Min. Too dark? -
Problems with ADF when running sample EJB, JPA, JSF Tutorial
Hi,
I'm new to jDeveloper.
I've downloaded the version 11.1.1.2.0 and tried to do my first tutorials with the product.
I started with the sample 'Build Applications with EJB, JPA and JSF' and run to following problems:
- Part1: Step 10 expose the EJb as a Data Control
Here right-click FODFacadeBean.java and choose Create Data Control.
this option 'Create Data Control' does not come up at all. There is not such option
- Part 2: Step 1 Add Tag Libraries to a project
The option to select ' ADF Faces Components 11 '
does not come up either. I can not see any ADF related options...
Is there something missing from my installation, as I can not access these ADF components ?
Should I include the ADF components at some stage during the installation to be able to access these
or is this some licencing option ?
I downloaded the product yesterday from the public download site, filename jdevstudio11112install.exe
Jan-ErikHi,
I'm new to jDeveloper.Welcome to OTN :)
I've downloaded the version 11.1.1.2.0 and tried to do my first tutorials with the product.
I started with the sample 'Build Applications with EJB, JPA and JSF' and run to following problems:
- Part1: Step 10 expose the EJb as a Data Control
Here right-click FODFacadeBean.java and choose Create Data Control.
this option 'Create Data Control' does not come up at all. There is not such optionI just tried and able to see the option (and able to generate the DC from the facade as well). Could you please share the tutorial link to see if you are missing something?
>
- Part 2: Step 1 Add Tag Libraries to a project
The option to select ' ADF Faces Components 11 '
does not come up either. I can not see any ADF related options...Did you select Fusion Web Application (ADF) Template for creating your application? If yes, the ADF Faces Components 11 tag library would've been added by default (Check out in the list of tag libraries that are already added - before clicking on the Add button).
-Arun -
Problem with XML Data Streaming sample
Hello.
I'm learning to use SAX API in order to insert large XML files into database. I'm trying to run sample xdksample_040602.zip (data stream sample using pl/sql and
SAX). Everything runs fine until I run "ExDocumentTest.sql" file. I get this error:
Errors for PROCEDURE DOCEXPAND:
PL/SQL:SQL Statement ignored
PLS-00385: type mismatch found at 'P_XML' in SELECT...INTO statement
PL/SQL:SQL Statement ignored
PLS-00385:type mismatch found at 'P_DTD' in SELECT...INTO statement
Please I need to solve this problem. Or... where can I find another sample to do what I want? this seems to be the only sample for inserting XML into the database
with SAX. I already know how to do it with DOM.
Eric.Hi Eric,
There is a SAX Loader Sample Application available at XML DB Sample corner page that also demonstrates the insertion of XML into the database with SAX.
You can find this sample at the following URL:
http://otn.oracle.com/sample_code/tech/xml/xmldb/index.html
Hope it helps
Shefali -
Problems with Oracle9iAS Containers for J2EE - Developer Preview!
Guys,
Trying to RE-deploy an EJB CMP 2.o from JDeveloper (that used to work) to the new version of OC4J returns the following errors:
java.io.UTFDataFormatException: Invalid UTF8 encoding.
Wrote EJB .jar file to D:\Oracle\JDeveloper\Rehder\CommOSS\Locations\locations.jar
Wrote EAR file to D:\Oracle\JDeveloper\Rehder\CommOSS\Locations\locations.ear
Invoking Oracle9iAS admin tool...
C:\JDeveloperRC2\jdk\jre\bin\javaw.exe -jar D:\Oracle\Products\O9iAS\Install\oc4jxtnd\j2ee\home\admin.jar ormi://sandro/ admin **** -deploy -file D:\Oracle\JDeveloper\Rehder\CommOSS\Locations\locations.ear -deploymentName locations
Fatal Error: Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ParseException: Invalid UTF8 encoding.
Auto-unpacking D:\Oracle\Products\O9iAS\Install\oc4jxtnd\j2ee\home\applications\__locations.ear... done.
Copying default deployment descriptor from archive at D:\Oracle\Products\O9iAS\Install\oc4jxtnd\j2ee\home\applications\__locations/META-INF/orion-application.xml to deployment directory D:\Oracle\Products\O9iAS\Install\oc4jxtnd\j2ee\home\application-deployments\locations...
Auto-deploying locations (New server version detected)...
java.io.UTFDataFormatException: Invalid UTF8 encoding.
int oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(int, int)
void oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer()
int oracle.xml.parser.v2.XMLByteReader.saveBuffer(int)
boolean oracle.xml.parser.v2.XMLReader.fillBuffer()
boolean oracle.xml.parser.v2.XMLReader.tryRead(char[], int, int)
void oracle.xml.parser.v2.XMLReader.scanXMLDecl()
void oracle.xml.parser.v2.XMLReader.pushXMLReader(java.io.InputStream, java.lang.String, java.lang.String)
void oracle.xml.parser.v2.XMLReader.pushXMLReader(org.xml.sax.InputSource)
void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
java.util.Vector com.sun.enterprise.deployment.xml.XMLUtils.getNodesByType(java.lang.Class, java.util.Dictionary, java.io.InputStream)
java.util.Vector com.sun.enterprise.deployment.xml.EjbBundleNode.readEjbBundleNodes(java.io.InputStream)
com.sun.enterprise.deployment.xml.EjbBundleNode com.sun.enterprise.deployment.xml.EjbBundleNode.read(java.io.InputStream)
com.sun.enterprise.deployment.EjbBundleDescriptor com.sun.enterprise.deployment.EjbBundleDescriptorFactory.makeEjbBundleDescriptor(java.io.InputStream, java.lang.ClassLoader, boolean)
void com.evermind.server.ejb.deployment.EJBPackage.init(byte[], int, int, boolean)
void com.evermind.server.ServerComponent.init()
com.evermind.server.ejb.deployment.EJBPackage com.evermind.server.ejb.EJBPackageDeployment.getPackage()
java.util.Map com.evermind.server.administration.ServerApplicationInstallation.finish(java.util.Map)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
com.sun.enterprise.deployment.xml.ParseException: Invalid UTF8 encoding.
java.util.Vector com.sun.enterprise.deployment.xml.EjbBundleNode.readEjbBundleNodes(java.io.InputStream)
com.sun.enterprise.deployment.xml.EjbBundleNode com.sun.enterprise.deployment.xml.EjbBundleNode.read(java.io.InputStream)
com.sun.enterprise.deployment.EjbBundleDescriptor com.sun.enterprise.deployment.EjbBundleDescriptorFactory.makeEjbBundleDescriptor(java.io.InputStream, java.lang.ClassLoader, boolean)
void com.evermind.server.ejb.deployment.EJBPackage.init(byte[], int, int, boolean)
void com.evermind.server.ServerComponent.init()
com.evermind.server.ejb.deployment.EJBPackage com.evermind.server.ejb.EJBPackageDeployment.getPackage()
java.util.Map com.evermind.server.administration.ServerApplicationInstallation.finish(java.util.Map)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
java.lang.InstantiationException: Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ParseException: Invalid UTF8 encoding.
void com.evermind.server.ejb.deployment.EJBPackage.init(byte[], int, int, boolean)
void com.evermind.server.ServerComponent.init()
com.evermind.server.ejb.deployment.EJBPackage com.evermind.server.ejb.EJBPackageDeployment.getPackage()
java.util.Map com.evermind.server.administration.ServerApplicationInstallation.finish(java.util.Map)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Exit status of Oracle9iAS admin tool (-deploy): 0
---- Deployment finished. ---- 28/03/2002 23:43:10
Any idea? What I should do? Wait for a more stable version of OC4J?
Regards
SandroI am getting a similar error trying to deploy my 2.0 CMP beans. Any insight from anyone on this problem? The biggest issue is that there is no guidance on where the problem lies. I think my ejb-jar.xml file is fine, it deploys as is in Orion as well as WebLogic....
-
Problems with jax-rpc HelloWorld sample
Hi
Running on Linux Red Hat 9.0
Jwsdp 1.3
I'm following the jwsdp tutorial trying to build the jax-rpc HelloWorld sample. I do what the tutorial says:
"ant build" in the sample directory but it "Fails" with this message:
init:
[echo] -------- HelloWorld Sample --------
prepare:
generate-server:
edit-config:
[wscompile] modeler error: failed to parse document at "/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld//home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorl
d/etc/HelloWorldService.wsdl": java.io.FileNotFoundException: /home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/Hell
oWorld/etc/HelloWorldService.wsdl (No such file or directory)
[wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLModelerBase.java:179)
[wscompile] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:85)
[wscompile] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
[wscompile] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:564)
[wscompile] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
[wscompile] at com.sun.xml.rpc.tools.ant.Wscompile.execute(Wscompile.java:686)
[wscompile] at org.apache.tools.ant.Task.perform(Task.java:341)
[wscompile] at org.apache.tools.ant.Target.execute(Target.java:309)
[wscompile] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wscompile] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[wscompile] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[wscompile] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[wscompile] at org.apache.tools.ant.Main.start(Main.java:196)
[wscompile] at org.apache.tools.ant.Main.main(Main.java:235)
[wscompile] CAUSE:
[wscompile] failed to parse document at "/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld//home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/HelloWorl
dService.wsdl": java.io.FileNotFoundException: /home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/Hell
oWorldService.wsdl (No such file or directory)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitionsNoImport(WSDLParser.java:252)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitions(WSDLParser.java:170)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parse(WSDLParser.java:162)
[wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLModelerBase.java:126)
[wscompile] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:85)
[wscompile] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
[wscompile] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:564)
[wscompile] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
[wscompile] at com.sun.xml.rpc.tools.ant.Wscompile.execute(Wscompile.java:686)
[wscompile] at org.apache.tools.ant.Task.perform(Task.java:341)
[wscompile] at org.apache.tools.ant.Target.execute(Target.java:309)
[wscompile] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wscompile] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[wscompile] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[wscompile] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[wscompile] at org.apache.tools.ant.Main.start(Main.java:196)
[wscompile] at org.apache.tools.ant.Main.main(Main.java:235)
[wscompile] CAUSE:
[wscompile] java.io.FileNotFoundException: /home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/HelloWor
ldService.wsdl (No such file or directory)
[wscompile] at java.io.FileInputStream.open(Native Method)
[wscompile] at java.io.FileInputStream.<init>(FileInputStream.java:106)
[wscompile] at java.io.FileInputStream.<init>(FileInputStream.java:66)
[wscompile] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
[wscompile] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
[wscompile] at java.net.URL.openStream(URL.java:913)
[wscompile] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:947)
[wscompile] at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:893)
[wscompile] at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:846)
[wscompile] at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:264)
[wscompile] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:513)
[wscompile] at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
[wscompile] at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
[wscompile] at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
[wscompile] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitionsNoImport(WSDLParser.java:248)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parseDefinitions(WSDLParser.java:170)
[wscompile] at com.sun.xml.rpc.wsdl.parser.WSDLParser.parse(WSDLParser.java:162)
[wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLModelerBase.java:126)
[wscompile] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:85)
[wscompile] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
[wscompile] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:564)
[wscompile] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
[wscompile] at com.sun.xml.rpc.tools.ant.Wscompile.execute(Wscompile.java:686)
[wscompile] at org.apache.tools.ant.Task.perform(Task.java:341)
[wscompile] at org.apache.tools.ant.Target.execute(Target.java:309)
[wscompile] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wscompile] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[wscompile] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[wscompile] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[wscompile] at org.apache.tools.ant.Main.start(Main.java:196)
[wscompile] at org.apache.tools.ant.Main.main(Main.java:235)
[wscompile] error: modeler error: failed to parse document at "/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld//home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/He
lloWorld/etc/HelloWorldService.wsdl": java.io.FileNotFoundException: /home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/home/medimg/pablo/jwsdp-1.3/jaxrpc/sampl
es/HelloWorld/etc/HelloWorldService.wsdl (No such file or directory)
[wscompile] Command invoked: wscompile -d /home/medimg/pablo/jwsdp-1.3/jaxrpc/build/samples/HelloWorld/classes/server -import -keep -model /home/medimg/pablo/jwsdp-
1.3/jaxrpc/build/samples/HelloWorld/model-wsdl-rpcenc.xml.gz -Xprintstacktrace /home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/config.xml -classpath /hom
e/medimg/pablo/jwsdp-1.3/jwsdp-shared/lib/mail.jar:/home/medimg/pablo/jwsdp-1.3/jwsdp-shared/lib/activation.jar:/home/medimg/pablo/jwsdp-1.3/jaxp/lib/jaxp-api.jar:/
home/medimg/pablo/jwsdp-1.3/jaxp/lib/endorsed/dom.jar:/home/medimg/pablo/jwsdp-1.3/jaxp/lib/endorsed/sax.jar:/home/medimg/pablo/jwsdp-1.3/jaxp/lib/endorsed/xalan.ja
r:/home/medimg/pablo/jwsdp-1.3/jaxp/lib/endorsed/xercesImpl.jar:/home/medimg/pablo/jwsdp-1.3/jaxrpc/lib/jaxrpc-api.jar:/home/medimg/pablo/jwsdp-1.3/jaxrpc/lib/jaxrp
c-spi.jar:/home/medimg/pablo/jwsdp-1.3/jaxrpc/lib/jaxrpc-impl.jar:/home/medimg/pablo/jwsdp-1.3/saaj/lib/saaj-api.jar:/home/medimg/pablo/jwsdp-1.3/saaj/lib/saaj-impl
.jar:/home/medimg/pablo/jwsdp-1.3/jwsdp-shared/lib/relaxngDatatype.jar:/home/medimg/pablo/jwsdp-1.3/jwsdp-shared/lib/xsdlib.jar:/home/medimg/pablo/jwsdp-1.3/jwsdp-s
hared/lib/jax-qname.jar:/home/medimg/pablo/jwsdp-1.3/apache-ant/lib/ant.jar:/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/${compile.classpath}
BUILD FAILED
file:/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/build.xml:98: wscompile failed
I took a look into the etc/config.xml file and the path location of HelloWorldService.wsdl is fine as follows
"/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/HelloWorldService.wsdl"
BUT.. after "ant build", the path in th config.xml file automatically change for:
"/home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld//home/medimg/pablo/jwsdp-1.3/jaxrpc/samples/HelloWorld/etc/HelloWorldService.wsdl"
Anybody knows how to solve this problem
HELP !!!
J.PabloHi,
I guess you need some changes in your build script.
One solution would be to specify correct value for location attribute in your config.xml and then
uncomment the call to "edit-config" target as show below in your build.xml file:
<target name="generate-server" depends="prepare">
<!--antcall target="edit-config">
<param name="config.rpcenc.file" value="${config.rpcenc.file}"/>
</antcall-->
-Amol -
PROBLEM WITH LENGTH OF IBOOKS SAMPLE...
My book was just picked up by iBooks through Smashwords but iBooks has published my entire text as a Sample. They left the rest of the book but it is just a directory...Please advise. I do not have contact info for iBooks and I realize that I am not supposwd to contact them directly. However, I do want to submit an alternate sample.
Thank you so much for any help.I agree. I will follow up with them again. They are a great help with ebook publishing but this is a problem....They ask for an approved sample length which is what they have on their site but said they have no control over the sample size used by iBooks...
Thank you again. -
Problem with rollback in EJB and CMT
Hello,
I faced a problem in my application that I really do not understand (but I really would like to). How can I trigger a rollback of a transaction that is container-managed (CMT)? I know that any system exceptions are supposed to be handled by the container automatically and will cause a transaction rollback when they are thrown from an enterprise bean method. My Problem now is that I'm unable to make this work in my application.
Consider a situation like this:
The ManageEntityBean holds a simple save() method that creates an instance of EntityA and another of EntityB. Both instances store an arbitrary number (here 10). After this, the entityManger (injected from the container) is asked to make these instances persistent. EntityB is mapped with a "unique" constraint, so any attempt to store the same number twice will cause an SQL Exception.
First time when the save() method is invoked, the instances aEntity and bEntity are made permanent in the database. Second time when the save() method is invoked, the database throws an exception because bEntity is violating the unique constraint. What I would expect now is a complete rollback of the whole transaction. Instead, only bEntity has not been made permanent, but aEntity has.
What's wrong with this code?
@Stateless
public class ManageEntityBean implements ManageEntity {
@PersistenceContext
private EntityManager entityManager;
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void save() {
try {
EntityA aEntity = new EntityA(10);
EntityB bEntity = new EntityB(10);
entityManager.persist(aEntity);
entityManager.persist(bEntity);
} catch (Exception e) {
throw new EJBException(e);
@Entity
public class EntityA implements java.io.Serializable {
@Id
@GeneratedValue
private long id;
@Column(name="NUMBER")
private int number;
public EntityA() {}
public EntityA(int number) {
this.number = number;
@Entity
public class EntityB implements java.io.Serializable {
@Id
@GeneratedValue
private long id;
@Column(name = "NUMBER", unique = true)
private int number;
public EntityB() {}
public EntityB(int number) {
this.number = number;
}I found two related topics in this forum but still I didn't find the solution yet.
[Enterprise JavaBeans - CMT and JDBC|http://forums.sun.com/thread.jspa?forumID=13&threadID=525651]
and
[ Forums - A CMT Session Bean Does Not Maintain the Transaction Correctly| http://forums.sun.com/thread.jspa?forumID=13&threadID=161512]
Maybe anyone can give me a hint. Help is very much appreciated
ChristophThank you for your input!
The save() method is simply invoked from the test applications main() method:
public class Test {
public static void main(String[] args) {
JndiUtil<ManageEntity> jndiUtil = new JndiUtil<ManageEntity>();
ManageEntity handler = jndiUtil.lookupBeanContext("ManageEntityBean", ManageEntity.class);
handler.save();
}Btw. I use Hibernate as persistence provider and JBoss 4.2.2.GA as application server.
For clarity I attach some lines of the debug logging that is produced when the test application is getting started for the second time:
### open Session
17:44:00,555 DEBUG *[SessionImpl] opened session at timestamp: 5007498610909184*
17:44:00,555 DEBUG [AbstractEntityManagerImpl] Looking for a JTA transaction to join
17:44:00,555 DEBUG [JDBCContext] successfully registered Synchronization
17:44:00,555 DEBUG [AbstractEntityManagerImpl] Looking for a JTA transaction to join
17:44:00,555 DEBUG [AbstractEntityManagerImpl] Transaction already joined
### invoke em.persist(aEntity)
17:44:00,555 DEBUG [AbstractSaveEventListener] executing identity-insert immediately
17:44:00,555 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
17:44:00,555 DEBUG *[ConnectionManager] opening JDBC connection*
17:44:00,555 DEBUG [SQL]
/* insert de.zippus.domain.EntityA
17:44:00,556 INFO [STDOUT] Hibernate:
/* insert de.zippus.domain.EntityA
17:44:00,558 DEBUG [IdentifierGeneratorFactory] Natively generated identity: 2
17:44:00,559 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
17:44:00,559 DEBUG [ConnectionManager] aggressively releasing JDBC connection
17:44:00,559 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: >0)]
### invoke em.persist(bEntity)
17:44:00,559 DEBUG [AbstractSaveEventListener] executing identity-insert immediately
17:44:00,559 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
17:44:00,559 DEBUG [ConnectionManager] opening JDBC connection
17:44:00,559 DEBUG [SQL]
/* insert de.zippus.domain.EntityB
17:44:00,560 INFO [STDOUT] Hibernate:
/* insert de.zippus.domain.EntityB
17:44:00,561 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
17:44:00,561 DEBUG [ConnectionManager] aggressively releasing JDBC connection
17:44:00,561 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: >0)]
17:44:00,561 DEBUG [JDBCExceptionReporter] could not insert: [de.zippus.domain.EntityB] [* insert de.zippus.domain.EntityB */ insert into >ENTITY_B (NUMBER) values (?)]
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Duplicate entry '10' for key 2
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
17:44:00,563 WARN [JDBCExceptionReporter] SQL Error: 1062, SQLState: 23000
17:44:00,563 ERROR [JDBCExceptionReporter] Duplicate entry '10' for key 2
17:44:00,563 DEBUG [AbstractEntityManagerImpl] mark transaction for rollback
17:44:00,563 ERROR [ManageEntityBean] Caught exception: javax.persistence.EntityExistsException: >org.hibernate.exception.ConstraintViolationException: could not insert: [de.zippus.domain.EntityB]
17:44:00,563 ERROR [ManageEntityBean] Exception Cause: org.hibernate.exception.ConstraintViolationException: could not insert: >[de.zippus.domain.EntityB]
17:44:00,564 DEBUG *[ManagedEntityManagerFactory] ************** closing entity managersession *************** Up to now I'm not that experienced in reading and understanding this kind of logging, but what I can see is, that there is a transaction that spans the whole unit of work and that this transaction is marked for rollback. I think that's quite a good thing, isn't it?
But what really puzzles me here is, that both calls of em.persist() result in an opening of a jdbc connection and an immidiate execution of a database insert. Tell me if I'm wrong, but is this really the right place to happen?
For what reason soever hibernate thinks it has to make these instances permanent, no matter if there is already a session that is taking care of this. If so, I might deal with a wrong hibernate configuration, I checked, but I can't find anything..
What do you think?
Thanks in advance!
Christoph -
Problem with the SOAP adapter !
Hi!
We are trying to use a WebServices from XI.
In the WSDL file that we have imported and use'd in
our mapping the information about the soap header look's
like this :
<wsdlsoap:header message="impl:serviceRequest" part="toCountry" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="fromCountry" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="language" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="customerCodeOwner" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="customerCode" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="userId" use="literal" />
<wsdlsoap:header message="impl:serviceRequest" part="userPassword" use="literal" />
But then the message leave the SOAP adapter
it looks like this:
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Header/>
<SOAP:Body>
<ns1:serviceRequest xmlns:ns1='http://www.dnbnordic.com/brg/NRGDecisionSupportDSC/wsdl'>
<nRGDecisionSupportDSCRequest>
<ns2:criteria xmlns:ns2='http://www.dnbnordic.com/brg/NRGDecisionSupportDSC/request'>
<ns2:socialSecurityNumberApplicant>XXXXXXXXXX</ns2:socialSecurityNumberApplicant>
<ns2:conversationCode>X</ns2:conversationCode>
</ns2:criteria>
</nRGDecisionSupportDSCRequest>
<toCountry>XX</toCountry>
<fromCountry>XX</fromCountry>
<language>XX</language>
<customerCodeOwner>SYD9001</customerCodeOwner>
<customerCode>XXXXXXX</customerCode>
<userId>XXXX</userId>
<userPassword>XXXXXX</userPassword>
</ns1:serviceRequest>
</SOAP:Body>
</SOAP:Envelope>
The SOAP header info. is in the body !
Ofcourse the message fails !!
Any ideas ??
//StigHi Stig,
Although specified in the WSDL 1.1 spec, the use of soap:header is quite rare.
And having a soap header consisting of multiple parts and not referring to single XSDL element is a bit in conflict with the document/literal approach.
Bottom line: please try and convince your business partner to not use the soap:header trick and stick to standard document/literal web services.
Kind regards, Guy Cretgs -
Problems with running the interop sample
Hi,
I can't seem to run the .NET client that is supplied with the interop samples
in the workshop that demonstrates the use of a .NET client with an asnyc WebLogic
web service. Everytime I run the .NET client, it prompts me to save a file called
"ConversationClient.asmx" and if I open it, its opened in VS .NET. Any ideas/suggestions?
Thanks,
AugustAugust,
The readme.html which is present in the samples/interop/dotNet directory
provides detailed instructions for running that example. Please follow the
steps mentioned in there, and let me know if you face any issues.
Regards,
Anurag
"August" <[email protected]> wrote in message
news:3e56b164$[email protected]..
>
Hi,
I can't seem to run the .NET client that is supplied with the interopsamples
in the workshop that demonstrates the use of a .NET client with an asnycWebLogic
web service. Everytime I run the .NET client, it prompts me to save a filecalled
"ConversationClient.asmx" and if I open it, its opened in VS .NET. Anyideas/suggestions?
>
Thanks,
August -
Problems with @Id in EJB 3.0
I am still learning how to use EJB 3.0s completely. I have found that in order to use a sequence you set up your ejb like such
@Id(generate=SEQUENCE,generator="SEQ_ADRESSE_GEN")
@SequenceGenerator(name="SDS_PAIR_RESULTS_SEQ_GEN", sequenceName="SDS_PAIR_RESULTS_SEQ",allocationSize=1)
@Column(name="PAIR_RESULT_ID", nullable = false)
private Long pairResultId;
But JDeveloper won't compile it because it doesn't expect the generate= in the @Id anoation.
According to http://java.sun.com/javaee/5/docs/api/javax/persistence/Id.html there shouldn't be one either. What am I doing wrong? Thanks!Try this:
@SequenceGenerator(name="SDS_PAIR_RESULTS_SEQ_GEN", sequenceName="SDS_PAIR_RESULTS_SEQ",allocationSize=1)
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SEQ_ADRESSE_GEN")
@Column(name="PAIR_RESULT_ID", nullable = false)
private Long pairResultId;
In EJB 3.0 final the @Id annotation has no parameters (see 9.1.8 of the EJB 3.0, Java Persistence API).
--olaf -
Problem with meal order sdk sample (using c++ to define business logic)
Hi there,
I'm trying to use meal order udo sample from sdk but i cannot register .dll extension. it gives me Invalid dll path or name [User-Defined Object - Extension Name] error.
What am i doing wrong?
Thanks in advanceThanks but I was asking about something else. Maybe I wasn't precise.
I'm trying to develop udo as extension written in c+. There is such a possibility. You can compile it into dll and then upon creating new object from sap b1 ui you link to that dll. Again this is written in c+ not c# or vb. But when I link that dll I get errror message that I posted in my previous message.
Again I'm talking about this way to build udo objects -
UDO - DLL (1)
Thanks in advance -
Apache-soap Problem with WLS 5.1sp9
I have problem with WLS 5.1sp9.
My environment is the following :
jaf-1.0.1
javamail-1.2
soap-2.2
xerces-1.4.4
and I want to call EJB.
So, I write some EJB and deploy it.
And rpcrouter work!!
Success to deploy the Service.
But I run into problem with calling this ejb.
This error is the following.
SOAP-ENV:Server.BadTargetObjectURI
Unable to resolve target object: BC2_BoardSync
please, help me.
here's my example..
ps.
sorry for my poor English..T_T
[ws5.10.zip]
[vb.zip]I have problem with WLS 5.1sp9.
My environment is the following :
jaf-1.0.1
javamail-1.2
soap-2.2
xerces-1.4.4
and I want to call EJB.
So, I write some EJB and deploy it.
And rpcrouter work!!
Success to deploy the Service.
But I run into problem with calling this ejb.
This error is the following.
SOAP-ENV:Server.BadTargetObjectURI
Unable to resolve target object: BC2_BoardSync
please, help me.
here's my example..
ps.
sorry for my poor English..T_T
[ws5.10.zip]
[vb.zip] -
Problem with Stateful EJB in JBOSS
Hi,
J have a problem with invoking stateful EJB methods from my web application deployed in Jboss 4.0.5.GA both. The same EJB with WebLogic functions perfectly, instead with Jboss it often throws the following exception:
ERROR [org.jboss.ejb.plugins.LogInterceptor]
EJBException in method: public abstract java.lang.String
infrastruttura.server.ejb.sessionproxy.SessionProxy.getCodiceGruppo() throws
java.rmi.RemoteException:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:283)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy83.getCodiceGruppo(Unknown Source)
at org.apache.jsp.jsp.main_jsp._jspService(main_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2008-02-27 20:19:54,458 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[PitagoraOlo].[jsp]]
Servlet.service() for servlet jsp threw exception
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with
different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy83.getCodiceGruppo(Unknown Source)
at org.apache.jsp.jsp.main_jsp._jspService(main_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: Application Error: tried to enter Stateful
bean with different tx context, contextTx: TransactionImpl:XidImpl[FormatId=257,
GlobalId=pitjb01/305, BranchQual=, localId=305], methodTx:
TransactionImpl:XidImpl[FormatId=257, GlobalId=pitjb01/306, BranchQual=,
localId=306]
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:283)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
... 47 more
Is there someone can help me?
thanks forward.We got resolved it through bea. This is a know problem of WLS6.1 Sp4. Bea has provided
us with a patch, after which every thing seems to be working fine.
Please open a case with bea mentioning the CR092146. You can read the description
of this CR on internet.
This will certainly solve your problem.
Bob Butkus <[email protected]> wrote:
>We are experiencing the same issue. Did you ever get this resolved?
Maybe you are looking for
-
Customer Service Issue - Aberdeen Union Sq
I've been having issues with battery of my iphone 5 for a few weeks now but due to the nature of my job I've not been able to get into the store until Sunday. I was told they were fully booked so booked an appointment for this evening at 6:30. The gu
-
Oracle: Problem creating package via CF
G'day I've got a <cfquery> that creates a package header, another that creates the body, and then a <cfstoredproc> which calls one of the procedures in the package. I am getting this error, when my code comes to execute the procedure: [Macromedia][Or
-
PDF Size jumps when printing to Adobe PDF printer redirected vs. locally installed
I have a Server 2008 R2 setup to run Sage Peachtree as a RemoteApp. RemoteApp is configured to pass local drives and printers through to the server for end user ease. When you print an invoice (or any file from Peachtree) to the Adobe Acrobat X "Ad
-
Getting SOAPExceptionImpl while invoking JAX-RPC Service
Hi, I am using Static Stub to invoke a service . Both the Client and and Service are deployed on same Tomcat. Service is quite simple that display the Greeting message but when I am calling a service it throws the following exception.. java.rmi.Remot
-
Number copy from DMS to Authocad
Hi, Is it possible in sap dms, that once the dms document number is generated, it can be automatically transferred or paste on to the autocad drawing. Regards, Punam