• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB using Visual cafe on Weblogic6.0

 
Arvind Chavar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic