Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Servlets NOT working, .....very strange.

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a jsp that calls a servlet. It works.
Ok, then I modify the servlet code a bit, nothing major. I take the class file, put it into my .war file (overwriting the original servlet.class file) and put that into my ear. Not my ear really, my .ear file.
The error I get from the Weblogic server confuses me, it states:
javax.servlet.ServletException: Servlet class: 'com.mycompany.document.DocServlet' could not be lo
aded - the requested class wasn't found in the classpath: 'C:\bea\wlserver6.0\config\mydomain\appli
cations\.wl_temp_do_not_delete\wl_local_comp62980.war;C:\bea\wlserver6.0\.\config\mydomain\applicati
ons\.wl_temp_do_not_delete\WEB-INF\_tmp_war_myserver_myserver_MyWebApp'
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:532)
If I copy the old servlet back in to the .war it works fine. What is all this tmp folder stuff? Can't I just modify a java file, compile it and put the class file in the .war file??? If not, what is the best practice if you have to modify a servlet and then get the newer version of servlet to work in Weblogic?
Steve
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic