Hi Lasantha,

 

Thanks for replying,

Iam using Eclipse I.D.E , hence with I have added the jars in the properties of the specific web module and also iam referencing this jar in the Geronimo-web.xml by adding the requisite jars in the repository folder of the Geronimo 1.1. .Iam attaching my Geronimo-web.xml

 

Geronimo-web.xml

 

      <dependency>

                        <groupId>jars</groupId>

                        <artifactId>hibernate</artifactId>

                        <version>2.0.3</version>

                        <type>jar</type>

                  </dependency>

 

As far as I understand it is trying to refer to hibernate 2.0.3 .jar , but not able to find it. So do I need to add this jar in WEB-INF/lib folder or anything else do I need to do. Please help me out.

 

Thanks and Regards,

Kamal

 

 

-----Original Message-----

From: Lasantha Ranaweera [mailto:lasantha@opensource.lk]

Sent: Friday, January 05, 2007 11:37 AM

To: user@geronimo.apache.org

Subject: Re: java.lang.NoClassDefFoundError - Reg

 

Hi,

 

Have you added JAR files in to your archive? Please describe bit more of

your application, then we might able to help you to exact point. :-)

 

Thanks,

Lasantha Ranaweera

 

Kamalanathan Raman wrote:

> 

> Hi ,

> 

> 

> Iam getting two errors like java.lang.NoClassDefFoundError:

> net/sf/hibernate/cfg/Configuration and java.lang.NoClassDefFoundError:

> com/sshtools/j2ssh/transport/HostKeyVerification . Even when I add the

> jars as dependency in my Geronimo-web.xml , iam not able to resolve

> this issue. Can any one help me out in  solving this issue. Iam

> attaching the error trace.

> 

> 

> 

> 10:48:51,377 ERROR [[/wlbx]] StandardWrapper.Throwable

> 

> java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration

> 

>       at

> com.symcor.wlbx.util.ServiceLocator.getDataSource(_ServiceLocator.java:195_)

> 

>       at

> com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(_ReportServlet.java:912_)

> 

>       at

> com.symcor.wlbx.web.servlet.ReportServlet.init(_ReportServlet.java:668_)

> 

>       at

> org.apache.catalina.core.StandardWrapper.loadServlet(_StandardWrapper.java:1105_)

> 

>       at

> org.apache.catalina.core.StandardWrapper.load(_StandardWrapper.java:932_)

> 

>       at

> org.apache.catalina.core.StandardContext.loadOnStartup(_StandardContext.java:3915_)

> 

>       at

> org.apache.catalina.core.StandardContext.start(_StandardContext.java:4176_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(_GeronimoStandardContext.java:67_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(_GeronimoStandardContext.java:337_)

> 

>       at

> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(_GeronimoBeforeAfterValve.java:31_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext.start(_GeronimoStandardContext.java:192_)

> 

>       at

> org.apache.catalina.core.ContainerBase.addChildInternal(_ContainerBase.java:759_)

> 

>       at

> org.apache.catalina.core.ContainerBase.addChild(_ContainerBase.java:739_)

> 

>       at

> org.apache.catalina.core.StandardHost.addChild(_StandardHost.java:524_)

> 

>       at

> org.apache.geronimo.tomcat.TomcatContainer.addContext(_TomcatContainer.java:313_)

> 

> 

> java.lang.NoClassDefFoundError:

> com/sshtools/j2ssh/transport/HostKeyVerification

> 

>       at

> com.symcor.wlbx.web.servlet.ImportServlet.init(_ImportServlet.java:123_)

> 

>       at javax.servlet.GenericServlet.init(_GenericServlet.java:168_)

> 

>       at

> org.apache.catalina.core.StandardWrapper.loadServlet(_StandardWrapper.java:1105_)

> 

>       at

> org.apache.catalina.core.StandardWrapper.load(_StandardWrapper.java:932_)

> 

>       at

> org.apache.catalina.core.StandardContext.loadOnStartup(_StandardContext.java:3915_)

> 

>       at

> org.apache.catalina.core.StandardContext.start(_StandardContext.java:4176_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(_GeronimoStandardContext.java:67_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(_GeronimoStandardContext.java:337_)

> 

>       at

> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(_GeronimoBeforeAfterValve.java:31_)

> 

>       at

> org.apache.geronimo.tomcat.GeronimoStandardContext.start(_GeronimoStandardContext.java:192_)

> 

>       at

> org.apache.catalina.core.ContainerBase.addChildInternal(_ContainerBase.java:759_)

> 

>       at

> org.apache.catalina.core.ContainerBase.addChild(_ContainerBase.java:739_)

> 

>       at

> org.apache.catalina.core.StandardHost.addChild(_StandardHost.java:524_)

> 

>       at

> org.apache.geronimo.tomcat.TomcatContainer.addContext(_TomcatContainer.java:313_)

> 

>       at

> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)

> 

> **************** CAUTION - Disclaimer *****************

> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended

> solely for the use of the addressee(s). If you are not the intended

> recipient, please notify the sender by e-mail and delete the original

> message. Further, you are not to copy, disclose, or distribute this

> e-mail or its contents to any other person and any such actions are

> unlawful. This e-mail may contain viruses. Infosys has taken every

> reasonable precaution to minimize this risk, but is not liable for any

> damage you may sustain as a result of any virus in this e-mail. You

> should carry out your own virus checks before opening the e-mail or

> attachment. Infosys reserves the right to monitor and review the

> content of all messages sent to or from this e-mail address. Messages

> sent to or from this e-mail address may be stored on the Infosys

> e-mail system.

> ***INFOSYS******** End of Disclaimer ********INFOSYS***

>