Deployed ejb in 5.1.0
Hi
I deployed in WebLogic 5.1.0 but after restart server and console (and restore saved properties of last console) my deployed applications isn't on console.
Why?
Could you tell me, please?
Thank you for your attentions!
mladen
you might contact the weblogic vendor to verify their compatiblity with the oracle jdbc drivers.
Similar Messages
-
Error while deploying EJB 1.1 on Weblogic 10.3.0.0
I am trying to deploy an EJB (1.1) jar which is succesfully running on JBoss5.0 on WebLogic 10.3.0.0; I am getting following Error while deploying the jar on weblogic;
Exception preparing module: EJBModule(ejb_RemoteServicesEjb) Unable to deploy EJB: RemoteServicesEjb.jar from RemoteServicesEjb.jar: There are 1 nested errors: weblogic.ejb.container.compliance.ComplianceException: In EJB com.package.ejbimpl.RemoteServicesEjb, the throws clause for ejbCreate method ejbCreate() contains exceptions that are NOT in the throws clause of the corresponding home interface method. at weblogic.ejb.container.compliance.HomeInterfaceChecker.checkCreateMethodsMatchBeanCreates(HomeInterfaceChecker.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:337) at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:286) at weblogic.ejb.container.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:952) at weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:920) at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:246) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:552) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:519) at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:393) at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:715) at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:618) at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1154) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Does anybody knows what must be going wrong?
Can't I deploy EJB 1.1 jar directly on Weblogic 10.3.0.0 or I need to change or configure something before doing it?Does the ejbCreate() method of the com.package.ejbimpl.RemoteServicesEjb class have an exception on it's throws clause that is not present on the ejbCreate() method of your home interface? If so, does the error go away if you add the exception to the home's ejbCreate() method? In general, you want checked exceptions in a throws clause to match between the interface declaration of the method and the implementation of the method on the bean class.
- Matt -
Problem deploying EJB to Oracle 8.1.7
Hi,
I'm facing a problem while deploying EJB on to Oracle 8i.
I'm using oracle 8.1.7 under Linux (RedHat 7.0).
Also I'm using JDeveloper 3.2.2 (working under Windows NT)
JDeveloper came with JDK version 1.2.2, but I'm using
JDK 1.3(to use connection pooling).
Classes compiled and says it is error free.
But when I try to deploy this it gives me an error message saying
Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
Info: 1 errors
*** Errors occurred while deploying the EJB to 8i JVM ***
ie. When I start deploying
after it generates descriptors it displays message as below
Reading Deployment Descriptor...done
Verifying Deployment Descriptor...done
Gathering users...done
Generating Comm Stubs...................................................done
Compiling Stubs...done
Generating Jar File...done
Loading EJB Jar file and Comm Stubs Jar file...done
Generating EJBHome and EJBObject on the server...
Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
Info: 1 errors
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
Later I copied aurora_client.zip from Linux on to JDeveloper version.
Still I get the same error.
Any idea?
Expecting your valuable suggestions.
Thanks,
Rajeev Mancheril.
nullI am wondering about the classes in the database. This is from metalink.
SELECT count(*)
FROM dba_objects
WHERE object_type LIKE '%JAVA%';
If the above query returns a number < 4000, the installation was not
successful.
The query below checks for any invalid Java classes using a Java stored procedure:
SELECT dbms_java.longname(name)
FROM sys.obj$
WHERE type# = 29 and status != 1;
If the above query fails or returns any rows, then something is wrong with the JVM installation.
You can also test the Jserver by using the examples in
$OH/javavm/demo/examples/corba/basic/helloworld
or
$OH/javavm/demo/examples/ejb/basic/helloworld
To compile classes in the database
Alter Java Class " Name of the java class" compile;
Linda
null -
Hi ,
I have an EJB A which is already deployed when the server starts. A second ejb
B is deployed at a later time.
EJB A calls methods in EJB B. I use reflection in EJB A to call methods in EJB
B.
I get a NoSuchMethodException when I call the create method in the Home object
of EJB B. If I add the ejb jar file to the classpath before the server starts
then it is able to resolve the method.
The problem is the EJBs which are called from EJB A is not known before the server
is started. New EJBs can be deployed at runtime and EJB A should be able call
the methods in newly deployed EJB's.
I also use the URLClassLoader to load all the classes in the jar file of the newly
deployed EJB in EJB A and it still gives a NoSuchMethodException because it cannot
resolve the stub class.
My error log is shown below.
This is an urgent issue.
Thanks
SampleConnector::testEJBService called
In Key : P1 Value : Input2
In Key : P3 Value : Input1
In Key : P2 Value : SomeConst
Loaded Class = com.bizwave.samples.rejb.SampleRemote
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getDeclaredMethod(Class.java:1151)
at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
ctorEJB.java:181)
at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
viceStepMgr.java:91)Hi,
I am attaching a test case. This test case actually demonstrates a security bug.
Unzip the file and modify the StartWeblogic.cmd in domainA to not refer to the
SampleRemoteEJB.jar in the classpath. If u run the test client under the client
dir u will see a NoSuchMethodException.
The reason is it is not able to load the dynamically generated stub file.
Initially I had the getMethod and it didn't work. You might have to modify the
files to suit ur env. The easier way is to run th edomain wizard and create 2
domains. Run the servers in development mode and place the jars under the applications
dir
Thanks
Rajesh Mirchandani <[email protected]> wrote:
Do you have any old EJB classes in your classpath? Did you recompile
your EJBs if you
upgraded from a old release or a Service pack?
Bob Lee wrote:
Hmmmm. That's an interesting problem.
Why is it giving you a NoSuchMethodException instead of a
ClassNotFoundException?
Can you post the code from SampleConctorEJB.java, line 181?
Try changing your call to getDeclaredMethod() to getMethod().
getDeclaredMethod() searches only the class you called it on, whereas
getMethod() traverses to the superclasses and interfaces. You onlyneed
getDeclaredMethod() when you're accessing a nonpublic method.
Not sure if this will help, but it's worth a shot.
Bob
Vasu wrote:
Hi ,
I have an EJB A which is already deployed when the server starts.
A second ejb
B is deployed at a later time.
EJB A calls methods in EJB B. I use reflection in EJB A to call methodsin EJB
B.
I get a NoSuchMethodException when I call the create method in theHome object
of EJB B. If I add the ejb jar file to the classpath before the serverstarts
then it is able to resolve the method.
The problem is the EJBs which are called from EJB A is not knownbefore the server
is started. New EJBs can be deployed at runtime and EJB A shouldbe able call
the methods in newly deployed EJB's.
I also use the URLClassLoader to load all the classes in the jarfile of the newly
deployed EJB in EJB A and it still gives a NoSuchMethodExceptionbecause it cannot
resolve the stub class.
My error log is shown below.
This is an urgent issue.
Thanks
SampleConnector::testEJBService called
In Key : P1 Value : Input2
In Key : P3 Value : Input1
In Key : P2 Value : SomeConst
Loaded Class = com.bizwave.samples.rejb.SampleRemote
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getDeclaredMethod(Class.java:1151)
at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
ctorEJB.java:181)
at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
viceStepMgr.java:91)
Rajesh Mirchandani
Developer Relations Engineer
BEA Support
[user_projects.zip] -
Error while deploying WC application: Unable to deploy EJB
Hi All,
we are getting the below error quite frequently, whenever we deploy the application to server:
[03:35:14 AM] Weblogic Server Exception: weblogic.application.ModuleException: Exception preparing module: EJBModule(CAWrapperEJB.jar)
Unable to deploy EJB: CAService from CAWrapperEJB.jar:
[EJB:011055]Error deploying the EJB 'CAService(Application: CAPortal, EJBComponent: CAWrapperEJB.jar)', the JNDI name 'CAPortal-CAPModel-CAService2#com.lexisnexis.service.CAService' is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed.
[03:35:14 AM] Caused by: java.lang.Throwable: Substituted for missing class [EJB - 11055]Error deploying the EJB 'CAService(Application: CAPortal, EJBComponent: CAWrapperEJB.jar)', the JNDI name 'CAPortal-CAPModel-CAService2#com.lexisnexis.service.CAnService' is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed.
[03:35:14 AM] See server logs or server console for more details.
-to solve this issue we just delete the cache and restart the Managed server.
Please tell me what is the cause of this error and how can we fix it permanently, as restarting the server everytime is not very convenient.
TIA,
BobThe content of "weblogic-ejb-jar.xml" present in code is:
<?xml version = '1.0' encoding = 'windows-1252'?>
<weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
</weblogic-ejb-jar> -
Error while deploying EJB on OAS 4.0.8.1
I have installed OAS 4.0.8.1 on Windows NT 4.0 with Support Pack 6a. The java compiler used is from JDK 1.1.6 provided with OAS.
The following error occurs while deploying EJB on OAS. The error is the same while deploying through the node manager or by using oasdeploy command line utility.
java.lang.NoClassDefFound Error
Code generation for
D:\\orant\\ows\\upload\\425BrowserBean.jar failed!
Creating registration files.....
Unable to expand attribute Unable to load from C:\temp\src425\oasbae.properties
Please let me know the possible causes for non deployment of the bean on OAS.
nullWith JDev 3.1, we only support deployment to OAS 4.0.8.2.
JDev 3.0 supported deployment to OAS 4.0.8.1.
I believe most of this restriction is due to internal changes in OAS that we were only able to integrate with 3.1. -
Weblogic Server 8.1 giving weird error while deploying EJB
Hi All,
I am using weblogic8.1 server with service pack 4.
I am trying to deploy an entitybean (ejb2.0) specification. I am getting following error.
==========================================================
[Deployer:149033]preparing application sum.LDN on MyServer
[Deployer:149033]failed application sum.LDN on MyServer
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application sum.LDN on MyServer.:
Exception:weblogic.management.ApplicationException: prepare failed for sumEJB.jar
Module: sumEJB.jar Error: Exception preparing module: EJBModule(sumEJB.jar,status=NEW)
Unable to deploy EJB: sumEJB.jar from sumEJB.jar:
[EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
In bean com.csfb.csar.sum.ods.TradeSetlmtMapping, the abstract method, getHandle(), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses.
In bean com.csfb.csar.sum.ods.TradeSetlmtMapping, the abstract method, getEJBHome(), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses.
In bean com.csfb.csar.sum.ods.TradeSetlmtMapping, the abstract method, isIdentical(javax.ejb.EJBObject), does not correspond to any container-managed field and is not implemented in the bean class or any of its superclasses.
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:784)
at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1339)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
==========================================================
This is very surprising error I am getting. Because getHandle(), getEJBHome(), isIdentical() are no where declared in business interface extending EJBObject.
Descriptor File is perfectly fine.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
<weblogic-rdbms-bean>
<ejb-name>com.csfb.csar.sum.ods.TradeSetlmtMapping</ejb-name>
<data-source-name>com.csfb.csar.ODSDataSource</data-source-name>
<table-map>
<table-name>ODS_CNS_ELIGIBLE_TRADES</table-name>
<field-map>
<cmp-field>auditCreatedDate</cmp-field>
<dbms-column>STAMP_ADD_DTIME</dbms-column>
</field-map>
<field-map>
<cmp-field>auditCreatedBy</cmp-field>
<dbms-column>PROCESS_ADD_ID</dbms-column>
</field-map>
<field-map>
<cmp-field>transId</cmp-field>
<dbms-column>TRANS_ID</dbms-column>
</field-map>
<field-map>
<cmp-field>transVersId</cmp-field>
<dbms-column>TRANS_VERS_ID</dbms-column>
</field-map>
<field-map>
<cmp-field>transItemSequenceId</cmp-field>
<dbms-column>TRANS_ITEM_SEQUENCE_ID</dbms-column>
</field-map>
<field-map>
<cmp-field>externalReference</cmp-field>
<dbms-column>EXTERNAL_REFERENCE</dbms-column>
</field-map>
<field-map>
<cmp-field>setLmtStatus</cmp-field>
<dbms-column>SETLMT_STATUS</dbms-column>
</field-map>
<field-map>
<cmp-field>setLmtDate</cmp-field>
<dbms-column>SETLMT_DATE</dbms-column>
</field-map>
<field-map>
<cmp-field>stampUpdateDtime</cmp-field>
<dbms-column>STAMP_UPDATE_DTIME</dbms-column>
</field-map>
</table-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Please Help..<p>I could not find any documentation that suggested LIMIT or OFFSET where supported. Some of our developers needed to use limit, in the end all I could suggest was using a dynamic query and setting the maximum number of results see here
.</p>
<p>
Hussein Badakhchani</br>
</p> -
Log4j error while deploying EJB 3.0 in weblogic 10
Hi Friends,
I am migrating an application EJB from 2.0 to 3.0 annotations.
The log4j-1.2.3 for the project is configured in this way, it is added to the startWeblogic.cmd in weblogic 10 as :
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties
Now i am trying to deploy my EAR file that contains an EJB 3.0 Project and a Web project , it gives following error while deployment.
###<Jan 29, 2010 8:21:01 PM EST> <Warning> <Deployer> <ALPITSWXP00001> <wlw-pricingdev-s10> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264814461242> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Exception preparing module: EJBModule(streamlinesuspenseEJB.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The error was:
org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V.
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.lang.NoSuchMethodError: org.apache.log4j.spi.RootCategory.<init>(Lorg/apache/log4j/Level;)V
at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
at org.apache.log4j.Logger.getLogger(Logger.java:124)
at com.jmfamily.common.log.LogManager.getLogger(LogManager.java:33)
at com.jmfamily.common.log.LogManager.getLogger(LogManager.java:42)
at com.jmfamily.jma.contract.ejb.SuspendedContractSOBean.<clinit>(SuspendedContractSOBean.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processWLSAnnotations(EjbAnnotationProcessor.java:1699)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processWLSAnnotations(EjbDescriptorReaderImpl.java:346)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:192)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1198)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:380)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
If i remove the "set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties" from the weblogic statrup script and install the EAR it will be installed , but the logger is not initialized.
If the option "set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=log4j.properties" added to the startup script and i deployed the OLD EJB 2.0 app , it is installed successfully, but it didnt let me deploy EJB 3.0 app.
I am hitting my head around it for a day now, no success so far..
Please provide you suggestions , thanks a lot to all in advance.
Thanks
SachinDoes the ejbCreate() method of the com.package.ejbimpl.RemoteServicesEjb class have an exception on it's throws clause that is not present on the ejbCreate() method of your home interface? If so, does the error go away if you add the exception to the home's ejbCreate() method? In general, you want checked exceptions in a throws clause to match between the interface declaration of the method and the implementation of the method on the bean class.
- Matt -
Fail to Deploy EJB to JServer in JDeveloper3.0
I had a trouble to deploy the EJBHotel example.
My env is Oracle8i in NT with JDeveloper3.0.
All IIOP & JDBC connection is fine. The user
had JAVAUSERPRIV and even JAVASYSPRIV.
The test under Published JServer Objects
has Public Read, Write and Execute Permission.
However I got the following message when I
deploy from JDeveloper (both JDK1.2 and JDK1.1).
Can someone give me direction to figure out
what privilege it needed?
Thank you very much.
*** Executing deployment profile D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem1.prf ***
*** Generating archive file D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Deploying the EJB to JServer ***
EJB deployment argument list:
"C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.0\bin;C:\Program Files\Oracle\JDeveloper 3.0\java\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.0\java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdeveloper.zip;D:\Download\Program Files\Oracle\JDeveloper 2.0\myclasses;C:\Program Files\Oracle\JDeveloper 3.0\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbcl2.0.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jgl3.1.0.jar;C:\Program Files\Oracle\JDeveloper 3.0\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\dacf.zip;C:\Program Files\Oracle\JDeveloper 3.0\infobus\lib\infobus.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\LW_pfjbean.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbodatum.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jbomt.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jboremote.zip;C:\Program Files\Oracle\JDeveloper 3.0\lib\jndi.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0\jdbc\lib\oracle8.1.5\classes111.zip"
oracle.aurora.ejb.deployment.GenerateEjb
-u
travel
-p
travel
-s
sess_iiop://localhost:2481:gspc
-republish
-keep
-temp
TEMP
-descriptor
"D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.dd"
-generated
"D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystemGen.jar"
"D:\Download\OneEJBHotelSample\oneEJBHotel\HotelSystem.jar"
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
Copyright (c) 1997-1998 Borland International. All Rights Reserved.
Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
java.lang.UnsatisfiedLinkError: doPrivileged
at org.omg.CORBA.ORB.getSystemProperty(Compiled Code)
at
at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolI mpl.initializeSession(Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(Compiled Code)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(Compiled Code)
at oracle.aurora.ejb.deployment.GenerateEjb.main(Compiled Code)
*** Errors occurred while deploying the EJB to JServer ***
*** Deployment completed ***
nullI use jbuilder+seblogic 8.1 sp2 to deploy EJB, but
some errors appear in console as follow:
Usage: java weblogic.Deployer [options] [actions]
[File(s)]
where options include:
-adminurl <<protocol>://<server>:<port>>
rt>> Administration server URL:
default iiop://localhost:7001
iiop://localhost:7001
-username <username> user name
name
-password <password> password for the user
user
-userconfigfile <userconfigfile> The user config
nfig file contains the
user security credentials; it
curity credentials; it is administered
by the weblogic.Admin tool
he weblogic.Admin tool
-userkeyfile <keyConfigFile> The users key file;
ile; it is administered
by the weblogic.Admin tool.
e weblogic.Admin tool.
-examples Displays example usage of this
this tool.
-name <application name> Defaults to the basename
name of the deployment
file or directory.
file or directory.
-targets <<target(s)>> A comma separated list of
t of targets for the
current operation. If not
rent operation. If not specified, all
configured targets are used.
ured targets are used. For a new
application, the default target
on, the default target is the
administration server.
administration server.
-deploy Make an application available
able for service.
-redeploy Replace a running application
tion partially or
entirely.
entirely.
entirely.
-undeploy Take an application out of
t of service.
Unrecognized option or flag, -sourcerootforupload
pls tell me the reason,and how to solve this
problem,thanksThe message indicates that you haven't passed the correct arguments on command line. Look at this message "Unrecognized option or flag, -sourcerootforupload" in particular.
I suppose you need to tinker around with JBuilder. Try searching for this problem on Weblogic forum. Someone might have faced this already. -
the following error is encountered although I have created the user escappuser
in the default realm. Any help ?
Unable to deploy EJB: D:\bea8\USER_P~1\domains\EVALGU~1\.\applications\.wlnotdel
ete\wlap24823\inv_ejb.jar from inv_ejb.jar:
weblogic.ejb20.WLDeploymentException: The run-as principal 'escappuser' for EJB
'InvHistoryFtyPoDetailEJB' is not a user in the current realm. The user must exi
st for the EJB to successfully deploy.
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.getRunAsPrincipal(MBe
anDeploymentInfoImpl.java:1039)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeRunAsSettin
gs(MBeanDeploymentInfoImpl.java:830)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymen
tInfoImpl.java:244)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:267)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:83)
at weblogic.j2ee.Application.addComponent(Application.java:319)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:330)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:590)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:568)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:747)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:726)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:458)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:765)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
xy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
ServerMBean_Stub.java:7271)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
s(SlaveDeployer.java:1245)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:397)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:230)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:267)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:83)
at weblogic.j2ee.Application.addComponent(Application.java:319)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:330)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:590)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:568)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:747)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:726)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:458)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:765)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
xy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
ServerMBean_Stub.java:7271)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
s(SlaveDeployer.java:1245)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:397)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:230)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<Mar 9, 2004 10:05:42 AM GMT+08:00> <Info> <EJB> <BEA-010008> <EJB Deploying fil
e: bcInterface_ejb.jar>
<Mar 9, 2004 10:05:42 AM GMT+08:00> <Error> <J2EE> <BEA-160001> <Error deploying
bcInterface_ejb:
Unable to deploy EJB: D:\bea8\USER_P~1\domains\EVALGU~1\.\applications\.wlnotdel
ete\wlap24823\bcInterface_ejb.jar from bcInterface_ejb.jar:
weblogic.ejb20.WLDeploymentException: The run-as principal 'escappuser' for EJB
'JobSchedulerMDB' is not a user in the current realm. The user must exist for
th
e EJB to successfully deploy.
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.getRunAsPrincipal(MBe
anDeploymentInfoImpl.java:1039)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeRunAsSettin
gs(MBeanDeploymentInfoImpl.java:830)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymen
tInfoImpl.java:244)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:267)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:83)
at weblogic.j2ee.Application.addComponent(Application.java:319)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:330)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:590)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:568)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:747)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:726)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:458)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:765)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
xy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
ServerMBean_Stub.java:7271)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
s(SlaveDeployer.java:1245)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:397)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:230)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
Unable to deploy EJB: D:\bea8\USER_P~1\domains\EVALGU~1\.\applications\.wlnotdel
ete\wlap24823\bcInterface_ejb.jar from bcInterface_ejb.jar:
weblogic.ejb20.WLDeploymentException: The run-as principal 'escappuser' for EJB
'JobSchedulerMDB' is not a user in the current realm. The user must exist for
th
e EJB to successfully deploy.
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.getRunAsPrincipal(MBe
anDeploymentInfoImpl.java:1039)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeRunAsSettin
gs(MBeanDeploymentInfoImpl.java:830)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymen
tInfoImpl.java:244)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:267)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:83)
at weblogic.j2ee.Application.addComponent(Application.java:319)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:330)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:590)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:568)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:747)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:726)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:458)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:765)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
xy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
ServerMBean_Stub.java:7271)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
s(SlaveDeployer.java:1245)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:397)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:230)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:267)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:83)
at weblogic.j2ee.Application.addComponent(Application.java:319)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:162)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:330)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:590)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:568)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:240)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:747)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:726)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:458)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
57)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
25)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:765)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
xy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
ServerMBean_Stub.java:7271)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
s(SlaveDeployer.java:1245)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
ava:397)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
e(DeploymentManagerServerLifeCycleImpl.java:230)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)There is a similar command to unix "chmod" under sess_sh, whereby you could do grant permission to the perticular user you act as. I did not encounter this issue since I always use SYS to do it, or as a normal user with JAVASYSPRIV hranted.
-
Unable to see Deployed EJB's in console
I'm having problems seeing my deployed EJB's and servlets on the
console. I'm running WL6.1 SP1.
My ejbs and servlets are in one jar file. This jar file is in
d:/javelin/deployment directory and not in the
bea/wlserver6.0/config/investia/applications directory.
Anyone have any idea on how I can fix this?
Below is my config.xml file.
Thanks,
Ruben
<!--If your domain is active, please do not edit the config.xml
file. Any changes made to that file while the domain is active will
not have any effect on the domain's configuration and are likely to be
lost. If your domain is inactive, you may edit this file with an XML
editor. If you do so, please refer to the configuration DTD. In
general, we recommend that changes to your configuration file be made
through the Administration Console.-->
<Domain
Name="investia"
>
<ApplicationManager
Name="investia"
/>
<Application
Deployed="true"
Name="console"
Path="./config/investia/applications"
>
<WebAppComponent
Name="console"
Targets="javelin"
URI="console.war"
/>
</Application>
<Application
Deployed="true"
Name="certificate"
Path="./config/investia/applications"
>
<WebAppComponent
Name="certificate"
Targets="javelin"
URI="certificate.war"
/>
</Application>
<Security
GuestDisabled="false"
Name="investia"
PasswordPolicy="mypasswordpolicy"
Realm="myRealm"
/>
<Application
Name="javelin.jar"
Path="d:/javelin/deployment"
>
<EJBComponent
Name="javelin.jar"
Targets="javelin"
URI="javelin.jar"
/>
</Application>
<JTA
Name="investia"
/>
<JDBCConnectionPool
CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="1"
MaxCapacity="20"
Name="ejbPool"
Properties="user=javelin;password=javelin;dll=ocijdbc8;server=devo_brutus;protocol=oci8"
Targets="javelin"
URL="jdbc:oracle:oci8:"
/>
<Log
FileName="investia.log"
Name="investia"
/>
<Realm
FileRealm="myFileRealm"
Name="myRealm"
/>
<FileRealm
Name="myFileRealm"
/>
<PasswordPolicy
LockoutEnabled="false"
MinimumPasswordLength="8"
Name="mypasswordpolicy"
/>
<JMSServer
Name="JMSServer-0"
/>
<Application
Name="bob.jar"
Path="d:/javelin/deployment"
>
<EJBComponent
Name="bob.jar"
Targets="javelin"
URI="bob.jar"
/>
</Application>
<Application
Deployed="true"
Name="DefaultWebApp_javelin-1"
Path="./config/investia/applications"
>
<WebAppComponent
Name="DefaultWebApp_javelin"
Targets="javelin"
URI="DefaultWebApp_javelin"
/>
</Application>
<Server
HelpPageURL="/weblogic/javelin/public_html/docs51/adminhelp/"
HttpdEnabled="true"
IdlePeriodsUntilTimeout="65534"
JDBCLogFileName="jdbc.log"
JDBCLoggingEnabled="false"
Name="javelin"
NativeIOEnabled="true"
PeriodLength="6000000"
StdoutEnabled="true"
SystemPassword="password"
ThreadPoolSize="25"
ZACEnabled="true"
ListenPort="11199"
StdoutSeverityLevel="64"
>
<SSL
CertificateCacheSize="3"
Enabled="false"
ListenPort="7002"
Name="javelin"
ServerCertificateChainFileName="config/investia/ca.pem"
ServerCertificateFileName="config/investia/democert.pem"
ServerKeyFileName="config/investia/demokey.pem"
/>
<ServerDebug
Name="javelin"
/>
<KernelDebug
Name="javelin"
/>
<Log
FileMinSize="4096"
FileName="javelin.log"
Name="javelin"
/>
<WebServer
DefaultWebApp="DefaultWebApp_javelin"
HttpsKeepAliveSecs="120"
KeepAliveSecs="60"
LogFileName="access.log"
LoggingEnabled="false"
Name="javelin"
Targets="javelin"
/>
</Server>
</Domain>An added note: In looking into other similar posts, I see instructions to "trash the file: com.apple.finder.plist" in User Library/Preferences. I was going to try that, and reload my preferences, but I do not have that file.
-
Error deploying EJB in weblogic 7.0
Hello
I am trying to deploy EJB 2.0, to Weblogic 7.0 server on IBM machine and i am
getting this following error. Previously I have tested deploying the same EJB
to weblogic 7.0 server on my local PC which based on Windows, and everything seems
Ok.
Unable to deploy EJB: DACEJB.jar from DACEJB.jar:
Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath, /bea/weblogic700/server/bin/tmp_ejbsmeap01ibm7001myserver/-1spvbzuqlvq3z:/bea/weblogic700/server/bin/DACEJB.jar:/usr/java131/jre/lib/rt.jar:/usr/java131/jre/lib/i18n.jar:/usr/java131/jre/classes:/CMS/CORP/config/:/bea/weblogic700:/bea/weblogic700/server/lib/crack.jar:/bea/weblogic700/server/lib/classes12_g.jar:/bea/weblogic700/server/lib/HostMsgDriverV2.1_oracle.jar:/bea/weblogic700/server/lib/aal2wrap.jar:/bea/weblogic
700/server/lib/log4j.jar:/bea/weblogic700/server/lib/Opta2000.jar:/bea/weblogic700/server/lib/xmlx.jar:/bea/weblogic700/server/lib/VelisAuth.jar:/bea/weblogic700/server/lib/jython.jar:/usr/java131/lib/tools.jar:/bea/weblogic700/server:/bea/weblogic700/server/lib/weblogic_sp.jar:/bea/weblogic700/server/lib/weblogic.jar:,
-d, tmp_ejbsmeap01ibm7001myserver/-
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java(Compiled
Code))
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:490)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:793)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1242)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:242)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java(Compiled
Code))
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled
Code))
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled
Code))
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java(Compiled
Code))
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java(Compiled
Code))
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
This may happen because javac is not available to weblogic.
Make sure that PATH environment variable used to start the server includes path to Java SDK bin dir with javac in it.
Regards,
Slava Imeshev
"Jennifer" <[email protected]> wrote in message news:[email protected]...
>
Hello
I am trying to deploy EJB 2.0, to Weblogic 7.0 server on IBM machine and i am
getting this following error. Previously I have tested deploying the same EJB
to weblogic 7.0 server on my local PC which based on Windows, and everything seems
Ok.
Unable to deploy EJB: DACEJB.jar from DACEJB.jar:
Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
/bea/weblogic700/server/bin/tmp_ejbsmeap01ibm7001myserver/-1spvbzuqlvq3z:/bea/weblogic700/server/bin/DACEJB.jar:/usr/java131/jre/lib/rt.jar:/usr/java131/jre/lib/i18n.jar:/usr/java131/jre/classes:/CMS/CORP/config/:/bea/weblogic700:/bea/weblogic700/server/lib/crack.jar:/bea/weblogic700/server/lib/classes12_g.jar:/bea/weblogic700/server/lib/HostMsgDriverV2.1_oracle.jar:/bea/weblogic700/server/lib/aal2wrap.jar:/bea/weblogic>700/server/lib/log4j.jar:/bea/weblogic700/server/lib/Opta2000.jar:/bea/weblogic700/server/lib/xmlx.jar:/bea/weblogic700/server/lib/VelisAuth.jar:/bea/weblogic700/server/lib/jython.jar:/usr/java131/lib/tools.jar:/bea/weblogic700/server:/bea/weblogic700/server/lib/weblogic_sp.jar:/bea/weblogic700/server/lib/weblogic.jar:,> -d, tmp_ejbsmeap01ibm7001myserver/->>> at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java(Compiled> Code))> at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)> at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:490)> at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:793)> at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1242)> at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:242)> at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java(Compiled> Code))> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled> Code))> at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java(Compiled> Code))> at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java(Compiled> Code))> at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java(Compiled> Code))> at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)> -
Error when deploying ejb 3 in weblogic10
Hi,
I'm using the EJB3.0 in weblogic10, just as the following:
remote interface:
com.test.intf
public interface Test{
public void test();
and the impl:
com.test.impl
@stateless
@Remote(Test.class)
public class TestBean implements Test{
public void test{...}
Then I build an ear which including the ejb jar:
Test.ear
|__ejb.jar (including the Test and the TestBean)
|
|__Meta-Inf
And when I deploy the Test.jar to the weblogic 10, the following error occurs:
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unable to load clas
s com.test.impl.TestBean_3u7muo_EmergencyServiceF
uncImpl ]
at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
essionBeanInfoImpl.java:319)
at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeploye
r.java:914)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:
1188)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
loymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
va:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
ava:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.jav
a:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
ntStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
ContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
eateAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
Prepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
epare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
entPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
mentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
pare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
gWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassNotFoundException: com.oracle.ocrt.service.impl.Emerge
ncyServiceFuncBean_3u7muo_TestIntf
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:176)
at weblogic.ejb.container.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.j
ava:540)
at weblogic.ejb.container.deployer.Ejb3SessionBeanInfoImpl.prepare(Ejb3S
essionBeanInfoImpl.java:310)
... 27 more
<2008-9-26 下午08时35分07秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurr
ed in the execution of deployment request with ID '1222432506169' for task '0'.
Error is: 'weblogic.application.ModuleException: Exception preparing module: EJB
Module(test.jar)
Unable to deploy EJB: TestBean from test.jar:
***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
weblogic.application.ModuleException: Exception preparing module: EJBModule(test.jar)
Unable to deploy EJB: TestBean from test.jar:
***** ASSERTION FAILED *****[ Unable to load class com.test.impl.TestBean_3u7muo_TestImpl ]
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
What is the problem? And What can I do?
BTW, if I change the @Remote to @Local, I can deploy the ejb successfully.
In addition, Who knows how to access the ejb3.0 from a standalone client just like access the EJB2.0:
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context cont = new InitialContext(properties);
Obj ref = cont.lookup("???"); //--------------------> What should I write here???
Thanks!Hi,
It's not easy to tell what's wrong with your example.
Maybe you could send me a zip and I'll check when I have some time.
By the way, you're asking a question about the lookup of an EJB3, I wrote an article that covers that topic.
It should give you some interesting input.
http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
Regards. -
How to make jar files availabe for deployed EJBs
Hi,
I'm interested on how to make jar files availabe for deployed EJBs.
My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
classpath, but I think that shouldn't be the way. Is there somthing in the admin
console to make jars available or do I have to insert it in the ear file? And
if so, where do I hve to place it?
Thanks
ClaudiaPut the util.jar in the ear with your ejb jars - at the same level (i.e. in
the root) - but do not include them in the manifest.xml.
Also each ejb jar that refers to util.jar must have util.jar on its internal
classpath in the manifest.
"Claudia" <[email protected]> wrote in message
news:3d537db5$[email protected]..
>
Hi,
I'm interested on how to make jar files availabe for deployed EJBs.
My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
classpath, but I think that shouldn't be the way. Is there somthing in theadmin
console to make jars available or do I have to insert it in the ear file?And
if so, where do I hve to place it?
Thanks
Claudia -
Where can I find the deployed EJB files in Oracle 10g AS(904)
Hello All,
Where can I find the deployed ejb files, stubs and skels in the Oracle 10g (904)
When I try to run my ejb application I m getting following exception:
com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: org.apache.log4j.Logger
I am not sure what is causing this error. I am not using any logging in my EJB. But the logging framework is configured in the application server.
Your input would be a great help to me
Thank youThanks Carty,
I am not creating Connection from EJB. I have a POJO called DBManager that looks for the DB Connection and return that to either EJB or other POJO that requests for Connection.
I am having a private method that get the connection from the DBManager because while writing UnitTest cases I can mockup getting Connection as my Unit test case will be a POJO again..
I have a question here regarding making DBManager as Singleton class. In my current project, I have configured my database in the application server as getting the connection by lookup for datasource through JNDI. It internally maintains all logical connection and always have one physical connection. In such scenario how implementing singleton will be beneficial?
Thank you for answering all my questions. -
Is it possible to deploy EJBs onto Tomcat server
Hi all,
Please advice me if it is possible to deploy EJBs on the Tomcat Server.
If so how to go about it?
Thanks
RanjanNo , it is not possible.Tomcat does not have a
Ejb container.It only has a web container.
Try using free servers like Sun One application server for
deploying your ejb's.
Get back in case of any issues
Maybe you are looking for
-
I have a newsletter that I'm creating in the Page Layout mode. I would like to use a colored background for the entire document. The newsletter is for viewing on the internet so the colored background looks nice - the colored background covers the en
-
Hi In my vendor master additional purchase org data,i had removed plant details.but still in T001W table against the vendor plant is appearing. Could you please guide from where I need to remove this entry. Thanks
-
TS1559 iPhone Wi-Fi settings grayed out
This is the 2nd time my iPhone wifi grayed out. Ever since I update iOS to 6.0.1, the problem keep on going. 1st time restore, wifi back to normal but some game crashing. But 2nd time restore still could not solve the problem. Due to this problem, so
-
Apps in iTunes on Macbook will not update
The Apps in my iTunes on my Macbook do not update anymore. I also have an iMac with iTunes logged in as same account and those apps update like normal. I have not been able to fix it. Also, notmally when you view App Thumbnails in iTunes, if you klik
-
How to reorder MP3 files on MuVo V2
Dear all, Is there any way I can reorder my MP3 files on my MuVo V200 please? I was told by the support staff that MuVo V200 does not support playlist function, and I have to resort to some kind of third party program to give an order number to each