Cannot access servlet in tomcat4

I'm a newbie to server side java. Please guide me.
Installed Apache2 and Tomcat4 in Win2K. The installation seems OK because the index pages of both apache and tomcat appear when accessed as localhost on browser.
I wrote (in fact, copied from a tutorial) a servlet, compiled and placed it at
tomcat_root\webapps\ROOT\WEB-INF\classes as suggested in the tutorial.
But it doesn't work when I access as:
http://localhost:8080/servlet/MyServlet
It reports a HTTP Status 404 error.
By the way, when I run it as an example servlet it works fine. By that I mean I placed it inside the pre-existing tomcat_root\webapps\examples\WEB-INF\classes folder and ran as http://localhost:8080/examples/servlet/MyServlet
My another puzzle is why the servlet needs to be accessed that way. I don't see any 'servlet' folder anywhere under my Tomcat installation, but it seems to be a must at the URL calling the servlet.
Thank you.

Take a look at the web.xml files, both in conf and in WEB-INF, you'll learn that the /servlet/ url is mapped to the invoker that tries to find your classes, but is bad to have active in production.
Basically, you need to tell tomcat, through your web.xml the mapping between url (you may choose something other that servlet) and your actual servlets.
Patrick

Similar Messages

  • Cannot access servlet

    Hi,
    I have a couple of servlets that run on JavaWebServer2.0 which resides on my local computer too.
    Everythings runs fine and correctly on my local computer: I open up a browser, access my local computer and run the servlet, everything seems fine . But when I go to another computer and connect to my computer using IP address, only the HTML and other xml files works, I cannot access/call servlet program from other computer, I got error message whenever my programm request a servlet call. Could anyone tell me what shouldbe change in the server setup/configuration or servlet so that the problems could be fixed.
    Thank you very much
    BM

    Hi,
    Can you provide some additional details such as:
    1. what browser you are using from the other machine (including version)
    2. what is the error you get when you try to access the servlet from the other machine
    3. have you tried accessing the servlet using a hostname rather than the IP address?

  • 404 error;Cannot access servlet resource

    When I package my servlet class and html page into a war and deploy it in Sun Application server, it deploys alright but the servlet functionality in the deployed war does not work. I am given an error message. 404.......... and then it displays the servlet path and says the resource is not available. I am now learning servlets and I need help.

    EDIT: my double bad... I thought this was my thread... IGNORE THIS
    Argh! My bad. System clock must be out of whack at work. Thanks for trying to help (although I know what 404 means!) and thanks for policing too.
    So, I'm aware this a problem of "not finding" but it's the "how to make the server FIND" that I'm looking for. Seems to me like I'm mapping correctly...
    Thanks again for any help.
    e.
    Edited by: skriv on Jun 5, 2008 1:21 PM

  • Cannot access directory javax/servlet

    I am having a problem getting started here with Borland JBuilder 8 SE.
    I have Tomcat installed and it runs fine with the servlets/jsp pages I ran from the index page when you first install Tomcat.
    I am running windows 2000. When I installed JBuilder the Java 2 SDK v1.4.1 was installed with it. I have run applets... java.exe is located in the jbuilder folder, don't know if this is a problem. I have set my JAVA_HOME environment variable to point to the bin folder in the 1.4.1 java.exe location.
    I am following a book that works with servlets and jsp primarily. When I typed in my first servlet that I copied from the book, JBuilder gives me a document location error:
    cannot access directory: javax/servlet at line...
    it is pointing to my import statement: "import javax.servlet.*;" and "import javax.servlet.http.*;".
    I have tried to add the servlet.jar file to my project but the results are the same.
    Can anybody give me a hand?
    thanks,
    Rob

    The fastest way for JBuilder to see it is just to create a library for servlet.jar and add it to the project.
    Tools->Configure Libraries->New
    Then browse to the location of the servlet.jar and call the library SERVLET.
    Project->Project Settings->Required Libraries
    Then add this library and try to build your project.
    JBuilder will automatically add it to the classpath when it compiles the project that way.

  • Cannot find servlet class

    I have a new computer and I have installed the latest version of Tomcat but kept the old free version of the Sun One Studio which I still had a setup file for (as I couldn't find it on this site anywhere for free anymore). The new version of Tomcat puts my webapps in a different area now being s1studio\tomcat401\webapps but there is another area for the server: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\tomcat-docs. I use the first directory and that shows my jsp's etc but it doesn't find my servlets.
    My problem I am having is that my log file is showing this:
    2005-10-24 10:27:48 StandardHost[localhost]: Removing web application at context path /webdav
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /examples
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /tomcat-docs
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path
    2005-10-24 10:27:52 StandardHost[localhost]: Removing web application at context path /manager
    2005-10-24 10:28:11 WebappLoader[manager]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\manager
    2005-10-24 10:28:11 StandardManager[manager]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[manager]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[manager]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 ContextConfig[manager]: Configured an authenticator for method BASIC
    2005-10-24 10:28:11 StandardWrapper[manager:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[manager:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT
    2005-10-24 10:28:11 WebappLoader[]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\_
    2005-10-24 10:28:11 StandardManager[]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[]: Seeding of random number generator has been completed
    2005-10-24 10:28:11 ContextConfig[]: Added certificates -> request attribute Valve
    2005-10-24 10:28:11 StandardWrapper[:default]: Loading container servlet default
    2005-10-24 10:28:11 default: init
    2005-10-24 10:28:11 StandardWrapper[:invoker]: Loading container servlet invoker
    2005-10-24 10:28:11 invoker: init
    2005-10-24 10:28:11 jsp: init
    2005-10-24 10:28:11 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\tomcat-docs
    2005-10-24 10:28:11 WebappLoader[tomcat-docs]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\tomcat-docs
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:11 StandardManager[tomcat-docs]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[tomcat-docs]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[tomcat-docs:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:28:12 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\webdav
    2005-10-24 10:28:12 WebappLoader[webdav]: Deploying class repositories to work directory C:\Program Files\s1studio_jdk\s1studio\tomcat401\work\localhost\webdav
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding random number generator class java.security.SecureRandom
    2005-10-24 10:28:12 StandardManager[webdav]: Seeding of random number generator has been completed
    2005-10-24 10:28:12 ContextConfig[webdav]: Added certificates -> request attribute Valve
    2005-10-24 10:28:12 StandardWrapper[webdav:default]: Loading container servlet default
    2005-10-24 10:28:12 default: init
    2005-10-24 10:28:12 StandardWrapper[webdav:invoker]: Loading container servlet invoker
    2005-10-24 10:28:12 invoker: init
    2005-10-24 10:28:12 jsp: init
    2005-10-24 10:29:55 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:29:55 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.ClassNotFoundException: CourseList
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:801)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    2005-10-24 10:54:35 StandardWrapper[:org.apache.catalina.INVOKER.CourseList]: Marking servlet org.apache.catalina.INVOKER.CourseList as unavailable
    2005-10-24 10:54:35 invoker: Cannot allocate servlet instance for path /servlet/CourseList
    javax.servlet.ServletException: Wrapper cannot find servlet class CourseList or a class it depends on
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:396)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    and so it goes on.
    My classes are in the directory as:
    C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF\classes\virtualward\java
    and my web.xml is here: C:\Program Files\s1studio_jdk\s1studio\tomcat401\webapps\ROOT\servervirtualward\WEB-INF
    and the code for the CourseList servlet is:
    <servlet>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <servlet-class>virtualward.java.CourseList</servlet-class>
           </servlet>
    <servlet-mapping>
                   <servlet-name>virtualward.java.CourseList</servlet-name>
                   <url-pattern>/servlet/CourseList</url-pattern>
       </servlet-mapping>The example servlets work fine and all .jsp's work within my project.
    Can anyone spot what's wrong?
    Thanks!!!

    I did a basic .jsp page and that worked so at least that's something. Here is my code for the .jsp that won't work. It worked perfectly on my old computer on the configuration with Tomcat4
    <%@page import="virtualward.java.Student"%>
    <jsp:useBean id="student" class="virtualward.java.Student" scope="session"/>
    <%
    String error = null; // set the error message to null for the initial visit
                        //to the page
    if (request.getParameter("SUBMITTED") != null)
        Student s = Student.findStudent(request.getParameter("userid"));
        if (s == null)
            error = "Login ID not found, please try again.";
        else
            //if the input password = the stored password
            if (request.getParameter("userpword").equals(s.getPWord()))
                //if login priviledges are 1 give them student access
                if (s.getPrivilegeLevel()==1)
                    //store the details of that students details in a session from the object.
                    session.setAttribute("student", s);
                    //go to the page to display the details
                    response.sendRedirect("stuProfile.jsp");
                } //if login priviledges are 2 or 3 direct them to a page that
                  //gives them Lecturer priviledges
                else if (s.getPrivilegeLevel()==2 || s.getPrivilegeLevel()==3)
                        //store the details of that students details in a session from the object.
                        session.setAttribute("student", s);
                        //go to the page to display the details
                        //response.sendRedirect("selectProfile.jsp"); //old link
                             response.sendRedirect("maintenance/courseIdenti.jsp");
            else
                error = "Invalid Password";
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Student Profile</title>
    <link href="VWStyle.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
         background-color: #515151;
    -->
    </style>
    </head>
    <body>
    <table width="450" height="125" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="8" colspan="3"><img src="images/tit_studentProf.gif" width="200" height="27"></td>
        <td height="8"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner01.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/top_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner02.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
      <tr>
        <td background="images/left_tble.gif"> </td>
        <td width="8" align="left" valign="top" class="bodyText"> </td>
        <td align="left" valign="top" class="bodyText"><form method = POST ACTION="profileLogin.jsp">
            <Input type="HIDDEN" name="SUBMITTED" VALUE="T">
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <% if (error != null){%>
                <strong> <FONT COLOR = "#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><%= error %></FONT></strong><br>
                <% } %>
                <td valign="top" class="bodyText">Login ID:</td>
                <td valign="top" class="bodyText">Password:</td>
                <td> </td>
              </tr>
              <tr>
                <td width="155" valign="top" class="bodyText"><input name="userid" type="text" width="25">
                </td>
                <td width="136" valign="top" class="bodyText"><input name="userpword" type="password" size=25>
                </td>
                <td width="126" align="right" valign="top"><div align="left">
                    <input name="Submit" type="image" id="Submit" src="images/but_go.gif" alt="Click to login" width="36" height="26" border="0">
                </div></td>
              </tr>
              <tr>
                <td colspan="3" valign="top" class="bodyText"><strong>Login to view your profile<br>
                  </strong><font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif">In the case of forgetting your login details, contact your module co-ordinator.</font></td>
              </tr>
            </table>
        </form></td>
        <td background="images/right_tbl.gif"> </td>
      </tr>
      <tr>
        <td width="8" height="8" background="images/corner03.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td height="8" colspan="2" background="images/bot_tbl.gif"><img src="images/spacer.gif" width="8" height="8"></td>
        <td width="8" height="8" background="images/corner04.gif"><img src="images/spacer.gif" width="8" height="8"></td>
      </tr>
    </table>
    </body>
    </html>

  • Accessing Servlets in Browser

    Hi all
    I am new to servlets and till now everything went well but one thing! :)
    I am trying to access a servlet I did through the browser. When I added the servlet class to the ROOT/WEB-INF/classes dir I could access the servlet by typing http://localhost:8080/servlet/HelloWorld such that HelloWorld is the name of the class. This all went ok and I accessed the servlet with success.
    Now I wanted to put my servlet in another directory. I created a dir called my-servlets under the dir webapps of TomCat 5.
    Inside I created a dir WEB-INF. In the web.xml file I specified the servlet HelloWorld and the mapping. If I try to access the servlet in the browser through the mapping it works fine.
    But if I do http://localhost:8080/my-servlets/HelloWorld and HelloWorld is the name of the class I get an error: The requested resource is not available.
    My question is: If I have my servlet in another dir than the ROOT I cannot access it through the class name? Or am I doing something wrong?
    With best regards,

    Try
    http://localhost:8080/my-servlets/servlet/HelloServlet
    The /servlet/ is a key to a special handler that loads servlets rather than a directory that holds servlet classes.
    Also, make sure that you didn't stuff HelloServlet into a package. If you did, you'll either need a url-mapping in the web.xml file or a fully-qualified classname in the url.
    For example, if HelloServlet is in 'mypackage', you'd use:
    http://localhost:8080/my-servlets/servlet/mypackage.HelloServlet

  • I cannot access CF10 developper built in server remotely

    Just successfully installed CF10 developper ediiton with built in server
    I can access the web pages from the dev server on
    http://localhost:8500
    or
    http://192.168.1.49:8500
    But I cannot access the pages from a remote computer on the same network
    Any suggestion would be welcome

    Such kind of locking CF server access by local dev. machine was normally done by resetting the value of
    <attribute name="interface">*</attribute> attribute
    to
    <attribute name="interface">127.0.0.1</attribute>
    of   <service class="jrun.servlet.http.WebService" name="WebService">   service of jrun.xml file but it was done till CF 9 server through this jrun.xml file attribute change.

  • Cannot access Statement

    Hi
    why i am getting following compilation error.
    mysql1.java:37: cannot access Statement bad class file: .\Statement.class
    class file contains wrong class: org.gjt.mm.mysql.Statement Please remove or make sure it appears in the correct subdirectory of the classpath.
    Statement stmt = con.createStatement();
    thanks in advance

    Hi Raju
    Thanks a lot for all your kind comments. i succedded to get the connection with mySql server as it execute the connection statement.
    Now it gives compilation error as stated .
    variable "username" is also my database name.
    my code is here
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    //import java.sql.*; //gives compilation error "cannot access Connection"
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Driver;
    public class mysql2 extends HttpServlet
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    ServletOutputStream out = response.getOutputStream();
    String title = "Servlet connecting to MySQL database";
    response.setContentType("text/html");
    try {
    out.println("Start...");
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    //Class.forName("com.mysql.jdbc.Driver").newInstance();
    String username = "user"; // Insert your own username for MySQL
    String password = "pass"; // Insert your own password for MySQL
    String url = "jdbc:mysql://mysql.it-c.dk/" + username;
    Connection con = DriverManager.getConnection(url, username , password);
    out.println("Mubarik hoooo..Good Luck...");
    //working up to here
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * from phone_book");
    ResultSetMetaData meta = rs.getMetaData();
    out.println("Fik fat i databasen!<br>Her kommer det, vi trak ud:<br><br>");
    while( rs.next() ) {
    String fornavn = rs.getString("name");
    String efternavn = rs.getString("address");
    String kn = rs.getString("kn");
    out.println(fornavn + " " + efternavn + " er en "+"<br>");
    stmt.close();
    catch( Exception e ) {
    out.println("Der er fejl!");
    out.println(e.getMessage());
    e.printStackTrace();
    Thanks
    Nadeem

  • Cannot load servlet(s)

    This is very strange to me. I've never had a problem like this before. I just started using Tomcat 5.5 (I used to use older versions) and after deploying I cannot seem to access any serlvets. I took everything out except for this one servlet and reduced to my web.xml file to map the one servlet. Here are the contents of my web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <display-name>My APP</display-name>
        <description>
         This is my app
        </description>
        <servlet>
            <servlet-name>SignIn</servlet-name>
            <servlet-class>SignIn</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>SignIn</servlet-name>
            <url-pattern>servlet/SignIn</url-pattern>
        </servlet-mapping>
    </web-app>Everything is in the right place and the jsp files load just fine, but I cannot access the SignIn servlet. I tried some of the example servlets already in Tomcat and they work just fine. I also see no difference in their web.xml files from mine.
    I also never made any changes to conf/web.xml as I don't want the invoker running (I've read about security flaws when using it). Any thoughts? Thanks in advance.

    Just a wild guess here. Since you've switched to Tomcat 5.5, it comes with the implementation of servlet specification 2.4, so try this for the header of web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    On the other hand, I see that the class name of your servlet is not fully qualified - just SignIn is not enough, there should be at least some package name, like:
    org.myorg.SignIn
    depending on your package structure.
    Regards,
    Oleg
    Message was edited by:
    JOlegOOP
    Message was edited by:
    JOlegOOP

  • Thread cannot access the class variables.

    Hi
    I have below code snippet : (Only section of which I have copied below)
    public class ProcessAppendAction extends HttpServlet implements Runnable{
         public ProcessAppendAction ()
    MI_OS_APPEND port ;
    protected void doGet(
              HttpServletRequest request,
              HttpServletResponse response)
              throws ServletException, IOException {
              //TODO : Implement
    port =
                        (MI_OS_APPEND) obj.getLogicalPort(
                             "MI_OS_APPENDPort",
                             MI_OS_APPEND.class);
    Thread[] threads = new Thread[noOfThreads];
    ProcessAppendAction run = new ProcessAppendAction(req);
                                            Thread th = new Thread(run);
                                            threads[no] = th;          
                                  threads[no].start();
                                  threads[no].join();
    public ProcessAppendAction(DT_REQUEST_APPEND req) {
              this.requestObj = req;
              // TODO Auto-generated constructor stub
    public void run()
              try
                   DT_RESPONSE res = this.port.MI_OS_APPEND(requestObj);
                                  catch(Exception e)
                                       int ch=0;
                                       ch++;
              }     In above code I am successfully creating an object in line :
    port =
                        (MI_OS_APPEND) obj.getLogicalPort(
                             "MI_OS_APPENDPort",
                             MI_OS_APPEND.class);But when I am trying to access this port variable in run method it is giving null.
    Port in my code is a class variable.
    Is it the case that thread cannot access class variable !!

    money321 wrote:
    ok, I have removed join() from just after start().So that now the Servlet can return before the new Thread has finished. Is this what you want?
    First I did invoked all threads and then in second loop i invoked Join on all threads.I don't understand. Why do you need to join() all the threads since you only start one thread in this request. What am I missing?
    >
    Now, my problem.
    It was solved when I substituted the line
    ProcessAppendAction run = new ProcessAppendAction(req)
    with
    ProcessAppendAction run = new ProcessAppendAction(req,port);Of course. Instance variables in Servlet instances are a no-no so passing the 'port' though an instance variable is just wrong.
    >
    That is passes port alongwith req while creating thread object.
    But still if class variables are not thread safe, then it means if I pass object 1 to thread 1.
    And then try to pass object 2 to thread 2, it might be possibility that object 1 of thread 1 might be replaced by object 2.
    So, thread 1 will get an updated value object 2.Yep - that is why you should not use instance variables in Servlets and why they are not thread safe.
    >
    Which is not what I intend to do...:-)

  • Class cannot access its superinterface

    We're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
    However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
    I get an error message in the resulting webpage.
    Here is an example of such an editable DataTable:
    <jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
    <%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib  uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    </head>
    <body>
    %>
    <jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
    <%
      session.setAttribute("ApPristilbud_am", am);
    %>
    <jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
    <h4>Pristilbud</h4>
    <jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
    <jbo:ReleasePageResources />
    </body>
    </html> which results in the error message:
    <font size="3">
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    </font>
    <font size="3" color="blue">
    <tt>
    Pristilbud
    Application Error
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
    Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
    Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
    Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
    javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
         Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
         Laster: approd.web.aptest:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
         Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
         Avhengig klasse: _DataEditApPristilbudComp
         Laster: approd.web.aptest.jsp32124385:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
         Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
         at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
         at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    </tt></font>
    Unfortunately, parts of that is in Norwegian:
    Laster = Loading
    Ugyldig klasse = invalid class
    Avhengig klasse = invalid class
    Kodekilde: Code source
    What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
    I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
    - j
    Edited by: joakim00 on Dec 7, 2012 1:04 AM

    We're migrating an application from jDeveloper 9 to jDeveloper 10g (10.1.3.5), and have got almost everything working on the new server.
    However, one thing is not working: whenever a DataTable is set up with an edittarget (to edit a row in a new webpage, and where state is maintained via a cookie),
    I get an error message in the resulting webpage.
    Here is an example of such an editable DataTable:
    <jbo:DataTable datasource="dsPrisliste" edittarget="ApPristilbudView_Edit.jsp" /> The "intermediate" file, ApPristilbudView_Edit.jsp, essentially does the following:
    <%@ page language="java" import="oracle.jbo.html.*, oracle.jbo.http.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib  uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    </head>
    <body>
    %>
    <jbo:ApplicationModule id="am" configname="myApp.bc.BcModSalgsRapp.BcModSalgsRappLocal" releasemode="Reserved" />
    <%
      session.setAttribute("ApPristilbud_am", am);
    %>
    <jbo:DataSource id="ds" appid="am" viewobject="ApPristilbudView" />
    <h4>Pristilbud</h4>
    <jbo:DataEdit datasource="ds" relativeUrlPath="DataEditApPristilbudComp.jsp" />
    <jbo:ReleasePageResources />
    </body>
    </html> which results in the error message:
    <font size="3">
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    </font>
    <font size="3" color="blue">
    <tt>
    Pristilbud
    Application Error
    Error Message: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
    Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl Laster: approd.web.aptest:0.0.0
    Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
    Avhengig klasse: DataEditApPristilbudComp Laster: approd.web.aptest.jsp32124385:0.0.0 Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4Japprod/application-deployments/approd/aptest/persistence/_pages/
    Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
    javax.servlet.jsp.JspTagException: class oracle.jbo.http.HttpSessionCookieImpl cannot access its superinterface oracle.jbo.http.BindingListener
         Ugyldig klasse: oracle.jbo.http.HttpSessionCookieImpl
         Laster: approd.web.aptest:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/applications/approd/aptest/WEB-INF/lib/bc4jhtml.jar
         Konfigurasjon: WEB-INF/lib/ directory in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\applications\approd\aptest\WEB-INF\lib
         Avhengig klasse: _DataEditApPristilbudComp
         Laster: approd.web.aptest.jsp32124385:0.0.0
         Kodekilde: /D:/oracle/10.1.3.1/OracleAS/j2ee/OC4J_approd/application-deployments/approd/aptest/persistence/_pages/
         Konfigurasjon: *.jsp in D:\oracle\10.1.3.1\OracleAS\j2ee\OC4J_approd\application-deployments\approd\aptest\persistence\_pages
         at oracle.jbo.html.jsp.datatags.ComponentTag.doStartTag(ComponentTag.java:70)
         at ApPristilbudView_Edit._jspService(_ApPristilbudView__Edit.java:119)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    </tt></font>
    Unfortunately, parts of that is in Norwegian:
    Laster = Loading
    Ugyldig klasse = invalid class
    Avhengig klasse = invalid class
    Kodekilde: Code source
    What can I try, to fix this problem? Obviously, this is a run-time error (I get no warnings or errors during compilation), so perhaps something is incorrectly configured on the server container instance ("OC4J_approd")?
    I should also mention that this (i.e., editing data) works perfectly when I run the application on the local server (from within JDeveloper)...
    - j
    Edited by: joakim00 on Dec 7, 2012 1:04 AM

  • Cannot access out object  Help Pls

    Hi
    In my jsp page , i had created some functions .. in those functions i am not able to access the out object
    ( out.println(" ")) . can any one of u explain me why i am not able to acces that ??.. i had attached the error given by the webserver . pls help me :)
    Error Message Given by webserver --> Undefined variable or class name: out out.println( cal +" "+ iStartTime+" "+ iStartMin+" "+ iStartSec+" "+iEndTime+" "+iEndMin+" "+iEndSec);

    Thanks for ur reply .. but i had already included that in my jsp files ....
    pls see my declaration ..
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.util.Date"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="javax.servlet.*"%>
    <%@ page import="javax.servlet.http.*" %>
    I cannot access the out class ONLY in the function i had declared .. i can access the out class in other parts of the program

  • Navigation panel empty. Cannot access the Desktop and Rules... Solution?

    Hello,
    The Theme we are using now, does not show content in the navigation panel.
    I now need to change the Desktop rules, but cannot access it because it is not there...
    Is there a way around this problem?
    Can I change the navigation panel so that it displays the content again (how)?
    Is there a direct link to the Desktop rules, that I can enter in the url?
    Points will be rewarded if the answer is good!
    Regards,
    Edwin.

    Hi,
    Fix the problem using SAP Note Number: [869690 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383639363930%7d]
    Regards,
    Praveen Gudapati

  • OC4J cannot access 9iDB 901

    RDBMS Version: 9.0.1
    Operating System and Version: Solaris 7
    Product (i.e., OAS, IAS, etc): 9iAS 1022 Core
    Product Version: 1.0.2.2 Core
    JDK Version: 1.2.2_07
    Error number:
    OC4J cannot access 9iDB 901
    Hi All,
    I have installed 9iAS1022 Core connected with 9iDB 9.0.1.
    I have tried to deploy the petstore demo to the OC4J. But it was failed and prompt either "unable connect to database" or "populateServlet Error". I can connect OK using 8.1.7 database.
    What I have missed on such case??
    null

    I have tested the jdbc driver with the jdbc sample, it is fine. And also, I have created estoreuser account and grant connect, resource and create session to such user. sqlplus can connect it fine.
    Why petstore can access 817DB, but can't with the 9iDB?
    When I click the "Enter the store" it prompt
    PopulateServlet Error:
    java.lang.NullPointerException java.lang.NullPointerException at com.sun.j2ee.blueprints.tools.populate.web.PopulateServlet.checkTables(Compiled Code) at com.sun.j2ee.blueprints.tools.populate.web.PopulateServlet.doGet(Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:195) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind.server.http.ServletRequestDispatcher.invoke(Compiled Code) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170) at com.evermind.server.http.HttpRequestHandler.processRequest(Compiled Code) at com.evermind.server.http.HttpRequestHandler.run(Compiled Code) at com.evermind.util.ThreadPoolThread.run(Compiled Code)
    Does anyone know??
    null

  • When i login with microsoft account cannot access with administrative share c$

    i have a problem when i login to windows with microsoft account cannot access any network computer with administrative sharing c$,d$ with windows 8.1 
    but when i login with local account can access
    and some people tell  me create key in regedit t fix it 
    after enter user name and password show this error 
    and i apply your instruction  and not fix until now
    note:
     my Machine windows 8.1 if another machine in network windows 7 can access a hidden share if machine in network windows 8.1 show this message in image 2 
    but if i login with local user can i access all machine hidden share network windows 7 and 8.1

    yes this computer i want to access  name poland2-work and have two users 
    first :administrator
    second : poland 2

Maybe you are looking for

  • Searching for data

    I have a program that reads from a notepad file into an array, the user is then to enter a number into a message box and the program is supposed to find all entries like that find the average number and then show the highest number as well. how do i

  • Failure to create Web Service using Java client

    Attempting to create a WebService using a Java client (partial code follows): String xml = "<custId xmlns=\"http://samples.otn.com\">" + 101 + "</name>"; //Context ic = new InitialContext(); Locator lctr = new Locator("default", "bpel"); IDeliverySer

  • I moved files and lost content, not just links-HELP?

    I have an indesign book and chapter files. I have been backing up (I thought) by copying the folder that contains all of these (chapters and book). When I moved the backup folders of old versions of the book, then tryied to open my current version, I

  • Jco for ECC 5.0 Unicode

    Hi,    We are using Jco 2.1.8. The SAP system is ECC 5.0(unicode). values are passes correctly from Jco to SAP,But while recieving the Values from SAP to Jco, The field values are not properly passed.ie the values of two consecutive fields are coming

  • Please read this "Coffee Corner" thread

    Collaborator(s) needed to create zoomable 3D Histogram on the Desktop I'm sure a lot of you gus have programmed zoomable 3D histograms on the desktop, or if not, you know how to do it "off the top of your heads".