• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Bean could not be loaded by jsp

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i am using ant to create my war file and her is the syntax for the same.
<war destfile="${dest_home}/${warFileName}.war" webxml = "${warpath}/WEB-INF/web.xml">
<webinf dir="${warpath}/WEB-INF/">
<patternset id="wls" >
<include name="weblogic.xml"/>
</patternset>
</webinf>
<fileset dir="${warpath}/jsps/"/>
<fileset dir="${warpath}/WEB-INF/classes/"/>
<fileset dir="${warpath}/WEB-INF/lib/"/>
</war>
jsps folder --contains all jsp's
classes folder - all classes required.
War file is also deployed properly. but when i am hitting my first jsp i am getting this error.
class 'hello.sahil.hellobean' could not be loaded.
Need Help !
thanx
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Questions:
1. Can you please show the code in your JSP?
2. Is your bean inside a package?
3. Are the class files being jarred?
 
Sahil Sharma
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx faisal for the reply..
but i have solved the problem..
problem was in the build.xml
i was not using the correct tags to create the war..
now i have it to this....
<war destfile="${dest_home}/${warFileName}.war" webxml = "${warpath}/WEB-INF/web.xml">
<webinf dir="${warpath}/WEB-INF/">
<patternset id="wls" >
<include name="weblogic.xml"/>
</patternset>
</webinf>
<fileset dir="${warpath}/jsps/"/>
<classes dir="${warpath}/WEB-INF/classes/"/>
<lib dir="${warpath}/WEB-INF/lib/"/>
</war>
and now it works fine.
 
Not so fast naughty spawn! I want you to know about
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic