• 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

jsp

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I copied MyBean.class file in c:\jws\classes folder of javawebserver2.0.And copeid Test.jsp file in public_html foldet of javawebserver2.0.
when i typed http://localhost:8080/Test.jsp iam getting following error.i will be thankfull if somebady help me.

Error during compilation :
C:\jws\tmpdir\default\pagecompile\jsp\_test.java:74: Class pagecompile.jsp.MyBean not found in type declaration.
MyBean first = null;
^
C:\jws\tmpdir\default\pagecompile\jsp\_test.java:77: Class pagecompile.jsp.MyBean not found in type declaration.
first= (MyBean)
^
C:\jws\tmpdir\default\pagecompile\jsp\_test.java:82: Class pagecompile.jsp.MyBean not found in type declaration.
first = (MyBean) Beans.instantiate(getClassLoader(), "MyBean");
^
3 errors
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all. Can you read this http://www.javaranch.com/names.jsp and re-register with a name that complies with this rule.
Secondly, can you post the JSP code so we can see what's going on.
Thanks
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And third, unless you have a business directive not to use it.. you should REALLY use Tomcat, and not javawebserver.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic