the first line in your .java file should be

package mypackage;

when you compile it, with the "-d ." option, it will put it in a folder called 
mypackage

Filip

----- Original Message ----- 
From: "Mike Curwen" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 1:12 PM
Subject: RE: Second Try: Can anyone explain this?


> so it's still not packaged then?  (it *must* be).
> 
> 
> > -----Original Message-----
> > From: Worley Brent - bworle [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 16, 2004 1:07 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Second Try: Can anyone explain this?
> > 
> > 
> > Tried that and got the same error.  This is what I did
> > 
> > jar -xf Xslt.jar JspXslt.class
> > 
> > Moved JspXslt.class to WEB-INF/classes
> > 
> > No change.
> > 
> > -----Original Message-----
> > From: Tim Funk [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 16, 2004 1:05 PM
> > To: Tomcat Users List
> > Subject: Re: Second Try: Can anyone explain this?
> > 
> > 
> > And I answered it here: 
> > http://marc.theaimsgroup.com/?l=tomcat-user&m=108723827315299&w=2
> > 
> > -Tim
> > 
> > Worley Brent - bworle wrote:
> > 
> > > I posted this earlier and received a few leads on what to do, but 
> > > nothing worked.  I'm hoping a second look and explanation will help.
> > > 
> > > The page that is causing the error (search.jsp) uses a 
> > taglib to load 
> > > xslt.tld (<%@ taglib prefix="acx" 
> > uri="WEB-INF/tld/xslt.tld" %>).  The
> > .tld
> > > file defines a tag named xslt that uses a class named JspXslt.  
> > > JspXslt is located in WEB-INF/lib/Xslt.jar.
> > > 
> > > So here are my questions:
> > > 
> > > 1.  Is anyone familiar with a standard Xslt.jar file that 
> > contains the 
> > > JspXslt.class object? 2.  Why would Tomcat not find JspXslt.class?
> > > 
> > > I've included the xml from the .tld file and the errors below.
> > > 
> > > <taglib>
> > >   <tlibversion>0.0</tlibversion>
> > >   <jspversion>1.0</jspversion>
> > >   <shortname>acx</shortname>
> > >   <tag>
> > >     <name>xslt</name>
> > >     <tagclass>JspXslt</tagclass>
> > >     <bodycontent>jsp</bodycontent>
> > >     <attribute>
> > >       <name>xml</name>
> > >       <required>false</required>
> > >       <rtexprvalue>true</rtexprvalue>
> > >     </attribute>
> > >     <attribute>
> > >       <name>xslt</name>
> > >       <required>true</required>
> > >       <rtexprvalue>true</rtexprvalue>
> > >     </attribute>
> > >     <attribute>
> > >       <name>nobreak</name>
> > >       <required>false</required>
> > >       <rtexprvalue>true</rtexprvalue>
> > >     </attribute>
> > >   </tag>
> > > </taglib>
> > > 
> > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > > 
> > > An error occurred at line: 55 in the jsp file: /search.jsp
> > > 
> > > Generated servlet error:
> > >     [javac] Compiling 1 source file
> > > 
> > >
> > /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/SIT/o
> > rg/apache/jsp/
> > > search_jsp.java:295: cannot resolve symbol
> > > symbol  : class JspXslt
> > > location: class org.apache.jsp.search_jsp
> > >       JspXslt _jspx_th_acx_xslt_0 = (JspXslt)
> > > _jspx_tagPool_acx_xslt_xslt_xml.get(JspXslt.class);
> > >       ^
> > > 
> > > 
> > > 
> > > An error occurred at line: 55 in the jsp file: /search.jsp
> > > 
> > > Generated servlet error:
> > >
> > /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/SIT/o
> > rg/apache/jsp/
> > > search_jsp.java:295: cannot resolve symbol
> > > symbol  : class JspXslt
> > > location: class org.apache.jsp.search_jsp
> > >       JspXslt _jspx_th_acx_xslt_0 = (JspXslt)
> > > _jspx_tagPool_acx_xslt_xslt_xml.get(JspXslt.class);
> > >                                      ^
> > > 
> > > 
> > > 
> > > An error occurred at line: 55 in the jsp file: /search.jsp
> > > 
> > > Generated servlet error:
> > >
> > /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/SIT/o
> > rg/apache/jsp/
> > > search_jsp.java:295: cannot resolve symbol
> > > symbol  : class JspXslt
> > > location: class org.apache.jsp.search_jsp
> > >       JspXslt _jspx_th_acx_xslt_0 = (JspXslt)
> > > _jspx_tagPool_acx_xslt_xslt_xml.get(JspXslt.class);
> > >  
> > > ^
> > > Note:
> > >
> > /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/SIT/o
> > rg/apache/jsp/
> > > search_jsp.java uses or overrides a deprecated API.
> > > Note: Recompile with -deprecation for details.
> > > 3 errors
> > > 
> > > 
> > > at
> > >
> > org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> > ultErrorHandle
> > > r.java:83)
> > > at
> > >
> > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> > patcher.java:3
> > > 06)
> > > at
> > > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
> > > at 
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:441)
> > > at 
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
> > > at
> > >
> > org.apache.jasper.JspCompilationContext.compile(JspCompilation
> > Context.java:5
> > > 07)
> > > at
> > >
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> > Wrapper.java:2
> > > 74)
> > > at
> > > 
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > .java:292)
> > > at 
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(Application
> > > FilterChain.java:237)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > > ain.java:157)
> > > at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > > va:214)
> > > at
> > >
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContex
> > > t.java:104)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:520)
> > > at
> > >
> > org.apache.catalina.core.StandardContextValve.invokeInternal(S
> > tandardContext
> > > Valve.java:198)
> > > at
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.ja
> > > va:152)
> > > at
> > >
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContex
> > > t.java:104)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:520)
> > > at
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:137
> > > )
> > > at
> > >
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContex
> > > t.java:104)
> > > at
> > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java:117
> > > )
> > > at
> > >
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContex
> > > t.java:102)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:520)
> > > at
> > >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java
> > > :109)
> > > at
> > >
> > org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> > ardValveContex
> > > t.java:104)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:520)
> > > at
> > > 
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> > > at
> > > 
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.
> > java:160)
> > > at
> > > 
> > org.apache.coyote.http11.Http11Processor.process(Http11Process
> > or.java:793)
> > > at
> > >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> > r.processConne
> > > ction(Http11Protocol.java:702)
> > > at
> > > 
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> > nt.java:571)
> > > at
> > >
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.jav
> > > a:644)
> > > at java.lang.Thread.run(Thread.java:534)
> > > 
> > > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > **********************************************************************
> > The information contained in this communication is 
> > confidential, is intended only for the use of the recipient 
> > named above, and may be legally privileged. If the reader of 
> > this message is not the intended recipient, you are hereby 
> > notified that any dissemination, 
> > distribution, or copying of this communication is strictly 
> > prohibited. If you have received this communication in error, 
> > please re-send this communication to the sender and delete 
> > the original message or any copy of it from your computer 
> > system. Thank You.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to