Problem deploying webserviceclient.jar on 6.1 sp1
Hi, I am having trouble deploying a Web Service client on 6.1 sp1.
We are waiting for 7.1 sp1 to upgrade.
I'm using the JAX-RPC stuff from webserviceclient.jar from 7.0.0.1.
I deployed my code in a .war file that includes webserviceclient.jar, and
the .jar that clientgen generated.
When my code gets to the line marked below, it chokes hard (it doesn't even
seem to throw an exception).
// Setup the global JAX-RPC service factory
System.setProperty( "javax.xml.rpc.ServiceFactory",
"weblogic.webservice.core.rpc.ServiceFactoryImpl");
// Execute the Web Service
String reportName = "CustomerHasLicensed";
String[] arguments = new String[1];
try {
logger_.logInfo(CLASSNAME,METHOD,"in try block");
AuthHeader authHeader = new
AuthHeader("sysname","4354lkjasdfasdf234");
logger_.logInfo(CLASSNAME,METHOD,"created AuthHeader");
arguments[0] = "100";
// ***** THIS IS THE LINE WHERE IT CHOKES ****
SystemReports_Impl test = new SystemReports_Impl();
logger_.logInfo(CLASSNAME,METHOD,"Created impl");
SystemReportsSoap soap = test.getSystemReportsSoap();
logger_.logInfo(CLASSNAME,METHOD,"got soap");
Reports reports = soap.getReports(reportName, arguments,
authHeader);
logger_.logInfo(CLASSNAME,METHOD,"fired webservice");
String head = reports.getHead();
logger_.logInfo(CLASSNAME,METHOD,"got header");
String body = reports.getBody();
String foot = reports.getFoot();
logger_.logInfo(CLASSNAME,METHOD,"##### head:"+head+"
#####body:"+body+ " ####foot:"+foot);
catch (Exception e) {
logger_.logError(CLASSNAME,METHOD,e.toString());
throw new ProgramException(e);
The only thing that I can think of is that it can't find the wsdl or xml (it
is in the .jar) -- like a class loader problem or something.
Any ideas?
Thanks!
Mike
Thanks for the response.
Is there any workaround?
That is pretty lame since the documentation encourages redistributing
webservicesclient.jar.
You'd think that with that type of encouragement it would run on the last
version of WLS.
Mike
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]..
WLS 7.0 client can not run on 6.1 due to conflict in the
some util classes. Sorry about that.
I filed CR085341.
regards,
-manoj
"Mike" <[email protected]> wrote in message
news:[email protected]..
I also tried adding webservices.jar to the .war, but that didn't help.
Any ideas?
Can you run this stuff on 6.1?
Similar Messages
-
Intermittent problem deploying .jar files
OC4J 9.0.2
Seemingly random, I get this error when I deploy a jar file
Auto-deploying MyJar.jar (No previous deployment found)... Error compiling
MyOC4J/j2ee/home/applications/MyApp/MyApp.jar: Syntax error in source
To deply a jar file I do the following:
Copy the .jar file to /applications/MyApp/ directory
Delete the contents of /application-deployments/MyApp/MyJar.jar/
Start OC4J
The only way around this I have found is to keep restarting OC4J until it works, so the same .jar file will sometimes work and sometimes not.
I have copied the same .jar file to four different OC4J environments and have had one work and three fail. Then I restart the three and have two of those work and one fail. Then I had to restart that one three more times until it worked.
Any ideas as of what might be happening??I just tried the command you mentioned to start OC4J but I still get that problem.
It's really weird because I have had this process of deployments working for months with no problem, then all of a sudden it started acting up.
I don't think anything has changed but there must be something. I just don't know where to look.
any other suggestions?
-Isaac -
Unable to deploy a jar on WEBLOGIC 8
Hi everybody,
I have a problem to deploy a jar file on my server IOException ....
Informations :
Solaris 8
WEBLOGIC 8 SP1
ORACLE 9.0.2
Best regards,
Alain.
The time this task was completed.
Exception: Exception:weblogic.management.ApplicationException: prepare failed
for ReferenceDataEJB.jar Module: ReferenceDataEJB.jar Error: Exception preparing
module: EJBModule(ReferenceDataEJB.jar,status=NEW) Unable to deploy EJB: ReferenceDataEJB.jar
from ReferenceDataEJB.jar: Compiler failed executable.exec at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
java.io.IOException: Compiler failed executable.exec at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:505)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364) at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372) at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)Hello,
Thanks a lot for your answer
This step alone work very well. So i have supected and bad domaine configuration
because I have deployed the same application onto another machine and everything
was good (and the OS is the same).
On the production machine (where there is a problem), i have check BEA_HOME, WL_HOME,
JAVA_HOME and everything is good.
Have you another tip for me ?
Regards,
Alain.
"Deepak Vohra" <[email protected]> wrote:
>
Compile ReferenceDataEJB.jar with ejbc before deploying the jar file.
"Compiler failed executable.exec at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)"
is a ejbc error.
thanks,
Deepak
"GREGOIRE Alain" <[email protected]> wrote:
Hi everybody,
I have a problem to deploy a jar file on my server IOException ....
Informations :
Solaris 8
WEBLOGIC 8 SP1
ORACLE 9.0.2
Best regards,
Alain.
The time this task was completed.
Exception: Exception:weblogic.management.ApplicationException: prepare
failed
for ReferenceDataEJB.jar Module: ReferenceDataEJB.jar Error: Exception
preparing
module: EJBModule(ReferenceDataEJB.jar,status=NEW) Unable to deployEJB:
ReferenceDataEJB.jar
from ReferenceDataEJB.jar: Compiler failed executable.exec at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468)at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
java.io.IOException: Compiler failed executable.exec at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:505)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:364)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468)at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1275)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:151) -
Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper
Hey guys,
Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and I followed the http://dev2dev.bea.com/pub/a/2006/01/wls-jdeveloper.html?page=1 tutorial so far. But when it came time to deploy the ejb to the server, I am getting this funky error:
ERROR: ejbc found errors while processing the descriptor for C:\oracle\jdeveloper\jdev\mywork\WeblogicApp\EchoEJB\deploy\ejb1.jar:
ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml': XML document does not appear to contain a properly formed DOCTYPE header
Honestly I am confused now...any one encounter that error?
Thanks for all replies.
CheersSo I added the DOCTYPE and now I get another error. And that is as follows:
ERROR: Error from ejbc: Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 219. Attribute "xmlns:xsi" must be declared for element type "ejb-jar".
It seems that when the EJB is created, then it automatically creates the appropriate ejb-jar.xml and for some reason I guess the one it is creating this time is not good enough for Weblogic because first the DOCTYPE was missing and then after inserting the DOCTYPE I am getting the above error. Any help would be appreciated. This is the first time I am using Weblogic and this is a rather disheartening amount of progress I have made since last night! ;(
Thanks in advance for any help. If I am doing something silly please point it out so I can learn!
Cheers,
Surya -
Problems deploying a simple EJB
I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
Generating EJBHome and EJBObject on the server...
Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
^ Info: 3 errors
And if I use an int instead of the XMLDocument parameter, everithing's right.
Can anybody submit a no-paranormal solution ?
Thanks.
GHParameter passing in EJB must implement Serializable. One way to solve this is:
1. Define a new class which implements
Serializable.
2. Place whatever you want to pass inside
this class.
3. Now use the new class as your parameter.
eg.
public class Params implements java.io.Serializable {
String p1;
XmlDocmuent xdoc;,
etc, etc
Your program now have to use the class Params for parameter passing.
Hope this helps.
Tam
null -
Deploying a JAR file from Forte
I have written an application using the Forte CE IDE. Now I want to deploy it to other PCs running JRE1.3, so I used the JAR packager to create a JAR file and I ensured the manifest had the Start class specified. Unfortunately, when I try to run this application via the command line on either another machine or my own (outside of Forte), I get the message
Exception in thread "main" java.lang.NoClassDefFoundError: <start class name>
I have used the "java -jar" command.
The start class is in the jar file.
The start class name is in the manifest.
I must have missed something, and I am at my wits end.
Has anyone else had similar problems deploying applications from Forte? Or can anyone offer advice or a link to some comprehensive documentation on how to accomplish deployment? The help function in Forte was no help at all.
Thanks.Are you sure that there is a newline after your lines in the manifest?
Hit return after each line to make sure! -
How to deploy custom jar (forms PJC) file in R12.1.x
Hi ,
we need use forms pjc connecting to client pc'com port with ebs form,
we can deploy with ias standard form server , but EBS 's appsweb.cfg
was automatically generated by AutoConfig , so i don't know how to config our jar in EBS env.
i had search document in metalink for serval days , can some help us to solve this problem !
thanks for any help...
BR,NolemHi all, I am confronted by the same problem.
I have manually added my custom Jar files to the archive=2 section of the appsweb.cfg config file in the $INST_TOP/ora/10.1.2/forms/server and placed the Jar files in the $COMMON_TOP/java/classes/oracle/apps/fnd/jar.
I know that this is probably not the way to go, as autoconfig will override these settings, but my first priority is getting these jar files to run in Apps Forms without errors. I got as far as that my forms don't error out anymore but not all of them are working as they should. I am also trying to deploy the WebUitl utility in EBS R12. As far as I can tell this should be supported by Oracle as it comes as part of a standard Apps Installation (except for the Jacob.jar) it can be found in: $ORACLE_HOME/forms/webutil directory and the WEBUTIL_CONFIG reference to the webutil.cfg file can be found in the default.env in the same directory as the appsweb.cfg.
If you want to look at some very good examples of PJC's there is a very good blog: http://forms.pjc.bean.over-blog.com/. You can also look at Francois Degrelle's blog on Read/Write files on the client machine without Webutil.
Nevertheless information on how to deploy and run these PJC's under EBS is scarce. Metalink offers no solutions except very outdated notes.
I would appreciate to know how to properly deploy these jar files in EBS
I am also on 12.1.x. Btw there are more threads on this subject on OTN but most are outdated (threadID=1067917, 686329, 4246525) and don't provide the solution for EBS R12.1.x.
Any help would be appreciated. -
Hello,
I am building JSP client for webservice. The client is deployed on tomcat 4.x.
This time fortunatelly clientgen swallowed WSDL and I got client code generated.
I added webserviceclient.jar to WEB-INF/lib. However I am getting java.lang.NoClassDefFoundError:
weblogic/xml/schema/binding/SequenceCodecBase Exception.
Indeed webserviceclient.jar has no weblogic/xml/schema/binding/SequenceCodecBase
class defined. Do I have bad webserviceclient.jar or am I doing something wrong?
Also I've found weblogic/xml/schema/binding/SequenceCodecBase in weblogic.jar
so I added it to my application. Now I am getting
java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:328)
at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:304)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
What am I doing wrong?
Thanks,
AlekseyIt looks like you have the JAXM suns RI registered. We do not
work with other JAXM impls. To set your MessageFactory to
use WLS jaxm impl do the following:
System.setProperty( "javax.xml.soap.MessageFactory",
"weblogic.webservice.core.soap.MessageFactoryImpl" );
before you invoke the web service method.
regards,
-manoj
"Aleksey" <[email protected]> wrote in message
news:3c9a43f7$[email protected]..
>
Hello,
I am building JSP client for webservice. The client is deployed on tomcat4.x.
This time fortunatelly clientgen swallowed WSDL and I got client codegenerated.
I added webserviceclient.jar to WEB-INF/lib. However I am gettingjava.lang.NoClassDefFoundError:
weblogic/xml/schema/binding/SequenceCodecBase Exception.
Indeed webserviceclient.jar has noweblogic/xml/schema/binding/SequenceCodecBase
class defined. Do I have bad webserviceclient.jar or am I doing somethingwrong?
>
Also I've found weblogic/xml/schema/binding/SequenceCodecBase inweblogic.jar
so I added it to my application. Now I am getting
java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
atweblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
atweblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
.java:328)
atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
.java:304)
atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
>
What am I doing wrong?
Thanks,
Aleksey -
Error at the time of Deploying EJB jar on JBoss
Hi:
I am going to create web service using EJB3.0.
But at the time deploying file on JBOss i am getting following error:
12:22:51,856 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:544)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at org.jboss.wsf.common.JavaUtils.getPackageName(JavaUtils.java:533)
at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:700)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processWebService(JAXWSWebServiceMetaDataBuilder.java:313)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:107)
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:76)
at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:70)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.start(DeploymentAspectManagerImpl.java:144)
at org.jboss.wsf.container.jboss50.BareWSFRuntime.start(BareWSFRuntime.java:66)
at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:48)
at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:115)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
... 18 more
12:22:51,897 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS IN ERROR: Name -> Error
vfszip:/home/crayom/projects/tools/jboss-5.0.0.CR2/server/default/deploy/TempConvert.jar -> java.lang.StringIndexOutOfBoundsException: String index out of range: -1So, can any body tell me the solution of this problem?
Thank You.AnupDesai wrote:
Hi:
After adding require packages also i am getting the same error.
Well, if it's not a version problem with either the JDK (installing java 6 on top of a java 5 distribution) or the Jars (like JAXB) , then , as pointed out, you might have written your Web service using a packageless class:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at org.jboss.wsf.common.JavaUtils.getPackageName(JavaUtils.java:533)Restart a new project in your IDE with a packaged ws from the start, and see if it works. -
Problems with client.jar - generated from webservices toolkit from JDK 1.1.7
We have deployed a web application using the webservices in WL 6.1 using JDK 1.3.1.
The clients were able to successfully access the servlet it generated and download
the client.jar. Unfortunately this client.jar seems to be dependent on JDK 1.2
and beyond. It seems to use java.util.Map class in the JNDI-SOAP SPI.
Is there any workaround or fix to this problem, so this jar can be used from a
JDK 1.1.7 env?.
Our objective is to use WL 6.1 EJB's from WL 4.5.1 using Webservices. Are there
any known problems with this approach (Ofcourse other than this).
Thank you.
Dora Potluri
Here is the stack trace from using the client.jar
Class not found java.lang.ClassNotFoundException: java.util.Map
[Root exception is java.lang.ClassNotFoundException: java.util.Map]javax.naming.
NamingException: Class not found java.lang.ClassNotFoundException: java.util.Map
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.naming.NamingException.<init>(Compiled Code)
at weblogic.soap.http.SoapContext.throwNamingException(Compiled Code)
at weblogic.soap.http.SoapContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at weatherEJB.WeatherBean.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled
Co
de)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.ex
ecute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Fri Sep 21 10:47:12 CDT 2001:<I> <EJB> Transaction: '1001087185816_1' rolled bac
k due to EJB exception:Yes, there is an expectation that the client jar will be run on JDK 1.3x. WLS 6.1 is certified on JDK 1.3x only. This
applies to the WebServices client as well. For details on platform support see
http://e-docs.bea.com/wls/platforms/index.html
Thanks,
Jim
Jim Rivera
Product Manager, WebLogic Server
BEA Systems, Inc.
Dora Potluri wrote:
I started testing using the client.jar generated by webservices WL 6.1 and found
that it uses reflection API interfaces that are not available til JDK 1.3. Is
there an expectation that the clients of Webservices are all going to be JDK 1.3.X.
Here is the stack trace we get.
java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
at weblogic.soap.http.SoapContext.lookup(SoapContext.java:76)
at javax.naming.InitialContext.lookup(InitialContext.java:280)
at weatherEJB.WeatherBean.getTemp(WeatherBean.java:106)
at weatherEJB.WeatherBeanEOImpl.getTemp(WeatherBeanEOImpl.java:47)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(WeatherBeanEOImpl_WLSkel.java:90)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:261)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:56)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(BasicRequestDispatcher.java:166)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code) -
Get server instance name without deploying weblogic.jar to client
I use wlclient.jar with my client. Using weblogic.jar instead causes the
size of the deployment package of my client to go from 4 meg to 34 meg
(roughly). I don't want full MBean functionality, all I want to do is find
out what the server instance name is. Surely there's a way to do this.Hi,
Weblogic provides you a way to create client jar files so that the complete weblogic.jar
doesn't need to be downloaded to the client. The tool is called verboseToZip.
See
http://e-docs.bea.com/wls/docs70/adminguide/utils.html#1117405
hope this helps, pat
"BEA" <[email protected]> wrote:
I am trying to deploy my client application on a standalone windows machine
and do not wish to deploy weblogic.jar with the client deployment. Is
there
any way of allowing my clients to use Weblogic JNDI without having to
deploy
weblogic.jndi.WLInitialContextFactory.class (and its associated classes.
I find it hard to believe that everyone who is developing on weblogic
distributes this JAR file to their customers with their client
applications....?
Can you use something other than weblogic.jndi.WLInitialContextFactory
such
as the sun jndi provider instead....?
If anyone can shed some light on this deployment problem it would be
much
appreciated.....even if its simply 'thats just the way you have to do
it
!......will save me time trying to get other solutions to work...!
TIA -
Could not deploy an JAR archive because JNDI name is already in use.
Hi,
I have a problem.
When the WebLogic server starts, it cannot deploy an EJB application because a
JDNI name is already in use.
What can I do to unregister this name ?
If it is possible a better description is step by step.
The WebLogic server, when starts, prints the next lines:
<18/01/2002 12:35:24 PM GMT-06:00> <Error> <J2EE> <Error deploying EJB Component
: sui_ejb
weblogic.ejb20.EJBDeploymentException: Error deploying stateless EJB; nested exc
eption is:
javax.naming.NameAlreadyBoundException: Can't rebind anything but a repl
ica-aware stub to a name that is currently bound to a replica-aware stub; remain
ing name ''
javax.naming.NameAlreadyBoundException: Can't rebind anything but a replica-awar
e stub to a name that is currently bound to a replica-aware stub; remaining name
<<no stack trace available>>
>
<18/01/2002 12:35:24 PM GMT-06:00> <Error> <J2EE> <Error deploying application
s
ui_ejb: Could not deploy: 'sui_ejb.jar': JNDI name in use
>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer> <WebLogic Server
st
arted>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer> <ListenThread liste
ning on port 7001, ip address 157.253.174.63>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer> <SSLListenThread
li
stening on port 7002, ip address 157.253.174.63>
In advance, thanks for your help.
- Ricardo De la Rosa (Colombia)Cameron,
I resolve the problem using your clues.
The problem was that I include the ejb.jar file in the .ear file and I copy the
ejb.jar file in the applications directory and it is redundant.
It is only needed to include the ejb.jar file in the .ear file.
Best regards,
- Ricardo (Colombia)
"Cameron Purdy" <[email protected]> wrote:
In that case, check the config.xml and make sure that the app isn't being
deployed in ways that you weren't expecting ... just double-check
everything. Sometimes the console does weird things.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
Cameron,
I think that it isn't the problem because yesterday it deploys correctly,and
today I didn't touch the compilation options.
Thank you !
If you have another idea I really appreciate it.
Best regards,
- Ricardo (Colombia)
"Cameron Purdy" <[email protected]> wrote:
Hi Ricardo,
Certain items are not replica-aware, such as JMS queues, so they must
be
deployed to a single target in the cluster. It sounds like your EJB
is
compiled with an option that turned off the replica aware stubs.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you shouldbe!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have a problem.
When the WebLogic server starts, it cannot deploy an EJB applicationbecause a
JDNI name is already in use.
What can I do to unregister this name ?
If it is possible a better description is step by step.
The WebLogic server, when starts, prints the next lines:
<18/01/2002 12:35:24 PM GMT-06:00> <Error> <J2EE> <Error deployingEJB
Component
: sui_ejb
weblogic.ejb20.EJBDeploymentException: Error deploying stateless
EJB;
nested exc
eption is:
javax.naming.NameAlreadyBoundException: Can't rebind anythingbut
a repl
ica-aware stub to a name that is currently bound to a replica-awarestub;
remain
ing name ''
javax.naming.NameAlreadyBoundException: Can't rebind anything but
a
replica-awar
e stub to a name that is currently bound to a replica-aware stub;remaining name
<<no stack trace available>>
>
<18/01/2002 12:35:24 PM GMT-06:00> <Error> <J2EE> <Error deployingapplication
s
ui_ejb: Could not deploy: 'sui_ejb.jar': JNDI name in use
>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer> <WebLogicServer
st
arted>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer>
<ListenThread
liste
ning on port 7001, ip address 157.253.174.63>
<18/01/2002 12:35:26 PM GMT-06:00> <Notice> <WebLogicServer><SSLListenThread
li
stening on port 7002, ip address 157.253.174.63>
In advance, thanks for your help.
- Ricardo De la Rosa (Colombia) -
I am having a problem with signed jar and deploy in html
get this error on the page
self signed
/dist/testfx.html
JavaFX application could not launch due to system configuration. See java.com/javafx for troubleshooting information.Unsigned jar works perfectly but has security and permission issues when using classes.
This was working in beta 45Can you post an example project that demonstrates the problem? There were changes to the ant tasks and netbeans support around B45 that could cause problems depending on which version of the SDK and NetBeans you have. Similarly, if you wrote ant scripts prior to B44 and then use them with a later build you could have problems. And of course, if you're producing the Jar file and deployment artifacts without using the provided ant tasks (for example, using the normal ant jar task) you'll have problems.
I've verified that this works as expected in the FX 2.0 GA release using ant from the command line, and with the NetBeans 7.1 beta release using the FX 2.0 GA release. -
Problem deploying an EJB that uses the JCE 1.2.1 api
We are deploying a JAR file containing all EJBs of our application on
Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
fully included at the end of the message).
We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
We have isolated each EJB, so that one EJB is pack into is own JAR
file. We were able to deploy all EJBs but the one using the JCE 1.2.1
api.
Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
As I mentionned earlier, everything works fine with SP8 ?
Any help will be greatly appreciated.
Patrick
Complete error dump:
Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
jar file, or does not
contain a valid bean
weblogic.ejb.common.DeploymentException: DeploymentException opening
JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
exception is:
weblogic.ejb.deployment.JarLoadException - with nested
exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
weblogic.ejb.common.DeploymentException: could not read JAR file
'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
--------------- nested within: ------------------
weblogic.ejb.deployment.JarLoadException - with nested exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)We are deploying a JAR file containing all EJBs of our application on
Weblogic 5.1 SP4 and we're getting a DeploymentException (which is
fully included at the end of the message).
We have no problem deploying the same JAR file on WebLogic 5.1 SP8.
We have isolated each EJB, so that one EJB is pack into is own JAR
file. We were able to deploy all EJBs but the one using the JCE 1.2.1
api.
Is there any issue using JCE 1.2.1 within an EJB under WL SP4 ?
As I mentionned earlier, everything works fine with SP8 ?
Any help will be greatly appreciated.
Patrick
Complete error dump:
Fri Dec 21 14:06:07 EST 2001:<E> <EJB> Could not deploy:
'C:/weblogic/myserver/eportal/EpcWSHBilling.jar': file is not a valid
jar file, or does not
contain a valid bean
weblogic.ejb.common.DeploymentException: DeploymentException opening
JAR file C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested
exception is:
weblogic.ejb.deployment.JarLoadException - with nested
exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
weblogic.ejb.common.DeploymentException: could not read JAR file
'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:213)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
--------------- nested within: ------------------
weblogic.ejb.deployment.JarLoadException - with nested exception:
[weblogic.ejb.common.DeploymentException: Problem creating deployment
C:/weblogic/myserver/eportal/EpcWSHBilling.jar from
C:\weblogic\myserver\eportal\EpcWSHBilling.jar; nested exception is:
weblogic.ejb.common.DeploymentException: could not read JAR
file 'C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar'
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
weblogic.ejb.common.DeploymentException: loading EJB JAR
C:\weblogic\myserver\tmp_deployments\ejbjar2596.jar; nested exception
is:
java.lang.NullPointerException
java.lang.NullPointerException
at weblogic.ejb.internal.depend.ClosedSet.skipClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.addClass(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findConstants(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.run(ClosedSet.java,
Compiled Code)
at weblogic.ejb.internal.depend.ClosedSet.findDependencies(ClosedSet.java:53)
at weblogic.ejb.internal.EJBJarLoader$ClosedSetAdapter.findDependencies(EJBJarLoader.java:220)
at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java,
Compiled Code)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:211)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:182)
at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:164)
at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java:172)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:122)
at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:112)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:305)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:313)
at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55) -
Why i canot deploy cd.jar when using JBoss on linux
Hi,friends
I have successfully deploy the interest.jar on my linux box.But when deploying cd.jar it tells me that "Could not deploy file:/usr/local/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/cd.jar,
Cause:org.jboss.ejb.DeploymentException: Bean com.web_tomorrow.cd.CDBean not found within this application."
The source directory is described as below:
src
|_com
| |_web_tomorrow
| |_cd
| | (CD.class,CDBean.class,CDHome.class,
| | CDCollection.class,
| | CDCollectionBean.class,
| | CDCollectionHome.class,
| | CDExistsException.class)
| |_jspcd
| |_utils()
|_MATA-INF
| (ejb-jar.xml,jboss.xml)
|_WEB_INF
On src directory
#jar -cvf cd.jar com/web_tomorrow/cd/*.class \
com/web_tomorrow/utils/*.class META-INF/
When i cp the cd.jar to deploy directory jboss automatically begin deploying the cd.jar and echo the above message and stop deploying.
Here is my configuration file:
[ejb-jar.xml]
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<display-name>MusicCDs</display-name>
<enterprise-beans>
<entity>
<description>Models a music CD</description>
<ejb-name>CDBean</ejb-name>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-class>com.web_tomorrow.cd.CDBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-field><field-name>id</field-name></cmp-field>
<cmp-field><field-name>title</field-name></cmp-field>
<cmp-field><field-name>artist</field-name></cmp-field>
<cmp-field><field-name>type</field-name></cmp-field>
<cmp-field><field-name>notes</field-name></cmp-field>
<primkey-field>id</primkey-field>
</entity>
<session>
<description>Models a music CD collection</description>
<ejb-name>CDCollectionBean</ejb-name>
<home>com.web_tomorrow.cd.CDCollectionHome</home>
<remote>com.web_tomorrow.cd.CDCollection</remote>
<ejb-class>com.web_tomorrow.cd.CDCollectionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/CD</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-link>com.web_tomorrow.cd.CDBean</ejb-link>
</ejb-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>CDBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
[jboss.xml]
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<container-configurations />
<resource-managers />
<enterprise-beans>
<session>
<ejb-name>CDCollectionBean</ejb-name>
<jndi-name>cd/CDCollection</jndi-name>
<configuration-name></configuration-name>
</session>
<entity>
<ejb-name>CDBean</ejb-name>
<jndi-name>cd/CD</jndi-name>
<configuration-name></configuration-name>
</entity>
</enterprise-beans>
</jboss>
I am frustrated now! Any help is greatly appreciated!
Best Regards!$(jboss_home)/log/server.log told me that i should have a look at Container.java first.So i openned it and found the following code snippet:
Logger.debug("Binding an EJBReference "+ref.getName());
if (ref.getLink() != null) {
// Internal link
Logger.debug("Binding "+ref.getName()+" to internal JNDI source: "+ref.getLink());
Container refContainer = getApplication().getContainer(ref.getLink());
if (refContainer == null)
throw new DeploymentException ("Bean "+ref.getLink()+" not found within this application.");
OK,the DeploymentException is thrown because the refContainer is null.
Have a look at getContainer method below:
public Container getContainer(String name)
return (Container)containers.get(name);
where,
containers is a HashMap which holds the mapping between ejbName and container.So the reason is the jboss cannot find corresponding container from the given parameter - name.Its value is ref.getLink()'s return value,com.web_tomorrow.cd.CDBean.
open the ejb-jar.xml,i found link is defined as below:
<ejb-ref>
<ejb-ref-name>ejb/CD</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-link>com.web_tomorrow.cd.CDBean</ejb-link> <- wrong
</ejb-ref>
After i changed it to <ejb-link>CDBean</ejb-link> the jboss can deploy cd.jar normally.
The problem itself isnot complicate but it demonstrated that the open source is good for you to fix the bug up!
BTW,in order to making it easy to fix the bug, the jboss binay version is built with debug infomation.So you can rebuid it without any debug infomation.
<target name="compile" depends="prepare">
<mkdir dir="${build.classes.dir}"/>
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="on" <- change it to "off"
deprecation="off"
optimize="on"
includes="org/**"
excludes="**/activation/**, **/*BeanInfo.java"
>
<classpath refid="classpath"/>
</javac>
</target>
Thanks for all your help!
Maybe you are looking for
-
Today I updated to iTunes 7.7 (I have Windows XP Home Edition Service Pack 3) and every time I close iTunes, I see this dialog window: iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle
-
Standard Purchase Order document printing
Hi All, I need to modify the standard purchase order document and need to print a custom note in that based on the organization criteria. i have downloaded the .xsl file and as i am not very familiar with that i cant understand the code. 1)could you
-
How to use common resource bundle across all the development components ?
Hi, I am working on SAP NetWeaver Developer Studio - JAVA How to use common resource bundle across all the development components ? Description : I have a requirement of creating a resource bundle (resource.properties) and use that common resource bu
-
I have a G4 Power Mac without the original monitor - I am using a monitor from a PC that does not have a built in webcam. I have also tried a "Blue" brand webcam that was received as a gift for me that does not work...and went to best buy to buy a co
-
Hello, I am trying to create table with filterbar. I am using my own reneder/editor for the table header which consist of JButton and JTextField on JPanel. After a character is typed to JTextField the table model is filtered and fireTableDataChanged