Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

java error in apache tomcat

Thread view: 
bhamoo@gmail.com - 23 Jun 2007 05:12 GMT
guys,

I am getting an java error when i run a java app in tomcat. here it is
what I get in the browser

-----------------------
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.

exception
javax.servlet.ServletException: Servlet execution threw an exception
    com.unanet.servlet.GzipFilter.doFilter(GzipFilter.java:39)
    com.unanet.servlet.AccessLogFilter.doFilter(AccessLogFilter.java:43)

root cause
java.lang.NoClassDefFoundError
    com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:833)
    com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:777)
    com.unanet.servlet.ActionServlet.doService(ActionServlet.java:64)
    com.unanet.servlet.ActionServlet.doGet(ActionServlet.java:31)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.unanet.servlet.GzipFilter.doFilter(GzipFilter.java:39)
    com.unanet.servlet.AccessLogFilter.doFilter(AccessLogFilter.java:43)
-------------------------------

can some one please help.

RTR
Chris Smith - 23 Jun 2007 06:06 GMT
> I am getting an java error when i run a java app in tomcat. here it is
> what I get in the browser

The complaint is that you're missing some library or class that's needed
for the application to work.  It looks like the missing class might be
the database drivers.  Does that help?

Signature

Chris Smith

bhamoo@gmail.com - 23 Jun 2007 06:47 GMT
> <bha...@gmail.com> wrote:
> > I am getting an java error when i run a java app in tomcat. here it is
[quoted text clipped - 6 lines]
> --
> Chris Smith

-------------------------------

Chris,

Thanks for the reply, it does help but how do I know what is missing
if it's drivers where can I get and where do I need to place it so
tomcat or java see it.
I am new top tomcat and Java.
IS there a way you can give some information in detail.

thanks for your help
RTR
bencoe@gmail.com - 23 Jun 2007 08:53 GMT
On Jun 23, 1:47 am, bha...@gmail.com wrote:

> > <bha...@gmail.com> wrote:
> > > I am getting an java error when i run a java app in tomcat. here it is
[quoted text clipped - 19 lines]
> thanks for your help
> RTR

To hunt down what you're missing just read the error message
closely...

java.lang.NoClassDefFoundError
       com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:
833)
       com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:
777)
       com.unanet.servlet.ActionServlet.doService(ActionServlet.java:
64)
       com.unanet.servlet.ActionServlet.doGet(ActionServlet.java:31)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       com.unanet.servlet.GzipFilter.doFilter(GzipFilter.java:39)

com.unanet.servlet.AccessLogFilter.doFilter(AccessLogFilter.java:43)

This suggests to me that you are probably misisng a class called
Unanet.class... which seems to be packaged in com.unanet.servlet...
You'll need to find a jar file that holds this mysterious library. If
you're completely lost, start un-jaring some files and investigating:

jar -xvf something.jar

Ben.
Chris Smith - 23 Jun 2007 16:51 GMT
>  java.lang.NoClassDefFoundError
>         com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:833)
>         com.unanet.servlet.Unanet.validateDatabaseVersion(Unanet.java:777)
>         com.unanet.servlet.ActionServlet.doService(ActionServlet.java:64)

> This suggests to me that you are probably misisng a class called
> Unanet.class...

Nah, Unanet itself is there.  Actually the missing class is the one that
is used by Unanet on line 833 of its source code.  From the names of the
methods, I'm guess that's database drivers.

For RTR: Do you know what database this application uses?  That may be a
hint as to what you need.  Or, if you have the source code, look at line
833 of com/unanet/servlet/Unanet.java and tell us what's there.

Signature

Chris Smith

bhamoo@gmail.com - 23 Jun 2007 18:08 GMT
> <ben...@gmail.com> wrote:
> >  java.lang.NoClassDefFoundError
[quoted text clipped - 14 lines]
> --
> Chris Smith

The database this application uses is MSsql2000. So from what you are
saying is that this is a database driver issue.

I have the insatlled files but cannot find "unanet.java", i dont have
the source code for this app.

thanks again.

rtr
bhamoo@gmail.com - 23 Jun 2007 18:40 GMT
On Jun 23, 1:08 pm, bha...@gmail.com wrote:

> > <ben...@gmail.com> wrote:
> > >  java.lang.NoClassDefFoundError
[quoted text clipped - 24 lines]
>
> rtr

-------------

Also wanted to add this appilcation uses this driver for database.

unatime.database.driver=net.sourceforge.jtds.jdbc.Driver

if this helps you.
bencoe@gmail.com - 23 Jun 2007 18:49 GMT
On Jun 23, 1:40 pm, bha...@gmail.com wrote:
> On Jun 23, 1:08 pm, bha...@gmail.com wrote:
>
[quoted text clipped - 34 lines]
>
> if this helps you.

This JDBC library works great, is trying another connector out an
option?

com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
bencoe@gmail.com - 23 Jun 2007 19:07 GMT
.

> This JDBC library works great, is trying another connector out an
> option?
>
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource;

This is an actual link to the JDBC library I'm currently using with
servlets:

http://dev.mysql.com/downloads/connector/j/3.1.html
bencoe@gmail.com - 23 Jun 2007 20:03 GMT
On Jun 23, 1:08 pm, bha...@gmail.com wrote:

> > <ben...@gmail.com> wrote:
> > >  java.lang.NoClassDefFoundError
[quoted text clipped - 24 lines]
>
> rtr

I just noticed you're using MSSql2000, I don't think my suggestion
about using another connector is viable, I use MySQL. Sorry about the
confusion,

and good luck,

Ben.
Chris Smith - 24 Jun 2007 16:47 GMT
> The database this application uses is MSsql2000. So from what you are
> saying is that this is a database driver issue.
>
> I have the insatlled files but cannot find "unanet.java", i dont have
> the source code for this app.

Okay.  Since we're not even 100% sure what's going on and you don't have
the source code that would tell us, now would be a good time for you to
contact Unanet's support and ask them for help.

Signature

Chris Smith



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.