Fail to deploy EJB
I 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>> Administration server URL:
default iiop://localhost:7001
-username <username> user name
-password <password> password for the user
-userconfigfile <userconfigfile> The user config file contains the
user security credentials; it is administered
by the weblogic.Admin tool
-userkeyfile <keyConfigFile> The users key file; it is administered
by the weblogic.Admin tool.
-examples Displays example usage of this tool.
-name <application name> Defaults to the basename of the deployment
file or directory.
-targets <<target(s)>> A comma separated list of targets for the
current operation. If not specified, all
configured targets are used. For a new
application, the default target is the
administration server.
-deploy Make an application available for service.
-redeploy Replace a running application partially or
entirely.
-undeploy Take an application out of service.
Unrecognized option or flag, -sourcerootforupload
pls tell me the reason,and how to solve this problem,thanks
I 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.
Similar Messages
-
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. -
WebLogic 12.1.2 fails when deploying an enterprise application(ear) that contains a ejb in which injected 1) an extension 2)bean with injection of this extension.
The following exception is thrown:
Caused By: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [CdiExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.extension.Bean1.extension].
Possible dependencies [
[Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@1115deb],
Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@ed791f]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:314)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:106)
at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:70)
at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:47)
at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:37)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
Problem can be easily reproduced by a minimal case:
test.ear:
\lib\test-extension-0.0.1-SNAPSHOT.jar
test-ejb-0.0.1-SNAPSHOT.jar
where
test-extension-0.0.1-SNAPSHOT.jar contains:
CdiExtension.java:
package test.extension;
import javax.enterprise.inject.spi.Extension;
public class CdiExtension implements Extension {
private String someString = "Some String";
public String getSomeString() {
return someString;
Bean1.java:
package test.extension;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@ApplicationScoped
public class Bean1 {
@Inject
private CdiExtension extension;
public String get() {
return extension.getSomeString();
test-ejb-0.0.1-SNAPSHOT.jar contains:
EjbBean.java:
package test;
import test.extension.Bean1;
import test.extension.CdiExtension;
import javax.ejb.Stateless;
import javax.inject.Inject;
@Stateless
public class EjbBean {
@Inject
private CdiExtension extension;
@Inject
private Bean1 bean1;
public String getSomeString() {
return extension.getSomeString() + "\n" + bean1.get();
p.s. i seen same problem in community.oracle.com/thread/2577403 , but it happen in "war", not "ear", and seems successfully patched with patch №17424706Hi,
It looks like there is patch exists for this issue.
Patch 17198187
Please try to download from the MOS or try to open a ticket with support.
Regards,
Kal -
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 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> -
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. -
Problem in deploying EJBs (More than 390) in weblogic-BEA says JDK issue!!!
Our application had 390 EJBs before the current build. It was running fine on Weblogic 6.1-SP4 with JDK 1.3.1_08.
In the current build, 3 EJBs were introduced and the Weblogic server started giving deployment problems. We then came across the Weblogic Bug stating the magic Number of 390 and delegating it to a SUN Bug. But, contrary to the SUN bug which says of a OutofMemory issue, we were not getting any OutOfMemory error.
Then, just to test the 390 number, we cut downed on the number of EJBs reducing the number to 388, in a test environment. EJBs got deployed without problem. Then we added 3 EJBs (increasing the EJB count to 391), and Weblogic server started giving Deployment problem in a EJB which was one of the 388 that were running fine earlier.But, now also there was no OutOfMemory error. Then we removed one of the newly added EJBs to bring the EJB count to 390. The Weblogic deployed the EJBs without error(even the one which was giving problem when EJB count was 391).
So, 390 seems to be the number but, contrary to BEA problem ID: 035884 which delegates the problem to SUN Bug ID:4390238 (Incidentally SUN has closed this bug as Non-reproducable), we are not getting any OutOfMemory error.
My questions to the JAVA community are:
1)Is the problem really related to JDK or Weblogic?
2)If it's a problem with JDK, then what should be done to fix it?
==========================================
A deployment error generated is pasted below:
==========================================
java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException: Distributed Management [1 exceptions]
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:559)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Distributed update exception
- remote object: stellar:Location=primary-server,Name=primary-server,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@1d5ebc
- actionName: addDeployment
- params: [Ljava.lang.Object;@5f97ae
- signature: [Ljava.lang.String;@5f28a6
Distributed update exception
- remote object: stellar:Location=primary-server,Name=primary-server,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@1d5ebc
Unable to deploy EJB: STTaskPrivilegeLinkEntity from Entities.jar:
java.lang.ClassNotFoundException: Class bytes found but defineClass() failed with java.lang.ClassFormatError: com/c4/stellar/server/ejbs/entities/STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS (Illegal Method name "Exception in 'findBySTTaskEntity_3v8zjr__WebLogic_CMP_RDBMS_taskPrivilegeLinkEntity__WL_' while usi") for com.c4.stellar.server.ejbs.entities.STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:165)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at weblogic.ejb20.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:307)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.getGeneratedBeanClass(EntityBeanInfoImpl.java:362)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:114)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:817)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1299)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.ClassNotFoundException: Class bytes found but defineClass() failed with java.lang.ClassFormatError: com/c4/stellar/server/ejbs/entities/STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS (Illegal Method name "Exception in 'findBySTTaskEntity_3v8zjr__WebLogic_CMP_RDBMS_taskPrivilegeLinkEntity__WL_' while usi") for com.c4.stellar.server.ejbs.entities.STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS]
at weblogic.ejb20.deployer.EntityBeanInfoImpl.getGeneratedBeanClass(EntityBeanInfoImpl.java:367)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:114)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:817)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1299)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1087)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Unable to deploy EJB: STTaskPrivilegeLinkEntity from Entities.jar:
java.lang.ClassNotFoundException: Class bytes found but defineClass() failed with java.lang.ClassFormatError: com/c4/stellar/server/ejbs/entities/STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS (Illegal Method name "Exception in 'findBySTTaskEntity_3v8zjr__WebLogic_CMP_RDBMS_taskPrivilegeLinkEntity__WL_' while usi") for com.c4.stellar.server.ejbs.entities.STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:165)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at weblogic.ejb20.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:307)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.getGeneratedBeanClass(EntityBeanInfoImpl.java:362)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:114)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:817)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1299)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.ClassNotFoundException: Class bytes found but defineClass() failed with java.lang.ClassFormatError: com/c4/stellar/server/ejbs/entities/STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS (Illegal Method name "Exception in 'findBySTTaskEntity_3v8zjr__WebLogic_CMP_RDBMS_taskPrivilegeLinkEntity__WL_' while usi") for com.c4.stellar.server.ejbs.entities.STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS]
at weblogic.ejb20.deployer.EntityBeanInfoImpl.getGeneratedBeanClass(EntityBeanInfoImpl.java:367)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:114)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:817)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1299)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBeanReferenceAttribute.doSet(MBeanReferenceAttribute.java:124)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException:
Unable to deploy EJB: STTaskPrivilegeLinkEntity from Entities.jar:
java.lang.ClassNotFoundException: Class bytes found but defineClass() failed with java.lang.ClassFormatError: com/c4/stellar/server/ejbs/entities/STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS (Illegal Method name "Exception in 'findBySTTaskEntity_3v8zjr__WebLogic_CMP_RDBMS_taskPrivilegeLinkEntity__WL_' while usi") for com.c4.stellar.server.ejbs.entities.STTaskPrivilegeLinkEntity_apfxaw__WebLogic_CMP_RDBMS
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:165)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at weblogic.ejb20.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:307)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.getGeneratedBeanClass(EntityBeanInfoImpl.java:362)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:114)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:123)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.deploy(ClientDrivenBeanInfoImpl.java:817)
at weblogic.ejb20.deployer.Deployer.deployDescriptor(Deployer.java:1299)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:1005)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:33)
at weblogic.j2ee.Application.addComponent(Application.java:174)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:364)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:150)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:507)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:376)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy14.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1545)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:908)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:310)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy11.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
at weblogic.management.console.info.MBeanReferenceAttribute.addToArrayAttribute(MBeanReferenceAttribute.java:254)
at weblogic.management.console.info.MBSo, 390 seems to be the number but, contrary to BEA
problem ID: 035884 which delegates the problem to SUN
Bug ID:4390238 (Incidentally SUN has closed this bug
as Non-reproducable), we are not getting any
OutOfMemory error.Did you check the server logs? There might be an OutOfMemoryError logged.
My questions to the JAVA community are:
1)Is the problem really related to JDK or Weblogic?Apparently, the problem is with the Weblogic. Did you try deploying the same number on some higher version of Weblogic? (7.0 for instance)
2)If it's a problem with JDK, then what should be
done to fix it?Check the bug database for the same bug id. There is a workaround posted. The evaluation comments are also hinting at using the suggested VM options.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4390238 -
Error deploying EJB on weblogic: Unable to set the transaction attribute
Hi,
I'm trying to deploy an application in WL10.3.2 and an error occurred during activation of changes.
Here is the error message from the log file:
<Jun 6, 2011 1:28:27 PM MDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'serverEAR-2' due to error weblogic.application.ModuleException: Exception preparing module: EJBModule(serverEJB-2.8.0.jar)
Unable to deploy EJB: C:\oracle\Middleware\user_projects\domains\base_domain\servers\Server_3\tmp\_WL_user\serverEAR-2\1zw7ao\serverEJB-2.8.0.jar from serverEJB-2.8.0.jar:
Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
weblogic.application.ModuleException: Exception preparing module: EJBModule(serverEJB-2.8.0.jar)
Unable to deploy EJB: C:\oracle\Middleware\user_projects\domains\base_domain\servers\Server_3\tmp\_WL_user\serverEAR-2\1zw7ao\serverEJB-2.8.0.jar from serverEJB-2.8.0.jar:
Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:454)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
Truncated. see log file for complete stacktrace
Caused By: weblogic.ejb.container.deployer.DeploymentDescriptorException: Unable to set the transaction attribute for method 'saveActionGroup(EditableActionGroup)' on EJB 'ViewBean'. No matching method could be found. Please verify the method signature specified in the ejb-jar.xml file matches that of your Remote interface for this EJB.
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processCTs(MBeanDeploymentInfoImpl.java:1502)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processSpecificMethodCTs(MBeanDeploymentInfoImpl.java:1472)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeTransactionAttribute(MBeanDeploymentInfoImpl.java:773)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:259)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1190)
Truncated. see log file for complete stacktrace
Please help me...Thanks.In your ejb-jar.xml you are referring to a method saveActionGroup(EditableActionGroup) which is not defined in your remote interface.
Maybe you have made some typo in the configuration. Check your transaction section, i.e.,
<container-transaction>
<method>
<ejb-name>ViewBean</ejb-name>
<method-name>saveActionGroup</method-name>
<method-params>
<method-param>package.EditableActionGroup</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>or something similar. See if the defined methods are corresponding to the methods defined in the remote interface. -
Unable to deploy EJB application
Hi iam getting the following exception while deploying an EJB application in WebLogic 8.1
Exception:weblogic.management.ApplicationException: prepare failed for Addition
Module: Addition Error: Exception preparing module: EJBModule(Addition,status=NEW)
Unable to deploy EJB: Addition.jar from Addition.jar:
Compiler failed executable.exec
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:468)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:401)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
what might be the reason for this exception ????This problem is caused by the way WebLogic calls javac to compile the generated classes for the EJBs deployment. This became a big problem for our project with 50 Entity EJBs 2.0 with CMP/CMR, about 15 EJB-QL statements, 3 MDB and 8 Session EJB. I think that these numbers are limits, so exceeding any of these numbers cause javac to exhaust the memory it allocates by default. Even the WebLogic 8.1.Server's administarion console allows you to supply additional parameters for RMI and EJB compilers, it does not allow to supply the -J-Xmx256M (or more) option needed to increase the memory javac allocates.
Thus:
1. In the active $JAVA_HOME/bin of the Server create the file:
Windows:
javac1.cmd Containing:
javac -J-Xmx256M %*
Linux:
javac1.sh Containing:
#!/bin/bash
javac -J-Xmx256M $*
make it "executable"
NOTE: startWeblogic script sets it own JAVA_HOME, so check it first.
2. In the administraitve console of WebLogic 8.1 Server select the server in the left frame under the
<Domain> / Servers branch. In the right frame select the General tab.
3. In the Java Compiler box change javac to javac1.cmd or javac1.sh respectively. No restart is needed.
This solved our problem.
I could not find any solution published, hopefully this will help other colleagues.
Rusi Popov -
Unable to deploy EJB - weblogic,management.ApplicationException
I am getting the following error when i deploy an ear file in WL 7.0 with MySQL
at the backend
There is one entity bean and one servlet in the application.
can any body tell what mistake i could be making ?
thanks in advance
-vasanth
error log
=====
weblogic.management.ApplicationException: Prepare failed. Task Id = null
Module Name: titan_ejbs.jar, Error: Exception preparing module: EJBModule(titan_ejbs.jar,status=NEW)
Unable to deploy EJB: titan_ejbs.jar from titan_ejbs.jar:
java.lang.NullPointerException
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.getPersistenceUseIdentifier(CompositeMBeanDescriptor.java:1446)
at weblogic.ejb20.deployer.CMPInfoImpl.<init>(CMPInfoImpl.java:104)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:135)
at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:349)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:438)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:165)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:151)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
TargetException:
Unable to deploy EJB: titan_ejbs.jar from titan_ejbs.jar:
java.lang.NullPointerException
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.getPersistenceUseIdentifier(CompositeMBeanDescriptor.java:1446)
at weblogic.ejb20.deployer.CMPInfoImpl.<init>(CMPInfoImpl.java:104)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:135)
at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:349)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:438)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:165)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:151)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:744)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)Add a <persistence-use> element to weblogic-ejb-jar.xml deployment descriptor.
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>5.1.0</type-version>
<type-storage>META-INF/weblogic-cmp-jar.xml</type-storage>
</persistence-use>
</persistence>
"vasanth" <[email protected]> wrote:
>
I am getting the following error when i deploy an ear file in WL 7.0
with MySQL
at the backend
There is one entity bean and one servlet in the application.
can any body tell what mistake i could be making ?
thanks in advance
-vasanth
error log
=====
weblogic.management.ApplicationException: Prepare failed. Task Id = null
Module Name: titan_ejbs.jar, Error: Exception preparing module: EJBModule(titan_ejbs.jar,status=NEW)
Unable to deploy EJB: titan_ejbs.jar from titan_ejbs.jar:
java.lang.NullPointerException
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.getPersistenceUseIdentifier(CompositeMBeanDescriptor.java:1446)
at weblogic.ejb20.deployer.CMPInfoImpl.<init>(CMPInfoImpl.java:104)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:135)
at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:349)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:438)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:165)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:151)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
TargetException:
Unable to deploy EJB: titan_ejbs.jar from titan_ejbs.jar:
java.lang.NullPointerException
at weblogic.ejb20.deployer.CompositeMBeanDescriptor.getPersistenceUseIdentifier(CompositeMBeanDescriptor.java:1446)
at weblogic.ejb20.deployer.CMPInfoImpl.<init>(CMPInfoImpl.java:104)
at weblogic.ejb20.deployer.EntityBeanInfoImpl.<init>(EntityBeanInfoImpl.java:135)
at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:349)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:438)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:165)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:151)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
at weblogic.Server.main(Server.java:32)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:744)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:555)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:458)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:490)
at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150)
at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54)
at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:782)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282) -
Hello, I'm try to runing an aplication on weblogic and now I stuck on this issue.
Could anyone help me to solve this?
Exception activating module: EJBModule(ejb.jar) Unable to deploy EJB: DrawingPhaseSessionEJB from ejb.jar: [EJB:011008]Unable to bind EJB Home Interface to the JNDI name: DrawingPhaseSessionEJB. javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(-4455390609100261740S::contract_manager:AdminServer null)/1434 [com.primavera.exponline.server.drawing.DrawingPhaseSessionHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at DrawingPhaseSessionEJB(ClusterableRemoteRef(-4455390609100261740S::contract_manager:AdminServer [-4455390609100261740S::contract_manager:AdminServer/1269])/1269 [com.primavera.exponline.server.drawing.DrawingPhaseSessionHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name '' at weblogic.rmi.cluster.ClusterableRemoteObject.onBind(ClusterableRemoteObject.java:201) at weblogic.jndi.internal.BasicNamingNode.bindHere(BasicNamingNode.java:371) at weblogic.jndi.internal.ServerNamingNode.bindHere(ServerNamingNode.java:140) at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:317) at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:277) at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:439) at weblogic.ejb.container.deployer.EjbJndiService.bind(EjbJndiService.java:54) at weblogic.ejb.container.deployer.EjbJndiService.replicatedBind(EjbJndiService.java:38) at weblogic.ejb.container.deployer.Ejb2JndiBinder.bindHome(Ejb2JndiBinder.java:35) at weblogic.ejb.container.deployer.Ejb2JndiBinder.bindToJNDI(Ejb2JndiBinder.java:91) at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1229) at weblogic.ejb.container.deployer.EJBDeployer.activate(EJBDeployer.java:1321) at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:495) at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:227) at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:542) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:175) at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:168) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205) at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:140) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
ThanksHi Radhika,
I'm guessing (if it's not a typo) that you need to change your directory
name. You should create the following directory:
employee\META-INF
(Yes, case is important :-)
And you should use that directory, instead of "employee\meta-inf".
Hope this helps you!
Good Luck,
Avi. -
Error deploying EJB on WL 6.0
Hi,
I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment, but I'm
encoutering the following error. The EJB jar deployed fine on a Windows system,
but I keep on getting this error on a Solaris machine. Any help/info would be
appreciated.
Thanks in advance,
- Jerome
<Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages of severity
"Error" or worse will be displayed in this window. This can be changed at Admin
Console> hats> Servers> myserver> Logging> General> Stdout severity threshold>
java.io.IOException: javac: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:144)
at weblogic.utils.Executable.exec(Executable.java:108)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy24.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
<Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB Component :
Shared.jar
weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nested exception
is:
Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy24.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
>
<Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying application Shared.jar:
Could not deploy: 'Shared.jar':
Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])>I removed the EJB classes from my classpath, but I am now getting the following
error. If I remove the EJB classes from the classpath, how does ejbc know where
to look for the classes when making the jar files?
ERROR: Error from ejbc: java.lang.NoClassDefFoundError: Lcom/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLHome;
at java.lang.Class.getFields0(Native Method)
at java.lang.Class.getDeclaredFields(Class.java:998)
at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransient(SessionBeanClassChecker.java:61)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:230)
at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:185)
at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:309)
at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:266)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:136)
at weblogic.ejbc20.runBody(ejbc20.java:707)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20)
ERROR: ejbc found errors
Rob Woollen <[email protected]> wrote:
It looks like you still don't have javac in your $PATH.
You also should remove the EJB classes from your classpath. They should
only be in your jar file.
-- Rob
Jerome Sieng wrote:
Rob,
I am now trying to run weblogic.ejbc(wl6.0) on the jar before deployingit, but
I'm getting the following error. Any ideas?
Thanks
- Jerome
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
com.hiwire.ejb.spotmanager.admin.AdminSessionSFBean which is in theclasspath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
com.hiwire.ejb.spotmanager.admin.AdminSessionSFHome which is in theclasspath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: Adminhas a class
com.hiwire.ejb.spotmanager.admin.AdminSessionSF which is in the classpath.This
class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.GroupEntityBean which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.GroupEntityHome which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.GroupEntity which is in theclasspath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: GroupEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.GroupPK which is in the classpath.This
class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.TunerEntityBean which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.TunerEntityHome which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.TunerEntity which is in theclasspath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: TunerEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.TunerPK which is in the classpath.This
class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.UserEntityBean which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.UserEntityHome which is inthe classpath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.UserEntity which is in theclasspath.
This class should only be located in the ejb-jar file.>
<Dec 10, 2001 7:52:17 PM PST> <Error> <EJB> <EJB Deployment: UserEntityHomehas
a class com.hiwire.ejb.spotmanager.admin.UserPK which is in the classpath.This
class should only be located in the ejb-jar file.>
java.io.IOException: javac: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:144)
at weblogic.utils.Executable.exec(Executable.java:108)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
at weblogic.ejbc20.runBody(ejbc20.java:707)
at weblogic.utils.compiler.Tool.run(Tool.java:81)
at weblogic.ejbc.main(ejbc.java:20)
Exec failed .. exiting
Rob Woollen <[email protected]> wrote:
It looks like you don't have javac in the solaris path.
FWIW, you might consider just running weblogic.ejbc on the jar before
deploying it.
-- Rob
Jerome Sieng wrote:
Hi,
I'm trying to deploy an EJB jar file on WL6.0 in a Solaris environment,but I'm
encoutering the following error. The EJB jar deployed fine on a
Windows
system,
but I keep on getting this error on a Solaris machine. Any help/infowould be
appreciated.
Thanks in advance,
- Jerome
<Dec 10, 2001 5:45:09 PM PST> <Info> <Logging> <Only log messages
of
severity
"Error" or worse will be displayed in this window. This can be changedat Admin
Console> hats> Servers> myserver> Logging> General> Stdout severitythreshold>
java.io.IOException: javac: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
at java.lang.Runtime.exec(Runtime.java:477)
at java.lang.Runtime.exec(Runtime.java:443)
at weblogic.utils.Executable.exec(Executable.java:144)
at weblogic.utils.Executable.exec(Executable.java:108)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy24.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
<Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying EJB
Component
Shared.jar
weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nestedexception
is:
Compiler failed executable.exec(java.lang.String[javac,
-nowarn,
-classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
Compiler failed executable.exec(java.lang.String[javac,
-nowarn,
-classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:228)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy24.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
>
<Dec 10, 2001 5:45:32 PM PST> <Error> <J2EE> <Error deploying applicationShared.jar:
Could not deploy: 'Shared.jar':
Compiler failed executable.exec(java.lang.String[javac,
-nowarn,
-classpath,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared:/opt/weblogic6.0/wlserver6.0:/opt/weblogic6.0/wlserver6.0/lib/weblogic_sp.jar:/opt/weblogic6.0/wlserver6.0/lib/weblogic.jar:/usr/java/bin/javac:/opt/weblogic6.0:/home/adserver/current/Library/jce1_2-do.jar:/home/adserver/current/JavaSource:/home/adserver/current/EJBSource:/opt/weblogic6.0/wlserver6.0/./config/hats/applications/.wl_temp_do_not_delete/wl_local_comp12301.jar:/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared,
-d, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared, /opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanHomeImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanEOImpl.java,
/opt/weblogic6.0/wlserver6.0/tmp_ejbdev280/Shared/com/hiwire/ejb/spotmanager/shared/SpotManagerSessionSLBeanImpl.java])> -
Persistance layer failed to deploy
Hi,
When I try to build using ant file I am getting the following exception in WLS8.1
[java] [EJB:011016]The persistence layer of the Entity EJB failed to deploy.
[java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified in a type-storage
element of your weblogic-ejb-jar.xml descriptor, does not exi
the JAR file.
[java] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceType.java:469)
My weblogic-ejb-jar.xml file is :
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>UserCheck</ejb-name>
<jndi-name>Gateway_UC_Home</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>Log</ejb-name>
<message-driven-descriptor>
<destination-jndi-name>ramtopic1</destination-jndi-name>
</message-driven-descriptor>
<jndi-name>Log</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>GatewayUpdate</ejb-name>
<entity-descriptor>
<entity-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
<type-storage>weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>RemoteMsg_Update_Home</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>GatewayUpdate</ejb-name>
<data-source-name>gatewayPool</data-source-name>
<table-name>textsms</table-name>
<field-map>
<cmp-field>user</cmp-field>
<dbms-column>user</dbms-column>
</field-map>
<field-map>
<cmp-field>msgid</cmp-field>
<dbms-column>msgid</dbms-column>
</field-map>
<field-map>
<cmp-field>msg</cmp-field>
<dbms-column>msg</dbms-column>
</field-map>
<field-map>
<cmp-field>org</cmp-field>
<dbms-column>org</dbms-column>
</field-map>
<field-map>
<cmp-field>mno</cmp-field>
<dbms-column>mno</dbms-column>
</field-map>
<field-map>
<cmp-field>status</cmp-field>
<dbms-column>status</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>False</create-default-dbms-tables>
</weblogic-rdbms-jar>
Pl.suggest.
RamHi,
I hv found out the issue.I hv not added one element tag in weblogic-cmp-rdbms-xml.jar.After
adding the same the above error did not come.But when I create ear file I hv got
another exception saying the jar file mentioned is not aval in the ear file.
Below is the console output:
Gateway.jar:
[echo] creating basic ejb jar file ...
[jar] Building jar: E:\myejb\staging\Gateway.jar
[echo] ... done.
[echo] appc'ing the ejb jar file ...
[echo] appc'ing the ejb jar file ...
[java] [appc] Created working directory: C:\DOCUME~1\ram\LOCALS~1\Temp\appcgen
[java] [J2EE:160120]Error: The module, 'Gateway.jar', is declared in the
application.xml descriptor but cannot be found in the ear file.
BUILD FAILED
file:E:/myejb/build.xml:95: Java returned: 1
My build file is :
<!--
This file builds the EAR file for the SessBean.
Invoke this file by providing the base directory of the weblogic
installation. This can be done by using the following command
line:
ant -f build.xml -Dwlhome=f:\bea\weblogic81
Before invoking ant, make sure that the optional.jar file
has been copied into the lib directory of your ant installation.
-->
<project name="GatewayBean" default="all">
<target name="init">
<property name="srcdir" value="."/>
<property name="java.classpath"
value="${wlhome}${file.separator}server${file.separator}lib${file.separator}weblogic.jar"/>
<delete dir="classes"
includeEmptyDirs="true"
failonerror="false" />
<delete dir="staging"
includeEmptyDirs="true"
failonerror="false"/>
<echo message="creating staging area ..."/>
<mkdir dir="staging"/>
<echo message=" ... done."/>
<!-- Define the WebLogic appc task -->
<echo message="defining weblogic appc task ..."/>
<taskdef name="appc"
classname="weblogic.ant.taskdefs.j2ee.Appc"
classpath="${java.classpath}"/>
<echo message=" ... done."/>
</target>
<!-- target compiles all required classes -->
<target name="compile" depends="init">
<mkdir dir="classes"/>
<echo message="compiling all sources ... "/>
<javac srcdir="${srcdir}"
destdir="classes"
verbose="no"
classpath="${java.classpath}" />
<echo message=" ... done."/>
</target>
<!-- target builds the jar file containing JSP helper classes -->
<target name="JSPClasses.jar" depends="compile">
<echo message="creating JSPClasses.jar ... "/>
<jar jarfile="staging${file.separator}JSPClasses.jar">
<fileset dir="classes" includes="**/JSP*.class"/>
</jar>
<echo message=" ... done."/>
</target>
<!-- target builds the war file containing the web application -->
<target name="Gateway.war" depends="init,JSPClasses.jar">
<echo message="creating web archive ... "/>
<war destfile="staging${file.separator}Gateway.war"
webxml="web.xml" >
<fileset dir="${srcdir}">
<include name="*.jsp"/>
<include name="*.html"/>
</fileset>
<lib dir="staging" includes="JSPClasses.jar"/>
</war>
<echo message=" ... done."/>
</target>
<!-- target builds the jar file containing all the EJBs -->
<target name="Gateway.jar" depends="compile">
<!-- First jar up the basic classes required for the EJBs -->
<echo message="creating basic ejb jar file ... "/>
<jar jarfile="staging${file.separator}Gateway.jar">
<zipfileset dir="."
prefix="META-INF"
includes="*.xml"/>
<fileset dir="classes"
excludes="**/JSP*.class"/>
</jar>
<echo message=" ... done."/>
<!-- Next appc the jar file to ejb compile the ejbs-->
<echo message="appc'ing the ejb jar file ... "/>
<!-- Next appc the jar file to ejb compile the ejbs-->
<echo message="appc'ing the ejb jar file ... "/>
<java classname="weblogic.appc"
failonerror="true"
fork="true"
classpath="${java.classpath}">
<arg line="-basicClientJar -verbose -forceGeneration -classpath ${java.classpath}
staging${file.separator}Gateway.jar"/>
</java>
<echo message=" ... done."/>
<!--
<java classname="weblogic.appc"
failonerror="true"
fork="true"
classpath="${java.classpath}">
<arg line="-basicClientJar -verbose -forceGeneration -classpath ${java.classpath}
staging${file.separator}Gateway.jar"/>
</java>
-->
<echo message=" ... done."/>
</target>
<!-- target builds the EAR file -->
<target name="Gateway.ear"
depends="init,Gateway.war,Gateway.jar">
<echo message="creating enterprise archive ... "/>
<jar jarfile="Gateway.ear">
<zipfileset dir="."
prefix="META-INF"
includes="application.xml"/>
<fileset dir="staging"
includes="Gateway.war,Gateway.jar"/>
</jar>
<echo message=" ... done."/>
</target>
<!--
<target name="cleanup">
<echo message="cleaning up ... "/>
<delete dir="staging"
includeEmptyDirs="true"
failonerror="false"/>
<delete dir="classes"
includeEmptyDirs="true"
failonerror="false"/>
<echo message=" ... done."/>
</target>
-->
<target name="all" depends="init, Gateway.ear">
<echo message="Done building ./Gateway.ear"/>
</target>
</project>
My application.xml file is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application
1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>Gateway</display-name>
<description>Gateway</description>
<module>
<ejb>Gateway.jar</ejb>
</module>
</application>
After doing jar tvf :
GMT+05:30 2004 META-INF/
GMT+05:30 2004 META-INF/MANIFEST.MF
GMT+05:30 2004 META-INF/Copy of build.xml
GMT+05:30 2004 META-INF/ejb-jar.xml
GMT+05:30 2004 META-INF/build.xml
GMT+05:30 2004 META-INF/application.xml
GMT+05:30 2004 META-INF/web.xml
GMT+05:30 2004 META-INF/weblogic-cmp-rdbms-jar.xml
GMT+05:30 2004 META-INF/weblogic-ejb-jar.xml
GMT+05:30 2004 gateway/
GMT+05:30 2004 gateway/LogBean.class
GMT+05:30 2004 gateway/Gateway_UC.class
GMT+05:30 2004 gateway/Gateway_UC_Home.class
GMT+05:30 2004 gateway/Gateway_UC_Bean.class
GMT+05:30 2004 gateway/Msg_Update.class
GMT+05:30 2004 gateway/Msg_Update_Home.class
GMT+05:30 2004 gateway/Msg_Update_Bean.class
GMT+05:30 2004 gateway/UpdatePK.class
Pl.advise.
Ram
Rob Woollen <[email protected]> wrote:
I'd suggest you build the CMP example that ships with WLS. Then compare
the structure of its ejb-jar with your application.
If you're still having problems, can you show me the output of jar tvf
on your ejb-jar file? It's looking for the CMP descriptor in the
META-INF directory.
-- Rob
Ram wrote:
Hi,
When I try to build using ant file I am getting the following exceptionin WLS8.1
[java] [EJB:011016]The persistence layer of the Entity EJB failedto deploy.
[java] [EJB:011018]The file weblogic-cmp-rdbms-jar.xml, specified ina type-storage
element of your weblogic-ejb-jar.xml descriptor, does not exi
the JAR file.
[java] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceType.java:469)
My weblogic-ejb-jar.xml file is :
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic8.1.0 EJB//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>UserCheck</ejb-name>
<jndi-name>Gateway_UC_Home</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>Log</ejb-name>
<message-driven-descriptor>
<destination-jndi-name>ramtopic1</destination-jndi-name>
</message-driven-descriptor>
<jndi-name>Log</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>GatewayUpdate</ejb-name>
<entity-descriptor>
<entity-cache>
<max-beans-in-cache>1000</max-beans-in-cache>
</entity-cache>
<persistence>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>7.0</type-version>
<type-storage>weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-use>
</persistence>
</entity-descriptor>
<jndi-name>RemoteMsg_Update_Home</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>GatewayUpdate</ejb-name>
<data-source-name>gatewayPool</data-source-name>
<table-name>textsms</table-name>
<field-map>
<cmp-field>user</cmp-field>
<dbms-column>user</dbms-column>
</field-map>
<field-map>
<cmp-field>msgid</cmp-field>
<dbms-column>msgid</dbms-column>
</field-map>
<field-map>
<cmp-field>msg</cmp-field>
<dbms-column>msg</dbms-column>
</field-map>
<field-map>
<cmp-field>org</cmp-field>
<dbms-column>org</dbms-column>
</field-map>
<field-map>
<cmp-field>mno</cmp-field>
<dbms-column>mno</dbms-column>
</field-map>
<field-map>
<cmp-field>status</cmp-field>
<dbms-column>status</dbms-column>
</field-map>
</weblogic-rdbms-bean>
<create-default-dbms-tables>False</create-default-dbms-tables>
</weblogic-rdbms-jar>
Pl.suggest.
Ram
Maybe you are looking for
-
How can I register/sync my iPod Nano to two separate iTunes accounts?
I have an iTunes account and so does my husband. Being they are two separate accounts, how can I sync my device to both accounts? Also being new to Apple devices, how can I move a purchased song from an iPad Mini to my Nano?
-
I've downloaded itunes 10.5 - it keeps quitting
I've updated my software and now everytime I try to open itunes it quits unexpectedly - does anyone have any advice on how to stop this?
-
Create OLE DB Data Source in Sql Server Reporting Services
Hi, I need to connect to a sap bw cube and when i try to create Data Source everything is going well but i can't see my cubes in the catalog field. any one have experience with it?? Thanks.
-
Jni library loaded by System.load fails on later call to System.loadLibrary
I'm attempting to use jnotify to listen for directory modifications. This requires using jni to dynamically link to a c library. I have gotten everything to work successfully if I put the library on the java.library.path. However, I would prefer to l
-
Xcelsius 2008 5.4.0.0 - XLF file - All components missing/blank canvas
xcelsius 2008 5.4.0.0 build 12,4,0,1166 -- working on a xlf file - save it -- go to reopen it and get a blank canvas -- look in object browser and ALL objects are missing - none showing did the resedit thing removing the en file -- rebooted windows