wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Urgent Help Please........ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Urgent Help Please........" Watch "Urgent Help Please........" New topic
Author

Urgent Help Please........

Ranjit Raje
Greenhorn

Joined: Sep 18, 2003
Posts: 4
Friends,
I am facing problem while running a simple program in Weblogic8.1
I started server with JVM 1.4.1
I compiled all my JMS programs with Java1.3.1
And when I am trying to run sample program that I developed I am getting following error.
Please help to solve the problem.
Thanks in advance.
Regards
Ranjit

D:\abc>java com.monex.prototype.SimpleTopicPublisher
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/AssertionError
at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingSubjectStack.java:18)
at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImpl.java:40)
at weblogic.security.service.SubjectManagerImpl.ensureInitialized(SubjectManagerImpl.java:277)
at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFactoryDelegate.java:137)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:131)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at com.monex.prototype.SimpleTopicPublisher.main(SimpleTopicPublisher.java:54)
Anthony Cheung
Greenhorn

Joined: Sep 18, 2003
Posts: 3
set your classpath to have that missing class
Ranjit Raje
Greenhorn

Joined: Sep 18, 2003
Posts: 4
Thanks a lot!
But problem still remains the same(Even with classpath details)
My out put is like
D:\abc>javap com.monex.prototype.SimpleTopicPublisher
Compiled from SimpleTopicPublisher.java
public class com.monex.prototype.SimpleTopicPublisher extends java.lang.Object {
public com.monex.prototype.SimpleTopicPublisher();
public static void main(java.lang.String[]);
}
D:\abc>java com.monex.prototype.SimpleTopicPublisher
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/AssertionError
at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingSubjectStack.java:18)
at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImpl.java:40)
at weblogic.security.service.SubjectManagerImpl.ensureInitialized(SubjectManagerImpl.java:277)
at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialContextFactoryDelegate.java:137)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:131)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at com.monex.prototype.SimpleTopicPublisher.main(SimpleTopicPublisher.java:54)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
java.lang.AssertionError was introduced in JDK version 1.4 and WebLogic 8.1 uses JDK 1.4. Would it be possible to run the client with JDK 1.4 as well?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ranjit Raje
Greenhorn

Joined: Sep 18, 2003
Posts: 4
Thank You Lasse Koskela,
The error is ractified. I think that was the Classpath error.
Regards
Ranjit
 
Consider Paul's rocket mass heater.
 
subject: Urgent Help Please........
 
Similar Threads
NoClassDefFoundError
Running Hibernate in Standalone ?
Problem in client invoking EJB
Unable to run spring program
No class DefFound error in EJB3.0 running in weblogic 10.0