Discussions

Web tier: servlets, JSP, Web frameworks: Stuck Up at the Servlet Example

  1. Stuck Up at the Servlet Example (10 messages)

    Hi,
    Iam working on servlets using weblogic server installed in my lab.
    Iam working with SqlServlet which is in examples\intro directory of weblogic installation.After starting my server
    iam getting this error message in webserver log.It Is,
    Cannot find resource 'SqlServlet' in document root 'D:\weblogic\myserver\servletclasses\examples\intro'.
    I tried to experiment with my weblogic.properties file in many ways.And now iam much confused which one to comment and which one not to.For this forum friends who r not aware of my example, it is at
    http://www.weblogic.com/docs51/intro/intro_servlet.html.

    And should i set up weblogic as my HTTP Server...Any suggestions & comments would be greatly appreciated..
    Thanks,
    Vydehi.......

    Threaded Messages (10)

  2. Stuck Up at the Servlet Example[ Go to top ]

    Hi Vydehi,

    Have u included the line in the weblogic properties file

    weblogic.httpd.register.sql=examples.servlets.SqlServlet

    in USER-WRITTEN AND DEMO SERVLET REGISTRATIONS para..?

    Regards
    Saran
  3. Stuck Up at the Servlet Example[ Go to top ]

    Hi Vydehi,

    Sorry i made a mistake in my previous reply...

    u have to include the following line:

    weblogic.httpd.register.sql=examples.intro.SqlServlet

    in USER-WRITTEN AND DEMO SERVLET REGISTRATIONS para

    Hope now it will work..

    Regards
    Saran
  4. Stuck Up at the Servlet Example[ Go to top ]

    Hi Saran,
    Thnks for u'r response.i 've included all the lines below

    weblogic.httpd.register.sql=examples.intro.SqlServlet

    weblogic.http.register.SqlServlet=\examples.intro.SqlServlet


    weblogic.http.initArgs.SqlServlet=\dataSource=demoDataSource
      
    in user written & demo servlet registrations.Iam getting the same error.
    Cannot find resource 'SqlServlet' in document root 'C:\weblogic\myserver\servletclasses\examples\intro'.Is my document root correct.And one more thing do i need to set up my weblogic as http server??

    expecting reply,
    Vydehi.
  5. Stuck Up at the Servlet Example[ Go to top ]

    Hi,

    I donn't know whether it's typo error or really u missed..
    U mentioned that u included these lines..

    weblogic.http.register.SqlServlet=\examples.intro.SqlServlet
    weblogic.http.initArgs.SqlServlet=\dataSource=demoDataSource
    But it should be like this..

    weblogic.http.register.sql=examples.intro.SqlServlet
    weblogic.http.initArgs.sql=\
                             dataSource=demoDataSource

    and u should also include the following line in WEBLOGIC DEMO CONNECTION POOL PROPERTIES para.

    weblogic.jdbc.TXDataSource.demoDataSource=demoPool
       
    If u done the same thing, then it should work.. Reply me wht u actually done..

    I think i'm little bit crazzzy.. i answered u'r query in all the three forums...!!

    Cheers
    Saran

       
  6. Stuck Up at the Servlet Example[ Go to top ]

    Hi Saran,
    I just copied & pasted u'r lines..even then it didn't work.Iam getting the same old document root message in server log,and the same old ERROR-404 message in the browser.Can u give me any other clue if iam not bothering...
    Regards
    Vydehi.
  7. Stuck Up at the Servlet Example[ Go to top ]

    Hi,

    If u can please send me u'r weblogic.properties file for my email id.. i will try to solve u'r problem..

    my id : saran_v at yahoo dot com

    Saran
  8. Stuck Up at the Servlet Example[ Go to top ]

    hai vydehi,
         can u give your mail id so that i can send the properties file which u can replace in u r weblogic.its a clumsy file u can't understand it if u have through understand which will be gained over a period of time.(by practice).my id is chravindraa at rediffmail dot com
      cheers... bye
              RAVINDRA
  9. Stuck Up at the Servlet Example[ Go to top ]

    Hi,
    This is Vydehi again.What is dataSource in this line.
    weblogic.http.initArgs.sql=\
                             dataSource=demoDataSource

    In my log file a message is displayed in this way:
    <WebLogicServer> Found undeclared property: dataSource.
    Could anyone explain please!!!
    Thanks,
    Vydehi.

  10. Stuck Up at the Servlet Example[ Go to top ]

    Hi ,
    I got it atlast.Thanks,
    Vydehi
  11. Stuck Up at the Servlet Example[ Go to top ]

    Hai Vydehi,

    i am observing your replies what you did already.i am new to weblogic server so please try to place weblogic properties file here and all related information regarding to weblogic.

    thank u
    shaik chan basha