• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

java weblogic.appc ?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i am using Weblogic7.i am new to weblogic. i want to run EJB in WL.

java weblogic.appc utility not working.i tried in this way


java weblogic.appc My.jar

this gives an error

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/appc

please tell how to rectify this problem
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Try executing the setWLSEnv.cmd file in the DOC prompt and in the same prompt run the command java weblogic.appc

Karthik
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This really isn't a WebLogic question, it is more of a basic Java question. Any time you see a java.lang.NoClassDefFoundError exception you can be sure it is either a Classloader problem (if you are working with J2EE deployments) or a CLASSPATH issue.

In this case the problem is your CLASSPATH is not set correctly. It must include a reference to the weblogic.jar if you want to use WebLogic utilities. A simple solution would look something like this:



** Of course, this is assuming that your BEA_HOME is c:\bea.
 
Sreedhar mar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
all the above are not solve the problem
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can guaruntee you one thing: it is a CLASSPATH issue. Do you understand how classloaders work in Java? If so then you should understand the need to have the weblogic.jar (which contains the classes you are trying to use) on either your System CLASSPATH or set in the commandline parameter like in my example above.

Please write back and post your System CLASSPATH and the exact command you are trying to run. Without both of these it is going to be hard to help you any further.
 
Sreedhar mar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my classpath

classpath=D:\j2sdk1.4.2_01\lib\tools.jar;
D:\j2sdkee1.3.1\lib\j2eetools.jar;
D:\j2sdkee1.3.1\lib\j2ee.jar;
d:\bea\weblogic700\server\lib\weblogic.jar;
d:\oracle\ora81\jdbc\lib\classes12.zip;
d:\bea\weblogic700\server\lib\classes12.zip;
d:\bea\weblogic700\server\lib;
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I just realized what your problem is. Appc was introduced in WebLogic 8.1 and is not available in 7.0. You must have been reading the wrong documentation.

Instead of using appc, you should be using ejbc. The obvious benefit to running ejbc prior to deployment is to identify and correct errors early and often. However, this step is actually entirely optional because WebLogic will automatically run ejbc at deployment time on those EJBs that haven't been precompiled already.
 
Sreedhar mar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnaks Cris Mathews

one Help

Please tell How to Deploye EJB on Weblogic7.What are the steps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic