File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes How can I print error messages on screen ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How can I print error messages on screen ??" Watch "How can I print error messages on screen ??" New topic
Author

How can I print error messages on screen ??

R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
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


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I print error messages on screen ??