Does that JAR file contain the class that is mentioned in the
NoClassDefFoundError?  What happens when you run this:

jar tvf weblogic.jar | grep weblogic/kernel/KernelStatus

On Tue, 17 Aug 2010 10:03 +0530, "K K" <kkfor...@yahoo.in> wrote:
> Hi All,
>  
> I have tried fe options which i can think of in a normal Java project.
>  
> 1. I have copied the weblogic.jar file to <OPENNMS_HOME>/lib folder. I
> started the server and tried to add one interface through "Add Interface"
> in admin. i got the following error [i am pasting few lines from the
> error stack trace].
>  
> java.lang.NoClassDefFoundError: weblogic/kernel/KernelStatus
>       at weblogic.jndi.Environment.(Environment.java:73)
>       at 
> weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
>       at 
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
>       at 
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
>       at javax.naming.InitialContext.init(InitialContext.java:223)
>       at javax.naming.InitialContext.(InitialContext.java:197)
>       at 
> org.opennms.web.admin.nodeManagement.AddNewInterfaceServlet.sendMessage(AddNewInterfaceServlet.java:197)
>       at 
> org.opennms.web.admin.nodeManagement.AddNewInterfaceServlet.doPost(AddNewInterfaceServlet.java:129)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>       at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>       at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>       at 
> org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
> 
> 2. Added weblogic.jar into webstart folder and updated the versions xml
> file with the new entry. Before that i made maven to load the jar into my
> .m2 respository. It also failed.
>  
> 3. Copied the weblogic.jar into <OpenNMS_HOME>/lib/lib as well. It also
> failed.
>  
> 4. Added weblogic.jar into
> <OpenNMS_HOME>/jetty-webapps\opennms\WEB-INF\lib and it also failed.
>  
> If anyone has any clue where i am going wrong, i would be greatful if you
> can let me know.
>  
> Thanks and Regards
> Kiran
> 
> --- On Mon, 16/8/10, Benjamin Reed <ran...@opennms.org> wrote:
> 
> 
> From: Benjamin Reed <ran...@opennms.org>
> Subject: Re: [opennms-devel] Run time jars path
> To: "OpenNMS Code Development and Bugs"
> <opennms-devel@lists.sourceforge.net>
> Cc: "K K" <kkfor...@yahoo.in>
> Date: Monday, 16 August, 2010, 2:28 PM
> 
> 
> On 8/16/10 12:40 AM, K K wrote:
> > Hi All,
> >  
> > If i want to add run time jars, could anyone please let me know about how 
> > to add jars?
> >  
> > For example: i have updated code in "AddNewInterfaceServlet.java" to send a 
> > message to weblogic server for instance. I am getting some run time error 
> > while running the application saying "java.lang.NoClassDefFoundError: 
> > weblogic/utils/NestedException".
> >  
> > If anyone has any clue, please let me know.
> 
> There's nothing terribly special about our classpath stuff, we slurp in
> everything from the OpenNMS lib directory.  You should be able to put
> whatever jar you need for the weblogic bits into $OPENNMS_HOME/lib I
> would expect.
> 
> -- 
> Benjamin Reed
> The OpenNMS Group
> http://www.opennms.org/
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
> 
> opennms-devel mailing list
> 
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to