This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB using Visual cafe  on Weblogic6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB using Visual cafe  on Weblogic6.0" Watch "EJB using Visual cafe  on Weblogic6.0" New topic
Author

EJB using Visual cafe on Weblogic6.0

Arvind Chavar
Ranch Hand

Joined: May 16, 2001
Posts: 53
My Visual cafe project contains about 25 Java classes which the EJB uses.There are couple of EJBs which use most of these classes.What I am doing now is including these required files in each of Visual Cafe project file by file.In this case my deployment is successful and am able to invoke the EJB.I tried to simplify this process by making jar of all these files,so that I can just include one jar file, instead of 20-30 java files.Project compiles fine, but when I try to deploy the EJB on to weblogic server using Visual Cafe,it fails while jarring , giving the following error
Internal VM (07:35:08): C:\webgain\VCafe\Projects\TestRecordFile\_TestRecordFileEnterpriseBean.jar -d C:\webgain\VCafe\Projects\TestRecordFile\TestRecordFileEnterpriseBean.jar
Internal VM (07:35:16): java.lang.NoClassDefFoundError: com/sungard/omniconnect/framework/OmniDataFileInputBean
Internal VM (07:35:16): at java.lang.Class.getMethods0(Native Method)
Internal VM (07:35:16): at java.lang.Class.getMethods(Class.java:742)
Internal VM (07:35:16): at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.initializeMethodInfos(ClientDrivenBeanInfoImpl.java:512)
Internal VM (07:35:16): at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:148)
Internal VM (07:35:16): at weblogic.ejb20.deployer.SessionBeanInfoImpl.<init>(SessionBeanInfoImpl.java:47)
Internal VM (07:35:16): at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:206)
Internal VM (07:35:16): at weblogic.ejb20.deployer.DeploymentInfoImpl.initializeBeanInfos(DeploymentInfoImpl.java:157)
Internal VM (07:35:16): at weblogic.ejb20.deployer.DeploymentInfoImpl.<init>(DeploymentInfoImpl.java:86)
Internal VM (07:35:16): at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:106)
Internal VM (07:35:16): at weblogic.ejbc20.runBody(ejbc20.java:346)
Internal VM (07:35:16): at weblogic.utils.compiler.Tool.run(Tool.java:81)
Internal VM (07:35:16): at weblogic.ejbc.main(ejbc.java:20)
Internal VM (07:35:16): Exception in thread "main" <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFileEJB which is in the classpath. This class should only<br /> Internal VM (07:35:16): be located in the ejb-jar file.>
Internal VM (07:35:16): <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFileHome which is in the classpath. This class should only be located in the ejb-jar<br /> Internal VM (07:35:16): file.>
Internal VM (07:35:16): <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFile which is in the classpath. This class should only be located in the ejb-jar<br /> Internal VM (07:35:16): file.>
Internal VM (07:35:16):
Internal VM (07:35:16): java.lang.NoClassDefFoundError: com/sungard/omniconnect/framework/OmniDataFileInputBean
Internal VM (07:35:16): at java.lang.Class.getMethods0(Native Method)
Internal VM (07:35:16): at java.lang.Class.getMethods(Class.java:742)
Internal VM (07:35:16): at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.initializeMethodInfos(ClientDrivenBeanInfoImpl.java:512)
Internal VM (07:35:16): at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.<init>(ClientDrivenBeanInfoImpl.java:148)
Internal VM (07:35:16): at weblogic.ejb20.deployer.SessionBeanInfoImpl.<init>(SessionBeanInfoImpl.java:47)
Internal VM (07:35:16): at weblogic.ejb20.deployer.BeanInfoImpl.createBeanInfoImpl(BeanInfoImpl.java:206)
Internal VM (07:35:16): at weblogic.ejb20.deployer.DeploymentInfoImpl.initializeBeanInfos(DeploymentInfoImpl.java:157)
Internal VM (07:35:16): at weblogic.ejb20.deployer.DeploymentInfoImpl.<init>(DeploymentInfoImpl.java:86)
Internal VM (07:35:16): at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:106)
Internal VM (07:35:16): at weblogic.ejbc20.runBody(ejbc20.java:346)
Internal VM (07:35:16): at weblogic.utils.compiler.Tool.run(Tool.java:81)
Internal VM (07:35:16): at weblogic.ejbc.main(ejbc.java:20)
Internal VM (07:35:16): Exception in thread "main" <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFileEJB which is in the classpath. This class should only<br /> Internal VM (07:35:16): be located in the ejb-jar file.>
Internal VM (07:35:16): <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFileHome which is in the classpath. This class should only be located in the ejb-jar<br /> Internal VM (07:35:16): file.>
Internal VM (07:35:16): <Nov 6, 2001 7:35:13 AM CST> <Error> <EJB> <EJB Deployment: TestRecordFile has a class TestRecordFilePkg.TestRecordFile which is in the classpath. This class should only be located in the ejb-jar<br /> Internal VM (07:35:16): file.>
Internal VM (07:35:16): . Jar Processing Failed!
Internal VM (07:35:16): Cleaning up...Completed.

So I was wondering can I include a jar file in Visual Cafe project.Can anybody give a solution this please..?
Arvind Chavar
Arvind Chavar
Ranch Hand

Joined: May 16, 2001
Posts: 53
The error on my previous post says OmniDataInputBean class not found error.I checked my jar file, it is very much there included in that along with other classs files.I was wondering when it can see other class files in the jar , why not this?
Arvind Chavar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB using Visual cafe on Weblogic6.0
 
Similar Threads
Problem in Deploying EJB through V cafe 4.1
ejb jar giving exception while running weblogic
EJB deploy error
getting error java.lang.ClassFormatError when running weblogic.ejbc
Exploded ejb and ear file structure