Re: firstResource example problem

2009-04-14 Thread Thierry Boileau
Hello hudarsono and hnilsen,

as said by hnilsen (and the firstSteps tutorial), the 3 mentionned jars 
must be added the the directory of librairies. We can be more precise 
and refer to /WEB-INF/lib.
Docs are updated.

Best regards,
Thierry Boileau

 Dear all,

 I just starting to learn restlet, and found this problem. I'm following 
 firstResource tutorial with eclipse and glassfish integrated to eclipse.
 After write all the code,and importing :
 - org.restlet.jar
 - com.noelios.restlet.jar
 - com.noelios.restlet.ext.servlet_2.5.jar

 and run the servlet, I got the following error :

 javax.servlet.ServletException: PWC1397: Wrapper cannot find servlet class 
 com.noelios.restlet.ext.servlet.ServerServlet or a class it depends on
 root cause

 java.lang.ClassNotFoundException: 
 com.noelios.restlet.ext.servlet.ServerServlet
 note The full stack traces of the exception and its root causes are available 
 in the Sun GlassFish Enterprise Server v2.1 logs.

 But when I was deploying .war example downloaded from the site, it was 
 deployed successfully. Does anybody know what cause this problem?

 THanks

 Dear hudarsono,

 You'll need to copy the three jar files into /WEB-INF/lib inside your 
 deployment (I use Tomcat + IntelliJ) - I struggled with this as well, and the 
 error message provided didn't exactly point me in the right direction, but I 
 did this and it worked.

 Surely, the tutorial you're reading could contain this information more 
 explicitly. Hope this helps.


 Best regards,
 hnilsen


--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1705334


Re: firstResource example problem

2009-04-12 Thread hnilsen
Dear all,

I just starting to learn restlet, and found this problem. I'm following 
firstResource tutorial with eclipse and glassfish integrated to eclipse.
After write all the code,and importing :
- org.restlet.jar
- com.noelios.restlet.jar
- com.noelios.restlet.ext.servlet_2.5.jar

and run the servlet, I got the following error :

javax.servlet.ServletException: PWC1397: Wrapper cannot find servlet class 
com.noelios.restlet.ext.servlet.ServerServlet or a class it depends on
root cause

java.lang.ClassNotFoundException: com.noelios.restlet.ext.servlet.ServerServlet
note The full stack traces of the exception and its root causes are available 
in the Sun GlassFish Enterprise Server v2.1 logs.

But when I was deploying .war example downloaded from the site, it was deployed 
successfully. Does anybody know what cause this problem?

THanks

Dear hudarsono,

You'll need to copy the three jar files into /WEB-INF/lib inside your 
deployment (I use Tomcat + IntelliJ) - I struggled with this as well, and the 
error message provided didn't exactly point me in the right direction, but I 
did this and it worked.

Surely, the tutorial you're reading could contain this information more 
explicitly. Hope this helps.


Best regards,
hnilsen
-- 
View this message in context: 
http://n2.nabble.com/firstResource-example-problem-tp2538870p2619243.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1639583


firstResource example problem

2009-03-26 Thread hudarsono
Dear all,

I just starting to learn restlet, and found this problem. I'm following 
firstResource tutorial with eclipse and glassfish integrated to eclipse.
After write all the code,and importing :
- org.restlet.jar
- com.noelios.restlet.jar
- com.noelios.restlet.ext.servlet_2.5.jar

and run the servlet, I got the following error :

javax.servlet.ServletException: PWC1397: Wrapper cannot find servlet class 
com.noelios.restlet.ext.servlet.ServerServlet or a class it depends on
root cause

java.lang.ClassNotFoundException: com.noelios.restlet.ext.servlet.ServerServlet
note The full stack traces of the exception and its root causes are available 
in the Sun GlassFish Enterprise Server v2.1 logs.

But when I was deploying .war example downloaded from the site, it was deployed 
successfully. Does anybody know what cause this problem?

THanks
-- 
View this message in context: 
http://n2.nabble.com/firstResource-example-problem-tp2538870p2538870.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1431113