• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deployment on Tomcat 6 error: Unable to compile class for JSP

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Java Friends,

during the last days, I tried to deploy a simple programme with JSP and "Beans" (with SQL access) on a Tomcat6 (Jakarta Version, without Apache) on an external Server.

Same Programme runs fine in my eclipse environment, Eclipse Indigo with BIRT function and Tomcat7. No Problems here.

On the external server Tomcat6, it shows the first page, JSP without a bean, but not the second, a JSP with Bean.

The error msg is:
Unable to compile class for JSP: An error occurred at line: 41 in the jsp file: /TemplateSQL/sqlInsert.jsp sqlCourseBean cannot be resolved to a type 38: String ausgabe1=""; 39: 40: 41: sqlCourseBean c1 = new sqlCourseBean()


The war-file is not recognized on the server, but if I unzip the war-file from my client, it shows at least the first page.

The tree structure is like in a text book:

ROOT/TemplateSQL/sqlInsert.jsp

ROOT/TemplateSQL/WEB-INF/classes/sqlCourseBean.class
and
ROOT/TemplateSQL/WEB-INF/classes/sqluniversal/sqlCourseBean.class

ROOT/TemplateSQL/WEB-INF/web.xml
ROOT/TemplateSQL/META-INF/MANIFEST.MF


The header lines of this above files looks like:

ROOT/TemplateSQL/sqlInsert.jsp



ROOT/TemplateSQL/WEB-INF/classes/sqlCourseBean.class
and
ROOT/TemplateSQL/WEB-INF/classes/sqluniversal/sqlCourseBean.class



ROOT/TemplateSQL/WEB-INF/web.xml


ROOT/TemplateSQL/META-INF/MANIFEST.MF


I tried different solutions with different possibilities, but nothings worked out?

Why?
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

ROOT/TemplateSQL/WEB-INF/classes/sqlCourseBean.class
and
ROOT/TemplateSQL/WEB-INF/classes/sqluniversal/sqlCourseBean.class



Why do you have 2 java files with the same name. Which one are you trying to refer on your jsp page?
 
Wolfgang Sippach
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should refer to the one in folder sqluniversal, but I found the other one too. Does not gave any sense to me
 
Wolfgang Sippach
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I came also today across a lot of pages, who are explaining deployment and Ant for Eclipse. But I still seem to miss a good sample to find out, how I can implement all the classpath, variables, and s on on the server site (Tomcat 6) instead of my eclipse environment, best would be, if it would be explained with sceenshots.

Any Idea about a link, especially for ANT and the parameters, that there are two different ANT under build.xml -> run as -> ANT FILE.... one for the local environment in eclipse, and one for the server site?
reply
    Bookmark Topic Watch Topic
  • New Topic