Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Please help me to rectify this error..\Apache was unexpected at this time.

894233Oct 13 2011 — edited Oct 15 2011
Hi,

I have installed Jdeveloper 11g ..when i try to run the serlet pgm i m getting this error..:\Apache was unexpected at this time.
I have tried all the possible ways .. I m not getting it done. Please help me out..

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.*;
import javax.servlet.http.*;

public class myservlet extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";



public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>myservlet</title></head>");
out.println("<body>");
out.println("<p>The servlet has received a GET. This is the reply.</p>");
out.println("</body></html>");
out.close();
}
}


output:
*** Using HTTP port 7101 ***
*** Using SSL port 7102 ***
C:\Users\sony\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
\Apache was unexpected at this time.
Process exited.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2011
Added on Oct 13 2011
3 comments
545 views