facebook

Failed to Deployed EJB into weblogic 9.

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #242060 Reply

    mlsalcedo
    Member

    I just created an EJB following the Wizard, Ran XDoclet, Deployed to weblogic but it’s failing with the following messages:

    <Nov 24, 2005 9:36:09 AM EST> <Warning> <EJB> <BEA-012035> <The Remote interface method: ‘public void TestEjb.setSessionContext(javax.ejb.SessionContext) throws javax.ejb.EJBException’ in EJB ‘TestEjb’ contains a parameter of type: ‘javax.ejb.SessionContext’ which is not Serializable. Though the EJB ‘TestEjb’ has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
    <Nov 24, 2005 9:36:09 AM EST> <Warning> <EJB> <BEA-012035> <The Remote interface method: ‘public boolean java.lang.Object.equals(java.lang.Object)’ in EJB ‘TestEjb’ contains a parameter of type: ‘java.lang.Object’ which is not Serializable. Though the EJB ‘TestEjb’ has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
    <Nov 24, 2005 9:36:09 AM EST> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request with ID ‘1132842968642’ for task ‘0’. Error is: ‘weblogic.application.ModuleException: Exception preparing module: EJBModule(test)

    Unable to deploy EJB: C:\bea\user_projects\domains\mydomain\.\servers\AdminServer\stage\_appsdir_test_jar\test.jar from test.jar:

    null


    weblogic.application.ModuleException: Exception preparing module: EJBModule(test)

    Unable to deploy EJB: C:\bea\user_projects\domains\mydomain\.\servers\AdminServer\stage\_appsdir_test_jar\test.jar from test.jar:

    null

    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:371)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
    Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
    at weblogic.ejb20.deployer.SessionBeanInfoImpl.assignDefaultTXAttributesIfNecessary(SessionBeanInfoImpl.java:323)
    at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeTransactionAttribute(MBeanDeploymentInfoImpl.java:818)
    at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:229)
    at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1165)
    at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:344)
    Truncated. see log file for complete stacktrace
    >
    <Nov 24, 2005 9:36:09 AM EST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application ‘_appsdir_test_jar’.>
    <Nov 24, 2005 9:36:09 AM EST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Exception preparing module: EJBModule(test)

    #242091 Reply

    Greg
    Member

    It seems that Weblogic is unhappy with the transaction attribute from looking at this…

    Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
    at weblogic.ejb20.deployer.SessionBeanInfoImpl.assignDefaultTXAttributesIfNecessary(SessionBeanInfoImpl.java:323)
    at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeTransactionAttribute(MBeanDeploymentInfoImpl.java:818)
    at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:229)

    Are you specifyng any transaction attributes or xdoclet tags? If not, maybe you can try setting the weblogic transaction tags to the appropriate value.
    http://xdoclet.sourceforge.net/xdoclet/tags/bea-tags.html#@weblogic_transaction-descriptor__0____
    http://xdoclet.sourceforge.net/xdoclet/tags/bea-tags.html#@weblogic_transaction-isolation__0____

    Note this tags would need to put in the class level XDoclet tags. Try these and then rerun xdoclet and deploy.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Failed to Deployed EJB into weblogic 9.

You must be logged in to post in the forum log in