tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danno Ferrin <shem...@earthlink.net>
Subject Re: Pre-Compilation!!!!URGENT
Date Thu, 20 Jul 2000 19:53:19 GMT
Could we get a stack trace or the web page error or the tomcat log with
the error?

"Ramesh Kumar.T" wrote:
> 
> Hi,
>  And one more probem
>  i get  errors wherever i use include pages
>  i.e Using  <jsp:include> tags
> i suppose  it is because , only the servlet names have been mapped
> any fix guys
> bye
> Ramesh
> "Ramesh Kumar.T" wrote:
> 
> > Hi Nacho
> >
> > It worked it was that extra i  present there in the web.xml
> > and thanks  you guys Danno Ferrin and Nacho
> > bye
> > Ramesh
> > Nacho wrote:
> >
> > > You are using a old version ( not too old but this is corrected in the
> > > last week ) that generates and incorrect web.xml, look at the straneous
> > > i that canbe found at thi end of xml declaration...., perhaps this not a
> > > problem but correct it if it's needed or go to latest beta..
> > >
> > > Saludos ,
> > > Ignacio J. Ortega
> > >
> > > > -----Mensaje original-----
> > > > De: rameshkumar@asm-mail.ramana.india.adventnet.com
> > > > [mailto:rameshkumar@asm-mail.ramana.india.adventnet.com]En nombre de
> > > > Ramesh Kumar.T
> > > > Enviado el: miƩrcoles 19 de julio de 2000 16:53
> > > > Para: tomcat-user@jakarta.apache.org
> > > > Asunto: Re: Pre-Compilation!!!!URGENT
> > > >
> > > >
> > > > hi,
> > > > what happens when i load the jsp page is that the java file
> > > > is generated in the
> > > > scratch directory ,
> > > > and tries to compile instead of  calling the servlet(which
> > > > was generated from
> > > > the jsp pages using jspc  , i have also compiled the servlets in the
> > > > WEB-INF/classes directory)  and searches for  javac to compile
> > > > since i am bundling with jre i cannot use it.
> > > >
> > > > What i think the problem is that instead of mapping the jsp
> > > > filenames to the
> > > > servlet name it goes to  compile the jsp pages .
> > > >
> > > >
> > > > bye
> > > > Ramesh
> > > > Attachment: web.xml
> > > >
> > > > Danno Ferrin wrote:
> > > >
> > > > > Could you please send the results of the -webinc option?  I
> > > > do not have
> > > > > enough information to ascertain if this is an error in the
> > > > JspC or not.
> > > > > Also what do you mean by "file did not work," it is vague
> > > > and there are
> > > > > many possible situations, a) the JSP page is being compiled and the
> > > > > servlet is not being called, b) an error page is produced (send the
> > > > > page)  c) the servlet fails (send log info).
> > > > >
> > > > > Remember one of the fundamental theorems of using Tech
> > > > Support: The more
> > > > > precise the information is the more likely you are to get a useful
> > > > > answer or get the problem escalated.
> > > > >
> > > > > --Danno
> > > > >
> > > > > "Ramesh Kumar.T" wrote:
> > > > > >
> > > > > > Hi ,
> > > > > > Thanks i was able to generate the web.xml file but it didn't
work
> > > > > > this is how i accessed
> > > > > >
> > > > > > this is the mapping for jsp pages
> > > > > > hostname:portno/jsp/filename.jsp
> > > > > >
> > > > > > this is the mapping for servlets
> > > > > > hostname:portno/servlet/com.classname
> > > > > >
> > > > > > it works when i give the url as
> > > > > > hostname:portno/servlet/jsp.filename
> > > > > > the page gets loaded
> > > > > >
> > > > > > bye
> > > > > > Ramesh
> > > > > >
> > > > > > Danno Ferrin wrote:
> > > > > >
> > > > > > > First off, more than two explanation points are excessive.
> > > > > > >
> > > > > > > Yes, JspC only creates the Java files right now.  And
> > > > the java files are
> > > > > > > the servlet equivalent of the Jsp Page.  The name of
> > > > the page doesn't
> > > > > > > matter, but they are servlets and not Jsp Pages.  Once
> > > > you compile the
> > > > > > > classes you need to install them as servlets.  However,
> > > > there are two
> > > > > > > options that may help, "-webinc <file>" and "-webxml
> > > > <file>"  Both of
> > > > > > > these make the needed elements to map the JSP names
> > > > into servlets and a
> > > > > > > URL servlet mapping of the old JSP page name, so the url
says
> > > > > > > /foo/bar.jsp but the foo.bar servlet is called.
> > > > -webinc makes a set of
> > > > > > > elements suitable for inclusion into a web.xml file,
> > > > while -webxml makes
> > > > > > > the entire web.xml file including needed header and DTD
> > > > information.
> > > > > > >
> > > > > > > "Ramesh Kumar.T" wrote:
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > > we want to precompile the jsp files
> > > > > > > > but jspc just generates the java files
> > > > > > > >
> > > > > > > > I am not sure whether compiling the java code
> > > > generated and bundling
> > > > > > > > with tomcat will work???
> > > > > > > > because dynamically generated class files have some
> > > > odd names like
> > > > > > > > "_0002fjsp_0002ffilename........class"
> > > > > > > >
> > > > > > > > i just verified the old archives of the mailing list
> > > > but it was a bit
> > > > > > > > vague
> > > > > > > > Can somebody explain it ????
> > > > > > > >
> > > > > > > > Reply asap
> > > > > > > >
> > > > > > > > bye
> > > > > > > > Ramesh
> > > >

Mime
View raw message