• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How can I print error messages on screen ??

 
Ranch Hand
Posts: 5397
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 5397
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
expectation is the root of all heartache - shakespeare. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic