JSP, JavaBean, web.xml - how to fit together?

Servlets should be placed into the web.xml file to be recognized correctly by a application server.
Is this also true for JavaBeans (NOT Enterprise JavaBeans!)? Since I don't call a JavaBean directly but only over tags within a JSP I'm not sure about this. If I have to put it in there, do I use the same syntax?
e.g.:
<servlet>
<servlet-name>exampleBean</servlet-name>
<servlet-class>example.exampleBean</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>exampleBean</servlet-name>
<url-pattern>/exampleBean</url-pattern>
</servlet-mapping>
By using this, the will server know that this Bean has to be deployed?
Since I'm pretty new to this topic I'm grateful about any comment.
Thanks in advance!

Hi,
JavaBean are java classes and they must be on the classpath in order to be loaded.
only servlet,jsp,filters,listeners must be declared in the web.xml file. all the java classes can be put under /WEB-INF/lib in order to be loaded by the appserver
hope it helps,
Giovanni

Similar Messages

  • How to map jsp in web.xml

    Hi,
    CAn anybody tell me that how to map .jsp in web.xml
    thanx
    vjoy

    Same as servlets, except that you specify jsp-file in place of servlet-class - see below
      <servlet>
         <servlet-name>MyJspServlet</servlet-name>
         <jsp-file>/jspServlet.jsp</jsp-file>
      </servlet>
      <servlet-mapping>
         <servlet-name>MyJspServlet</servlet-name>
         <url-pattern>/myJspServlet</url-pattern>
      </servlet-mapping>cheers,
    ram.

  • Changing the directory Structure of Jsp and web.xml files

    Hi,
    I am using the JDeveloper 11g preview. Can any one tell me how to change the Jsp and web.xml files ( not in WEB-INF directory of the application) to another directory.
    Thanks in Advance
    Gopal

    Hi Frank,
    Is it possible for me to change the folder structure which JDeveloper is providing for web project?
    By default JDeveloper is giving the following folder structure.
    In the project's root folder there is a public_html and src folder along with .jpr file.
    In public_html folder thre is an WEB-INF folder and a jsp file
    In WEB-INF folder there is an classes folder along with web.xml file.
    I need to have the following folder structure :
    The WEB-INF folder should be in root folder of project not in public_html folder
    src folder must be in WEB-INF folder.
    Thanks in Advance
    Anil Golla

  • How can JSP access web.xml

    I have a JSP application that requires properties that are kept in a text file, which I am currently reading from. I would like to move these properties in the web.xml file and read them from there.
    I know how to read properties for a servlet from web.xml, however I do not know how to do this for a JSP. Can someone advise me?
    Thanks
    Matthew

    I'm not exactly sure what you are looking for, but if it's something you can do from a servlet, then you can do it from a JSP the same way. Remember, JSPs are compiled into servlets anyway. Just use the implicit objects (HttpServletRequest request, ServletContext application, etc)

  • Weblogic 10 jaas and login.jsp and web.xml/weblogic.xml security constaints

    Hello,
    I struggled through and got the examples.security.jaas.SampleCallbackHandler.java and examples.common.utils.ExampleUtils.java/ExampleConstants.java into eclipse where they compile. A bean I made can call SambleCallbackHandler like such:
    mybean.logmein(username,password,url). I can then do a mybean.getStatus() or even a mybean.returnCode(). It does seem to correctly identlify that it is authenticating me (I see in stdout logs that it shows success or failures. The problem I have is I do not know how to apply this weblogic and web.xml/weblogic.xml so that if authentication works it redirects me to the page requiring the authentication. In web.xml I have the following set up:
    <security-role>
         <role-name>Admins</role-name>
    </security-role>
    <login-config>
         <auth-method>FORM</auth-method>
         <realm-name>default</realm-name>
         <form-login-config>
              <form-login-page>/login.jsp</form-login-page>
              <form-error-page>/badlogin.html</form-error-page>
         </form-login-config>
    </login-config>
    <security-constraint>
         <web-resource-collection>
              <web-resource-name>empower</web-resource-name>
              <description>These pages are only accessible by authorized users.</description>
              <url-pattern>/admin/*</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
         </web-resource-collection>
    <auth-constraint>
    <description>These are the roles who have access</description>
    <role-name>Administrators</role-name>
    </auth-constraint>
         <user-data-constraint>
         <description>This is how the user data must be transmitted</description>
         <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    My weblogic.xml has:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
    <wls:security-role-assignment>
    <wls:role-name>Admins</wls:role-name>
    <wls:principal-name>Administrators</wls:principal-name>
    <wls:principal-name>dashap</wls:principal-name>
    </wls:security-role-assignment>
    </wls:weblogic-web-app>
    With this set up, if I try to go to a page in /admin folder in my application, it correctly pops up the login page. The jaas in the bean is doing a loginContext.login(), which I thought does authentication too, but it never goes back to the /admin page I was going to that needed the authentication. With jaas, can I not use the web.xml FORM security option? Do I Need to use j_security in the login.jsp's form's action= option and j_username and j_password for the input type names? How do I use j_username/j_password things if I am using jaas? I could just ignore using the web.xml security stuff and put something in the pages that need authentication, but it would be easier if I could use jaas with the security featurs without doing all that. Note that my code above is using a realm called default just because that was what was in the example I got from the web. Does that need to be something else?

    Hi John,
    I would like magic of course. However, in this case I want something special: my authentication provider uses special means and contents of headers, cookies and service from external identity management systems to determine the user's identity.
    I do not want the application to present the login dialog! I want to derive the identity and the fact that the user is logged in from whatever the authentication provider returns in terms of Subject.
    Ideally, the flow is something like:
    - user accesses an unprotected resource - resource is shown, no interaction with authentication provider
    - user presses a link or button that takes him/her to a protected resource
    - the authentication provider is contacted to work with the identity asserter to establish the identity of the current user and create a subject object for this user
    - the application can access the subject and principals
    - ADF Security recognizes the identity and the roles (based on the principals) and coordinates access based on this.
    the authentication method is client certificate. presumably this prompts WebLogic/OPS to use an identity asserter to work with custom headers and cookies ("... when you configure a web application to use CLIENT-CERT authentication. In this case, WebLogic can perform identity assertion based on values from request headers and cookies. If the header name or cookie name matches the active token type for the provider, the value is passed to the provider."). No login form should be presented to the user, as all information required to perform the authentication is already available.
    I am trying to understand what I must do to have the ADF application adopt the subject set by the authentication provider - if anything?!
    If you more ideas to share - I would love to hear them.
    best regards,
    Lucas

  • SJSC2u1 JSP accessing web.xml session-config session-timeout

    What is the best way of accessing web.xml session-config session-timeout from JSP page ?
    I wish to have this on the JSP page and also have it count down automatically.
    I did this by creating a propery in the session bean and then used javascript to count it down.
    Is there a better way ? Simpler Way ?
    /Roger

    What is the best way of accessing web.xml session-config session-timeout from JSP page ?
    I wish to have this on the JSP page and also have it count down automatically.
    I did this by creating a propery in the session bean and then used javascript to count it down.
    Is there a better way ? Simpler Way ?
    /Roger

  • Objects how they fit together?

    So how important are objects from day one and howcome books dont encourage thier use from the start?
    Reason I ask is as I am making a phonebook application should I be making a class for example getPersonalDetails and then save that and reuse it for possibly and address book? Also do you create methods as you go along and must you import a whole class everytime you need it or is it sometimes better to code an internal method if you only need one? Is the concept of OOP to break everything down to its smallest part?
    An example would be if my phone book needed a name surname home work cell details then I code a GetDetails class that has methods for getting all those details. But possibly an adress book might only be using 2 of those methods to get name and surname so should i make internal methods or create a object of that class to access those methods that are already coded?
    I guess I am trying to ask if you always reuse or if it is preferable to create a new internal method at times?

    newark wrote:
    nclow wrote:
    If I am teaching someone who is completely new to programming how to code in Java, I would not start out by immediately introducing Objects. Teaching a student about variables, assignments, program control flow, functions, primitive structures, editing program files, manual compiling, and the fundamental nature of what a program is should come first, IMHO. I've been convinced of this by teaching experience in which I have seen programming novices absolutely ruined and completely lost in the material 2 months in because the teachers thought a head-first plunge into OOP was the best way to start.I respectfully disagree. Complete beginners to programming are not wired to think like computers. But living in the real world, objects make sense to them. Teaching them what an object is, and how objects interact with one another, is a very beginner-friendly task. Have beginners create a Car object with fields like "year" and "model", and methods like getYear() and they'll have easily accomplished a first program. Then show them how to make a loop that creates multiple cars, or use an If statement to look for a specific car. You'll get more people hooked into programming if the first tasks give positive reinforcement, versus the arduous task of walking a beginner through debugging his for loop on day 1.
    But I guess that's all dependent on whether you want there to be more programmers, or if you want to weed out those who aren't immediately committed on the first day.It's quite true that OOP has a lot of fertile ground for a student to relate to. Objects and classes can be understood relatively easily even by novices. Unfortunately, a lot of instructors seem to then go right ahead into inheritance, interfaces, polymorphism, and all manner of complicated concepts before a student even knows how to write a loop. Despite favoring the Java language a great deal, I'm particularly disdainful of "Java shops" for this reason, because the product is often a student who has no mastery at all of the basics, and ends up struggling greatly. I'm not sure what's so horribly arduous about building a for loop versus building an object, and I consider a for loop to be more of a fundamental skill to programming in general.
    I favor introducing "objects" and "classes" early, but not immediately.

  • How many web.xml in a java application

    Hi,
    can anyone give tell the answer for this question "How many web.xml in a java application?"

    1Why ?Because the Web container refers to only one web.xml for one web application.
    I havent heard of an application having more than 1 web.xml
    How?It reads all the definitions of servlet mappings, filters, welcome-file etc from this file itself.
    Where?From the following folder ...
    /WEB-INF
    By the way ..... the way you questioned me was amuzing ... Why? How ?Where ? Its funny :D
    I actually wanted to reply as below ..
    Why ?Why not
    How?
    Wait lemme think ....ummm... What do you mean how??
    Where ?
    Inside the web ;-)
    -Rohit

  • How to edit the web.xml file

    hi friends,
    i have been working with netbeans for webapplications so far therefore its not ever been requerd to edit the web.xml file that automatically done by IDE itself.
    now, i am just trying to deploy the servlet and jsp's externally without using any tool and i found a requrement to map the servlet and jsp in web.xml file. when i try to edit inside this file it seems noneditable, nothing gonna change. i have an alternate to do this is firstly copy the content of this file into txt file and after making the requred changes overwrite this file in .xml formate to orignal web.xml file.
    am i going in right way?? please help me
    regards
    san

    open it in a text editor and modify it.
    %

  • How are Hot Spot Compilers and VMs of different vendors fit together?

    I read that the Hot Spot technology is splitted up into a Hot Spot compiler and a Hot Spot VM. Since maybe the ISV uses another Hot Spot Compiler (maybe IBM on Windows) to compile and the user drives that app on another Hot Spot VM (maybe Novell on Netware), I am wondering how this fits together?
    Do some compiler/VM couples make problem? Do some combinations produce higher performance or smaller memory load than others?
    Any comments welcome! :-)

    You compiled the same application using jikes and the
    sun javac and then ran it on the the same jvm (and
    version) and got a 10% improvement using the jikes
    binary?Yes, but this was more than a year ago. I used javac from Sun 1.3 in comparison with the latest jikes from IBM. Both binaries I started on a Sun 1.3 VM and the jikes code performed UP TO 10% for SOME CASEs. It was a micro benachmark, so I could imagine that jikes optimized some code sequences out of the code, whereas javac did not. Anyway, micro benchmarks are not totally exact and one should do an application benchmarking with the latest compilers from both companies.

  • JDev 10.1.3 compile error in servlet 2.4 web.xml

    I built a Servlet 2.4/JSP 2.0 application in JDev 10.1.3. When I try to make/compile/deploy it the compiler gives me errors like the following for every JSP file that has a JSTL 1.1 taglib:
    Error(2,9): Element "web-app' used but not declared
    Error(2,63): Attribute 'xmlns:xsi' used but not declared
    Error(3,103): Attribute 'xsi:schemaLocation' used but not declared
    Error(4,16): Attribute 'version' used but not declared
    Error(4,56): Attribute 'xmlns' used but not declared
    Error(4,57): Can not build schema 'http://java.sun.com/xml/ns/j2ee' located at 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd'
    Error(5,15): Element 'description used but not declared
    It is obviously havng problems with the web.xml file (which is in the servlet 2.4 format) and is probably not finding the web.xml DTD document. How do I fix it?
    Installation is on Solaris 9 using J2SDK 1.4.2_04-b05
    By the way, this system is on a disconnected network. How do I get JDeveloper updates for a system not connected to the Internet?

    Allen,
    A JSP with web.xml web-app element
    <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    runs in JDeveloper 10.1.3
    thanks,
    Deepak

  • Welcome File in Web.xml

              I am having problems with my web.xml file.
              I have my welcome page <welcome-file> as my “home_page.jsp” which I want to be
              the default page on start-up. On this page is a link to “log on”. When you click
              on this you are taken to my (FORM) “Login.jsp”. After successful logon I want
              to go to the “Welcome.jsp”, instead I am returned to my “home_page.jsp”. Which
              puts me in a continuous loop. How after successful logon can I be directed to
              a page other than the <welcome-file> “home_page.jsp”
              My web.xml file looks like this;
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>Welcome.jsp</welcome-file>
              </welcome-file-list>
              <login-config>
              <auth-method>FORM</auth-method>
              <realm-name>default</realm-name>
              <form-login-config>
                   <form-login-page>/Login.jsp</form-login-page>
                   <form-error-page>/LoginFailure.jsp</form-error-page>
              </form-login-config>
              </login-config>
              <security-role>
              <role-name>web-user</role-name>
              </security-role>
              <security-constraint>
              <web-resource-collection>
              <web-resource-name>Logged into NOTiFY</web-resource-name>
              <url-pattern>/Welcome.jsp</url-pattern>
              <http-method>GET</http-method>
              <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
              <role-name>web-user</role-name>
              </auth-constraint>
              </security-constraint>
              </web-app>
              Thanks.
              

    It doesn't quite work that way. You should just direct the user directly to
              the Welcome.jsp page. If they're not already logged in, they'll be asked to
              log-in via the Login.jsp. The login mechanism knows to redirect them to the
              last page they wanted once they successfully log in. I think this is why you
              are being returned to the home_page.jsp, since there was no target
              restricted page requested.
              I have to admit - this mechanism doesn't lend itself to the portal-style
              login used on the web. It's geared more towards security and authorization
              for access to particular URL resources. You might need to tweak how your GUI
              looks to make this mechanism make sense.
              Alternatively, you could add some code to the home_page.jsp to redirect the
              user to a specific restricted page based on what is in their session. I
              would also suggest that the Welcome.jsp and home_page.jsp be the same page
              that just behaves differently based upon whether a user is logged in or not.
              "Roger Lee" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am having problems with my web.xml file.
              >
              > I have my welcome page <welcome-file> as my "home_page.jsp" which I want
              to be
              > the default page on start-up. On this page is a link to "log on". When you
              click
              > on this you are taken to my (FORM) "Login.jsp". After successful logon I
              want
              > to go to the "Welcome.jsp", instead I am returned to my "home_page.jsp".
              Which
              > puts me in a continuous loop. How after successful logon can I be directed
              to
              > a page other than the <welcome-file> "home_page.jsp"
              >
              > My web.xml file looks like this;
              >
              > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              2.2//EN"
              > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              >
              > <web-app>
              >
              > <welcome-file-list>
              > <welcome-file>Welcome.jsp</welcome-file>
              > </welcome-file-list>
              >
              > <login-config>
              > <auth-method>FORM</auth-method>
              > <realm-name>default</realm-name>
              > <form-login-config>
              > <form-login-page>/Login.jsp</form-login-page>
              > <form-error-page>/LoginFailure.jsp</form-error-page>
              > </form-login-config>
              > </login-config>
              >
              > <security-role>
              > <role-name>web-user</role-name>
              > </security-role>
              >
              > <security-constraint>
              > <web-resource-collection>
              > <web-resource-name>Logged into NOTiFY</web-resource-name>
              > <url-pattern>/Welcome.jsp</url-pattern>
              > <http-method>GET</http-method>
              > <http-method>POST</http-method>
              > </web-resource-collection>
              > <auth-constraint>
              > <role-name>web-user</role-name>
              > </auth-constraint>
              > </security-constraint>
              >
              > </web-app>
              >
              > Thanks.
              >
              

  • Is this the right exception to put in the web.xml??????

    Hi guys,
    i've a question.
    I've defined a custom error page for my jsf application and now i've to
    define in web.xml how calling this page when it's needed.
    In my application i've some mysql exceptions like
    java.sql.SQLException: Cannot delete or update a parent row: a foreign
    key constraint fails (`microarray/esperimento`, CONSTRAINT
    `FK_RELATIONSHIP_2` FOREIGN KEY (`USERNAME`) REFERENCES `utente`
    (`USERNAME`))
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
            at
    com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatemen�t.java:1125) i've defined in this way my web.xml
    <error-page>
      <exception-type>java.sql.SQLException</exception-type>
      <location>/pages/protected/errorDisplay.jsp</location>
    </error-page> but when this exception is throwned i see it in normal stacktrace and
    not in a jsp page.
    Can someone help me solving my problem?
    Thanks

    To report bugs or suggest improvements:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Using error code in web.xml

    hi I have following servlet ..
    sevlet :
    PrintWriter out = res.getWriter();
    out.println("<p>I will throw a ServletEexception now....</p>");
    //res.sendError(404, "messagge");
    In the above code res.sendError(404, "messagge"); is commented and i get the result as expected, when i call above servlet.
    After that i un-comment res.sendError(404, "messagge"); and get error.jsp, since web.xml contains :
    <error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
    </error-page>
    But if i open a different browser and access the above servlet , then i am getting The page cannot be found.
    I am getting the following stack trace(sun app server) :
    [#|2006-06-18T17:12:30.593-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=61;|
    NotifyUtil::java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
    at com.sun.enterprise.server.ss.ASClientSocketImpl.connect(ASClientSocketImpl.java:175)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)
    |#]
    [#|2006-06-18T17:12:31.593-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=62;|
    NotifyUtil::java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
    at com.sun.enterprise.server.ss.ASClientSocketImpl.connect(ASClientSocketImpl.java:175)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)
    |#]---------------------------------------------------------------
    I have tried the same in Tomcat 5 and i am still getting similar problem.
    Any help will be appreciated
    Message was edited by:
    java_do_pro

    Hi my web.xml error entry looks like
    <error-page>
         <error-code>404</error-code>
         <location>/404.jsp</location>
    </error-page>
    Want I want to do is that is user asks for WEB_URL/anypage.jsp or anypage.html
    and if the page does not exist in the web application then the control shall be transfered to the jsp page which will display the error details (and do some processing as well)
    hth,
    Asif

  • Error code in web.xml

    hi I have following servlet ..
    sevlet :
    PrintWriter out = res.getWriter();
    out.println("<p>I will throw a ServletEexception now....</p>");
    //res.sendError(404, "messagge");
    In the above code res.sendError(404, "messagge"); is commented and i get the result as expected, when i call above servlet.
    After that i un-comment res.sendError(404, "messagge"); and get error.jsp, since web.xml contains :
    <error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
    </error-page>
    But if i open a different browser and access the above servlet , then i am getting The page cannot be found.
    I am getting the following stack trace(sun app server) :
    [#|2006-06-18T17:12:30.593-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=61;|
    NotifyUtil::java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
    at com.sun.enterprise.server.ss.ASClientSocketImpl.connect(ASClientSocketImpl.java:175)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)
    |#]
    [#|2006-06-18T17:12:31.593-0400|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=62;|
    NotifyUtil::java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:525)
    at com.sun.enterprise.server.ss.ASClientSocketImpl.connect(ASClientSocketImpl.java:175)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
    at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:237)
    |#]
    I have tried the same in Tomcat 5 and i am still getting similar problem.
    Any help will be appreciated

    I don't know a replacement for this, but I recommend to post this questione into Servlets section to get more chances for receiving answers...
    Regards,
    Mohammed Saleem

Maybe you are looking for

  • Unknown Error during Recovery - iPad no longer Recognized by iTunes

    I have a 3rd Generation iPad which I was attempting to perform a factory reset.  I received an "Unknown Error" during the process and from that point on I have been unable to get iTunes to recognize my iPad in recovery mode (or otherwise). I have tri

  • IPod Touch 2G & MobileMe

    Now that MobileMe has gone away, my .mac (or .me) mail service has been transferred to iCloud and still works fine.  I still receive and can send email on my 2G - but all other syncing is gone.  What I've noticed however is that while in Mail the spi

  • Power Point Crashes Slide Show Every Time, Grrr...

    I never use Power Point 2008. Today I opened it, clicked on "Slide Show" and it locked up my 8-core Mac Pro and required a hard power-button reboot. I did this three times in a row. Google hit this known problem with its OpenGL since 10.4 and PowerPo

  • Aperture using NAS?

    Does Aperture work with a library that is stored on a NAS device (not Mac formatted, non-AFP)? Eric

  • ¿Se puede actualizar el iPod 4G con el fin de instalar ios7?

    ¿Se puede actualizar el iPod 4G con el fin de instalar ios7