• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Got stuck - please help

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there !
I have installed a demo version of Weblogic server on my NT using the install shield. I have written a simple helloworld servlet and I am trying to invoke it from my browser, but I keep getting Error 500.
But, I am able to invoke other servelts that comes with weblogic server( for eg: http://localhost:7001/phone).
What I have done so far:
1) Compiled the Sathu.java prog successfully & placed the generated Sathu.class file in the default examples\servlets\Sathu.class
2) I made the following entries in the d:\weblogic.properties file.
weblogic.httpd.register.sathu=examples.servlets.Sathu
(this is similar to an exisitng entry :
weblogic.httpd.register.simpleFormServlet=examples.servlets.SimpleFormServlet
)
3)When I open the weblogic console, i find this sathu servlet under other registered servlets.
Now, my problem is:
I open my browser and type http://localhost:7001/sathu
it gives me a "Error 500--Internal Server Error"
Can some body please tell me where I am going wrong.
Besides,
4) From the console, I clicked on the sathu servlet & clicked on the "Load Servlet" button, it gave me a error saying "Property change error for property "Load".
Unable to load servlet
". WHy is this happening? In fact, I am getting this error for all the servlets.
I was able to register this servlet & invoke it successfully on java web server, but I am not able to do so on Weblogic server - Please help.
Thanks a million,
sathvathsan
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add the following to your Weblogic properties file.
weblogic.debug.httpd.servlet=true

You will be able to see a stackTrace of the exception/error that's occurring.
Hope that helps!
-Asuthosh.
 
Sathvathsan Sampath
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Asuthosh,
I tried what u said, but unfortunately, I am still stuck with it!
When I first invoke http://localhost:7001/sathu/
I get the following stack trace:

javax.servlet.ServletException: Servlet class: examples.servlets.Sathu couldn't be instantiated
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:376)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:338)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

In subsequent attempts, by clicking refresh, I get the following stack trace:

weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ getServlet() returned null!! ]
at weblogic.utils.Debug.assert(Debug.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:104)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

could you please me with this??
thanks in anticipation,
sathvathsan
 
mooooooo ..... tiny ad ....
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic