Class not found exception

26 views
Skip to first unread message

riyaz ahmed

unread,
Apr 25, 2011, 5:53:15 AM4/25/11
to google-we...@googlegroups.com
Hi,

This looks like a simple exception but i am not able to solve it..

I am using eclipse for development, my GWT server side code uses apache' HTTP request, for which jar files i have added to the eclipse class path and also to eclipse Build and export,

But when is run the web app and access the server side, i get a class not found exception, is there ny other place where i should add the jar files apart from class path and build and export

Please help,
I am stuck with this irritating error
Thanks in advance

--
Riyaz
9916220381

Ed

unread,
Apr 25, 2011, 7:30:22 AM4/25/11
to google-we...@googlegroups.com
They might need to be in your WAR .

> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

riyaz ahmed

unread,
Apr 25, 2011, 7:50:55 AM4/25/11
to google-we...@googlegroups.com
so any idea what should be done to have it in the war?
--
Riyaz
9916220381

Ed

unread,
Apr 25, 2011, 8:46:56 AM4/25/11
to google-we...@googlegroups.com
Depending on your deployment strategy, Try putting the missing jars
into your war/web-inf/lib. The jars that you have added to eclipse to
make things work in dev mode should be put into your war. I usually
point my dev lib jars directly to the war lib that way they are
always deployed correctly. There are some cases when the app server
is serving up many apps and common libs can be put into you servlet
instance.

riyaz ahmed

unread,
Apr 25, 2011, 9:02:17 AM4/25/11
to google-we...@googlegroups.com
Hi Ed 

thank you so much it fixed the problem,
Now i have one more issue, i was using apache http connection to get and post methods on the server side
i get a java.lang.NoClassDefFoundError: javax.net.ssl.HttpsURLConnection is a restricted class. Please see the Google App Engine developer's guide for more details.
error
is there any alternative to it?

Regards,
Riyaz

Ed

unread,
Apr 25, 2011, 10:00:30 AM4/25/11
to google-we...@googlegroups.com
are you writing a gwt-gae app or deploying in tomcat, jetty or some
other app server.

ed

riyaz ahmed

unread,
Apr 25, 2011, 10:02:27 AM4/25/11
to google-we...@googlegroups.com
I am writing gwt gae app

Ed

unread,
Apr 25, 2011, 10:36:26 AM4/25/11
to google-we...@googlegroups.com
I have not deployed to GAE, but there is a compatibility mode to use
during development to ensure that your implementing supported classes.
HTTPS is one of those classes.

Ed

Reply all
Reply to author
Forward
0 new messages