tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From János Löbb <janos.l...@yale.edu>
Subject Re: SessionExample from the examples webapp
Date Thu, 28 Apr 2011 15:41:28 GMT
Hi Chris,

Thanks a lot for the suggestion.  Where should I look for those scripts ?

In the meantime I solved - hopefully - my problem.  For some reason the javac did not recognized
the util folder or the util package declaration in HTMLFilter.java in the util folder.  So
I moved it out from the util folder one level up and commented out the package declaration.
 The this line of javac worked:

bml0065:tomcat administrator$ sudo javac -classpath lib/servlet-api.jar:webapps/examples/WEB-INF/classes
-verbose webapps/examples/WEB-INF/classes/SessionExample.java 
[parsing started webapps/examples/WEB-INF/classes/SessionExample.java]
[parsing completed 18ms]
[search path for source files: lib/servlet-api.jar,webapps/examples/WEB-INF/classes]
[search path for class files: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar,/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar,/System/Library/Java/Extensions/AppleScriptEngine.jar,/System/Library/Java/Extensions/dns_sd.jar,/System/Library/Java/Extensions/j3daudio.jar,/System/Library/Java/Extensions/j3dcore.jar,/System/Library/Java/Extensions/j3dutils.jar,/System/Library/Java/Extensions/jai_codec.jar,/System/Library/Java/Extensions/jai_core.jar,/System/Library/Java/Extensions/mlibwrapper_jai.jar,/System/Library/Java/Extensions/MRJToolkit.jar,/System/Library/Java/Extensions/QTJava.zip,/System/Library/Java/Extensions/vecmath.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar,/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar,lib/servlet-api.jar,webapps/examples/WEB-INF/classes]
[loading java/io/IOException.class(java/io:IOException.class)]
[loading java/io/PrintWriter.class(java/io:PrintWriter.class)]
[loading java/util/Date.class(java/util:Date.class)]
[loading java/util/Enumeration.class(java/util:Enumeration.class)]
[loading java/util/ResourceBundle.class(java/util:ResourceBundle.class)]
[loading javax/servlet/ServletException.class(javax/servlet:ServletException.class)]
[loading javax/servlet/http/HttpServlet.class(javax/servlet/http:HttpServlet.class)]
[loading javax/servlet/http/HttpServletRequest.class(javax/servlet/http:HttpServletRequest.class)]
[loading javax/servlet/http/HttpServletResponse.class(javax/servlet/http:HttpServletResponse.class)]
[loading javax/servlet/http/HttpSession.class(javax/servlet/http:HttpSession.class)]
[loading javax/servlet/GenericServlet.class(javax/servlet:GenericServlet.class)]
[loading javax/servlet/Servlet.class(javax/servlet:Servlet.class)]
[loading java/lang/Object.class(java/lang:Object.class)]
[loading javax/servlet/ServletConfig.class(javax/servlet:ServletConfig.class)]
[loading java/io/Serializable.class(java/io:Serializable.class)]
[loading java/lang/Override.class(java/lang:Override.class)]
[loading java/lang/annotation/Annotation.class(java/lang/annotation:Annotation.class)]
[loading java/lang/annotation/Target.class(java/lang/annotation:Target.class)]
[loading java/lang/annotation/ElementType.class(java/lang/annotation:ElementType.class)]
[loading java/lang/annotation/Retention.class(java/lang/annotation:Retention.class)]
[loading java/lang/annotation/RetentionPolicy.class(java/lang/annotation:RetentionPolicy.class)]
[checking SessionExample]
[loading java/lang/Error.class(java/lang:Error.class)]
[loading java/lang/Exception.class(java/lang:Exception.class)]
[loading java/lang/Throwable.class(java/lang:Throwable.class)]
[loading java/lang/RuntimeException.class(java/lang:RuntimeException.class)]
[loading java/lang/String.class(java/lang:String.class)]
[loading javax/servlet/ServletResponse.class(javax/servlet:ServletResponse.class)]
[loading java/io/Writer.class(java/io:Writer.class)]
[loading javax/servlet/ServletRequest.class(javax/servlet:ServletRequest.class)]
[loading webapps/examples/WEB-INF/classes/HTMLFilter.java]
[parsing started webapps/examples/WEB-INF/classes/HTMLFilter.java]
[parsing completed 4ms]
[loading java/lang/StringBuilder.class(java/lang:StringBuilder.class)]
[loading java/lang/AbstractStringBuilder.class(java/lang:AbstractStringBuilder.class)]
[loading java/lang/CharSequence.class(java/lang:CharSequence.class)]
[loading java/lang/Comparable.class(java/lang:Comparable.class)]
[loading java/lang/StringBuffer.class(java/lang:StringBuffer.class)]
[wrote webapps/examples/WEB-INF/classes/SessionExample.class]
[checking HTMLFilter]
[wrote webapps/examples/WEB-INF/classes/HTMLFilter.class]
[total 849ms]

bml0065:tomcat administrator$ pwd
/usr/local/tomcat


I still would like to know why it fails when the HTMLFilter.java and HTMLFilter.class is in
the util folder.  It beats me, but if someone know why, I will drink a good glass of vine
for his/her health in the weekend :-)
I just jar-ed a war from it and will deploy it soon to see if it work for me.

Thanks as always,

Jábnos
On Apr 28, 2011, at 11:24 AM, Christopher Schultz wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> János,
> 
> On 4/27/2011 4:26 PM, János Löbb wrote:
>> Adding some -claspath based upon man javac, I reduced the number of errors to two.
> 
> Save yourself some time and use the build scripts that come with Tomcat:
> they are capable of building TC with no errors because they include all
> the dependencies, etc. in whatever classpath is necessary at the time.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk25hsIACgkQ9CaO5/Lv0PA7kQCgws+TcyXomdCY9LvXkhhxxL2i
> RRwAnRM2L2FGGLGvJF0/Ep21ZJzb2vO7
> =947o
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message