Deploying EJB in J Developer
hai,
am using Jdeveloper version 10.1.3.2
i created a JSF page and passed a Dataobject to the java file CreateTaskClient.java
I created a session bean and there are two xml files that the Ide generated ejb-jar.xml and orion-ejb-jar.xml.
am pasting the data i entered in these xml files
ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee">
<enterprise-beans>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>SessionEJB</display-name>
<ejb-name>SessionEJB</ejb-name>
<home>projsamp.backing.SessionEJBHome</home>
<remote>projsamp.backing.SessionEJB</remote>
<local-home>projsamp.backing.SessionEJBLocalHome</local-home>
<local>projsamp.backing.SessionEJBLocal</local>
<ejb-class>projsamp.backing.SessionEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>SessionEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
and in the orion-ejb-jar.xml file i put
<orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd"
schema-major-version="10" schema-minor-version="0">
<enterprise-beans>
<session-deployment name="SessionEJB" location="ejb/createtask"/>
</enterprise-beans>
</orion-ejb-jar>
and from the CreateTaskClient.java I lookup for the ejb.The code is
public class CreateTaskClient {
public SessionEJBLocalHome createClientMethod() {
SessionEJBLocalHome sessionEJBLocalHome = null;
System.out.println("entering the createClienMethod of SessionLocalHome");
try {
Context ic;
ic = new InitialContext();
System.out.println("entering the createClienMethod of SessionLocalHome1");
Object obj=ic.lookup("java:comp/env/ejb/createtask");
sessionEJBLocalHome =
(SessionEJBLocalHome)PortableRemoteObject.narrow(obj,SessionEJBLocalHome.class);
System.out.println("entering the createClienMethod of SessionLocalHome" +
"obtaining the context of the bean");
} catch (NamingException ne) {
ne.printStackTrace();
System.out.println("naming exception handled");
return sessionEJBLocalHome;
on running the code i get the following error
Checking that EJBs were successfully deployed in embedded OC4J...
**** Warning: The EJB SessionEJB was not found via an InitialContext lookup. Error encountered: SessionEJB not found.
**** Warning: Not all EJBs were successfully deployed. The EJB application may fail during testing.
**** Please use the EJB Verifier to check your EJB modules for errors by right-clicking on ejb-jar.xml and choosing 'Verify Enterprise Beans'
Mar 20, 2007 10:42:08 AM oracle.j2ee.jndi.JndiMessages warningInvalidEJBReference
WARNING: EJB Reference "ejb/createtask" could not be resolved. Allowing J2EEContext creation to continue anyway
07/03/20 10:42:08 javax.naming.NameNotFoundException: java:comp/env/ejb/createtask not found in JSFApp-ProjSamp-webapp
Should any other files be configured or is there any error the way i configured the file[b]
Hi Shay:
I saw this tutorial in a viewlet before, but te problem is, that the code generated by the wizard in my case, it's a little diferent:
public static void main(String [] args) {
try {
final Context context = getInitialContext();
final EstacionTrabajoModuleHome estacionTrabajoModuleHome =
(EstacionTrabajoModuleHome) PortableRemoteObject.narrow( context.lookup( "EstacionTrabajoModuleBean" ), EstacionTrabajoModuleHome.class );
RemoteEstacionTrabajoModule remoteEstacionTrabajoModule;
// remoteEstacionTrabajoModule = estacionTrabajoModuleHome.create( env );
// Call any of the Remote methods below to access the EJB
// remoteEstacionTrabajoModule.removeEntity( entityDTO );
// remoteEstacionTrabajoModule._getDetallesPagosXInstXCorte( serie, identificador, inpaCveInstrumento, estatusActivo );
// remoteEstacionTrabajoModule._getParametrosGenerales( claves );
// remoteEstacionTrabajoModule._getListaValores( dominios );
System.out.println( remoteEstacionTrabajoModule._getTiposFormas( ) );
The line with bold style is generated with comments, and is the initialization that let me use the module, but when I remove the comments, I don't know how to initialize de env variable to use this client with the ejb in the embedded oc4j.
thnks in advance.
Alex.
Similar Messages
-
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 in deploying EJB 2.0 on OracleAS 10.1.2
Hi All,
This issue is related to a customer issue. I am trying to deploy an ejb-web application developed using JDeveloper 10.1.3 on OracleAS 10.1.2. The deployment fails with following error:
Deployment failed: Nested exception
Resolution:
Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Unknown persistence-manager tag: pm-properties. deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Unknown persistence-manager tag: pm-properties
I guess this is some kind of version issue with some component in the application. I have tried to stick to EJB 2.0, J2EE 1.3 and J2SE 1.3 Versions in JDev, but to no avail.
What would be the resolution to this issue? How can I deploy an EJB-JSF application developed using JDev 10.1.3 on OracleAS 10.1.2?
Regards,
AnandHi All,
This issue is related to a customer issue. I am trying to deploy an ejb-web application developed using JDeveloper 10.1.3 on OracleAS 10.1.2. The deployment fails with following error:
Deployment failed: Nested exception
Resolution:
Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Unknown persistence-manager tag: pm-properties. deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Unknown persistence-manager tag: pm-properties
I guess this is some kind of version issue with some component in the application. I have tried to stick to EJB 2.0, J2EE 1.3 and J2SE 1.3 Versions in JDev, but to no avail.
What would be the resolution to this issue? How can I deploy an EJB-JSF application developed using JDev 10.1.3 on OracleAS 10.1.2?
Regards,
Anand -
Deploying EJBs [b]not[/b] in an EAR
Is it possible to deploy EJBs in 9.0.3 without the EJB jars belonging to an EAR? It looks like the deployment tools can handle deploying EARs and WARs only. The reason I ask is that I'm looking into porting a large component based EJB/web service application that currently runs in JBoss. Under JBoss, the EJBs are deployed in jars and the web services in WARs. Shared classes are deployed into the lib directory. I realize this is non-standard, but it facilitates development and administration since individual components (EJBs) can be added or redeployed without redeploying the whole EAR. Our business model is to build solutions (application) out of components and it would be somewhat painful to have to create and maintain very large EAR files for each solution.
Hi Jeff,
I believe the recommended way to do this in OC4J is to build a hierarchy of parent (and child) applications. Make an EAR (i.e. application) that only contains EJBs, and make it the parent application of your web services application. You can find more details in the documentation.
Good Luck,
Avi. -
Deploying EJB on weblogic 5.1
Hi All:
I am relatively new to EJBs and their deployment. I hv developed a small EJB application with a session bean. When I try to compile it using "java weblogic.ejbc", I get the following error:
java weblogic.ejbc j.jar s.jar
org.xml.sax.SAXException: Could not locate a local resource corresponding to public Id -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN.
Is the XML DOCTYPE header correct?
at weblogic.ejb.deployment.xml.EJBEntityResolver.resolveEntity(EJBEntityResolver.java:55)
at com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
at com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
at weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:151)
at weblogic.ejbc.runBody(ejbc.java:298)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.ejbc.main(ejbc.java:353)
--------------- nested within: ------------------
Received SAXException from Sun Parser: org.xml.sax.SAXException: Could not locate a local resource corresponding to public Id -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN.
Is the XML DOCTYPE header correct?
at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
at weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:151)
at weblogic.ejbc.runBody(ejbc.java:298)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.ejbc.main(ejbc.java:353)
ERROR: Received SAXException from Sun Parser: org.xml.sax.SAXException: Could not locate a local resource corresponding to public Id -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN.
Is the XML DOCTYPE header correct?
My ejb-jar.xml file looks like below:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>IDBean</ejb-name>
<home>IDCommon.IDHome</home>
<remote>IDCommon.ID</remote>
<ejb-class>IDCommon.IDBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<enterprise-beans>
<assembly-descriptor>
<security-role>
<role-name></role-name>
</security-role>
<method-permission>
<role-name></role-name>
<method>
<ejb-name>IDBean</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
<container-transaction>
<method>
<ejb-name>IDBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I would deeply appreciate any help/advise in this regard as my head is really blowing up..
Thanx a ton in advance..
Rgds,
JHi,
Can you try deploying it by chaning the content of the DOCTYPE element to
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>.
and let me know whether you are able to deploy after that or not. you can mail me at [email protected]
Regards
Mahe -
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 -
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)>
Maybe you are looking for
-
Usage of - BAPI_POSRVAPS_SAVEMULTI3
Hello Frnds, Im using this above mentioned BAPI to create Stock Transfer Requisition in APO and send it to R3. Presently I could successfully create an Order in APO but it is not ciffing across to R3 automatically. I have to manually reconcile the or
-
Function Module Production order created via Variant Configuration conditio
Hi, I am looking for a function module which can provide me with the following information. the component selected inĀ a production order and the corresponding VC condition which forced this selection in the production order. Any help appreciated. Th
-
Custom Painting in Swing Panels.
I am trying to implement a custom painted panel on a JFrame. The panel performs custom painting in a separate thread. In additon, the frame also adds other swing panels (containing standard components) dynamically as per menu selection. I use box lay
-
What/where is my "home page"?
What/where is my "home page"?&
-
Filter rows in Entity Object Cache
Hi Jeveloper version:Studio Edition Version 11.1.2.1.0 I have a table employees with columns employee_id, first_name, last_name, last_opr. i have created entity object employees_eo. my entity cache should contain only rows which are not deleted(i.e l