Hi Greg,

Thanks for posting your steps.  The Java sample code really needs a
build file.

-alex

On Dec 31 2007, 6:29 pm, gregc <[EMAIL PROTECTED]> wrote:
> I was also stuck trying to compile ProcessResponseServlet.java so
> perhaps it's worth recording what I did to resolve the problem.
>
> I installed tomcat 5.5.25 at D:\apache-tomcat and unpacked the
> samltool.war in the webapps directory.  I was able to test the code
> one through the stage I tests with not too much trouble.  Then I moved
> onto Stage II and wanted to modify ProcessResponseServlet.java, so I
> first tried to compile it unaltered.
>
> I got 35 errors to start with when compiling
> ProcessResponseServlet.java, despite having the lib jar files in my
> classpath.
>
> My classpath was:
>
> D:\apache-tomcat\apache-tomcat-5.5.25\webapps\samltool\WEB-INF\lib
> \catalina-root.jar;D:\apache-tomcat\apache-tomcat-5.5.25\webapps
> \samltool\WEB-INF\lib\commons-
> codec-1.3.jar;D:\apache-tomcat\apache-tomcat-5.5.25\webapps\samltool
> \WEB-INF\lib\jdom.jar;D:\apache-tomcat\apache-tomcat-5.5.25\webapps
> \samltool\WEB-INF\lib\xml
> sec.jar;D:\apache-tomcat\apache-tomcat-5.5.25\webapps\samltool\WEB-INF
> \lib\xmldsig.jar
>
> e.g.
>
> javac -cp %CLASSPATH% ProcessResponseServlet.java
> ProcessResponseServlet.java:22: package util does not exist
> import util.SamlException;
> ....
>
> It couldn't find SamlException.java so I put the saml source files
> under samltool\WEB-INF  (that's src\servlets and src\util) and
> referenced that in my classpath for the javac.   That got rid of the
> util.SamlException group of errors and I ended up with 14 errors:
>
> javac -cp %CLASSPATH%;D:\apache-tomcat\apache-tomcat-5.5.25\webapps
> \samltool\WEB
> -INF\src ProcessResponseServlet.java
> ProcessResponseServlet.java:39: package javax.servlet does not exist
> import javax.servlet.ServletException;
> ....
>
> The following is the command that worked in the end:
>
> javac -cp %CLASSPATH%;D:\apache-tomcat\apache-tomcat-5.5.25\webapps
> \samltool\WEB-INF\src;D:\apache-tomcat\apache-tomcat-5.5.25\common\lib
> \servlet-api.jar ProcessResponseServlet.java
>
> Greg
>
> On Nov 29 2007, 6:12 am, "Alex (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Can you post the classpath that worked for you?  It might help someone
> > else who gets the same error.
>
> > -alex
>
> > On Nov 28, 8:58 am, tonyrodman <[EMAIL PROTECTED]> wrote:
>
> > > yeah i did hat actually... but it didn't work first...
> > > then i found the problem: the order of the paths u put in the
> > > classpath counts.... :)
> > > so i arranged it
> > > thanks anyway
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to