This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I print error messages on screen ??

 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am getting error that "Exception while calling weblogic.ejbc20".
This CP of my console :
=======================================
Buildfile: build_one_ejb.xml
one-ejb:
[echo] Bean name is : pib
[ejbjar] Could not load class com.oneport.pib.ejb.PIBArrivalBean for super class check
[ejbjar] Could not load class com.oneport.pib.ejb.PIBArrival for super class check
[ejbjar] Could not load class com.oneport.pib.ejb.PIBArrivalHome for super class check
[ejbjar] building pib.jar with 5 files
[ejbc] java.lang.NoClassDefFoundError: weblogic/ejbc20
[ejbc] Exception in thread "main"
BUILD FAILED
D:\Projects\OneStore\OnePortPhaseOne\build\buildscripts\build_one_ejb.xml:11: Exception while calling weblogic.ejbc20. D
etails: Ejbc reported an error
Total time: 9 seconds
=======================================

When I was looking for answer on Google I came across this page :
http://java.isavvix.com/forums/viewThread.jsp?forum=50&thread=1053
Here is excerpt:
=================
[ejbc] <Jul 1, 2002 11:09:50 AM CDT> <Warning> <EJB> <EJB Deployment: dmrgb
illheader has a class com.uprr.app.ces.ejb.entity.dmrgbillheader.DmrgBillHeaderP
K which is in the classpath. This class should only be located in the ejb-jar fi
le.>
[ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Deploym
ent Error: java.lang.NoSuchFieldException ]
[ejbc] at weblogic.ejb20.persistence.CMPBeanDescriptorImpl.<init>(CMPBe
anDescriptorImpl.java:287)
[ejbc] at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBea
nInfos(MBeanDeploymentInfoImpl.java:411)
[ejbc] at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanD
eploymentInfoImpl.java:126)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:128
)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:358)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[ejbc] at weblogic.ejbc.main(ejbc.java:21)
[ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Deploym
ent Error: java.lang.NoSuchFieldException ]
[ejbc] at weblogic.ejb20.persistence.CMPBeanDescriptorImpl.<init>(CMPBe
anDescriptorImpl.java:287)
[ejbc] at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBea
nInfos(MBeanDeploymentInfoImpl.java:411)
[ejbc] at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanD
eploymentInfoImpl.java:126)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:128
)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:358)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[ejbc] at weblogic.ejbc.main(ejbc.java:21)
[ejbc] Exception in thread "main"
BUILD FAILED
C:\UPAPPS\ces\Dem\build.xml:211: Exception while calling weblogic.ejbc. Details:
Ejbc reported an error
==================

How can I too see the error messages on my console?
I tried keepgenerated="true" but ..

PROBLEM 2:
Why I am getting message that Could not load class com.oneport.pib.ejb.PIBArrivalHome for super class check
Thanks for your time and help
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
There was problem in my classpath.
Make sure that your property file do not canotain WINDOWS path seperator i.e. C:\dir01 is wrong. Correct is C:/dir01
If you are CPing then make sure that you change these seperators.
Reagrding printing error messages, I think no seperate setting OR passing of argument is needed.
I got lot of errors after correcting my classpath
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic