How to cofigure with tomcat and eclipse.

I want to develop a project using jsp,servlets,java beans.
IDE is Eclipse3.0
database is Oracle.
Server is Tomcat5.5.
How i will configure.
Please help me.

you need a web development plugin in eclipse like lomboz or myeclipse and there you can define your web server.
If you are using eclipse 3.0, the download lomboz from objectlearn.com and use. they have the installation procedure. But in case you are using eclipse3.1, then the current version of lomboz there is having configuration problems. MyEclipse is working well for me with 3.1. But its free only for a month :-)
Any one has better options, which i am sure would be around ?

Similar Messages

  • Remote Server Debugging with Tomcat and Eclipse

    Hi ,
    I am using Tomcat 4.0, Jdk1.3 and eclipse 2.1 ,Windows 2000
    I am trying for past 5 days, Remote Server Debugging.
    But I can't acheive.Please help in this tough situation.
    I have configured Tomcat to run in debug mode by the following steps:
    1) In catalina.bat, SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
    2) Then I set the JAVA_HOME AND TOMCAT_HOME in the environment mode.
    3) Then I clicked the startup.bat in the bin directory.
    In Eclipse side , I followed as,
    1) Run/Debug/Remote Java Application/New/
    In the connect tab, I gave host:localhost and port:8000
    2) Then I clicked Debug button.
    I didn't use any plugin.
    But it producing "Failed to connect to Remote VM.Connection refused."
    So I gave host:localhost and port:8080 in eclipse side,
    but this I am getting errorin eclipse side as "Failed to connect to Remote VM".In server side, I am getting error as,
    java.lang.NullPointerException
    at org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpR
    esponseStream.java:253)
    at org.apache.catalina.connector.http.HttpResponseStream.<init>(HttpResp
    onseStream.java:104)
    at org.apache.catalina.connector.http.HttpResponseImpl.createOutputStrea
    m(HttpResponseImpl.java:220)
    at org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBa
    se.java:725)
    at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBas
    e.java:469)
    at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRes
    ponseBase.java:236)
    at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(Ht
    tpResponseImpl.java:288)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
    r.java:1039)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
    va:1107)
    at java.lang.Thread.run(Thread.java:484)
    Please do the needful
    If you have anwser, Please mail to [email protected]

    Well, once you're already using MyEclipse, I have it set up even simpler than that. Go to Window/Preferences/MyEclipse/Application Servers/Tomcat4/Launch and set the launch mode to debug.
    This works if the project is successfully setup as a webproject in MyEclipse.
    My problem is that I have a project that was not developed with MyEclipse and for some reason does not work when I set it up as a web project in MyEclipse. MyEclipse seem to do something funny with it when I establish the project. Now, if I set it up simply as a java project (as oppposed to Web Project) in myEclipse, then MyEclipse does not give me an option of deploying it.
    Any ideas about how I would go about debugging a project that's not set up as a Web Project in my eclipse?

  • Problem when using Logger with Tomcat and eclipse

    Hi, Iam using Tomcat 5.5.7 and my IDE is eclipse.Iam using java.util.logging.Logger class for logging.Iam putting the properties file in Appname/WEB-INF directory.The properties file is not identified.The error Iam getting is Error initialising log file java.lang.NullPointerException and java.io.FileNot FoundException
    The content of my logging.properties file is
    java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=SEVERE java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.level=ALL java.util.logging.FileHandler.pattern=%h/javalogs%u.log java.util.logging.FileHandler.append=true java.util.logging.FileHandler.count=1
    My servlet is
    import java.io.*;
    import java.util.logging.*;
    import java.util.logging.Logger;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorldServlet extends HttpServlet
          public void init(ServletConfig config) throws ServletException
               try
                         String file=getServletConfig().getInitParameter("java.util.logging.config.file");
                        InputStream is = getServletContext().getResourceAsStream(file);
                        LogManager.getLogManager().reset();
                          LogManager.getLogManager().readConfiguration(is);
               catch(Exception e)
                    System.out.println("Error initialising log file"+e);
          public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException 
                   final Logger fLogger =
                 Logger.getLogger(HelloWorldServlet.class.getName());
                 PrintWriter  out; 
                 String title = "Simple Servlet Output";
                // set content type and other response header fields first                                   
                // then write the data of the response
                 response.setContentType("text/html");
                 fLogger.finest("this is finest");
                 fLogger.finer("this is finer");
                 fLogger.fine("this is fine");
                 fLogger.config("this is config");
                 fLogger.info("this is info");
                 fLogger.warning("this is a warning");
                 fLogger.severe("this is severe");
                 out = response.getWriter();
                out.println("<P>This is output from SimpleServlet!!!!!!!!.");  
    }My web.xml file is
    <!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>
      <servlet>
        <init-param>
         <param-name>java.util.logging.config.file</param-name>
         <param-value>/WEB-INF/classes/logging1.properties</param-value>
        </init-param>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>HelloWorldServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
    </web-app>Can anybody help me out.

    Hi, Iam using Tomcat 5.5.7 and my IDE is eclipse.Iam using java.util.logging.Logger class for logging.Iam putting the properties file in Appname/WEB-INF directory.The properties file is not identified.The error Iam getting is Error initialising log file java.lang.NullPointerException and java.io.FileNot FoundException
    The content of my logging.properties file is
    java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=SEVERE java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
    java.util.logging.FileHandler.level=ALL java.util.logging.FileHandler.pattern=%h/javalogs%u.log java.util.logging.FileHandler.append=true java.util.logging.FileHandler.count=1
    My servlet is
    import java.io.*;
    import java.util.logging.*;
    import java.util.logging.Logger;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorldServlet extends HttpServlet
          public void init(ServletConfig config) throws ServletException
               try
                         String file=getServletConfig().getInitParameter("java.util.logging.config.file");
                        InputStream is = getServletContext().getResourceAsStream(file);
                        LogManager.getLogManager().reset();
                          LogManager.getLogManager().readConfiguration(is);
               catch(Exception e)
                    System.out.println("Error initialising log file"+e);
          public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException 
                   final Logger fLogger =
                 Logger.getLogger(HelloWorldServlet.class.getName());
                 PrintWriter  out; 
                 String title = "Simple Servlet Output";
                // set content type and other response header fields first                                   
                // then write the data of the response
                 response.setContentType("text/html");
                 fLogger.finest("this is finest");
                 fLogger.finer("this is finer");
                 fLogger.fine("this is fine");
                 fLogger.config("this is config");
                 fLogger.info("this is info");
                 fLogger.warning("this is a warning");
                 fLogger.severe("this is severe");
                 out = response.getWriter();
                out.println("<P>This is output from SimpleServlet!!!!!!!!.");  
    }My web.xml file is
    <!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>
      <servlet>
        <init-param>
         <param-name>java.util.logging.config.file</param-name>
         <param-value>/WEB-INF/classes/logging1.properties</param-value>
        </init-param>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>HelloWorldServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/hello</url-pattern>
      </servlet-mapping>
    </web-app>Can anybody help me out.

  • Debugging with Tomcat and Eclipse

    I am using eclipse 3.0 and tomcat 5.5.9 .I am having problems getting this set up in debug mode .
    When I run catalina.bat jpda start it looks like it is listening but when I run eclipse in debug mode I get the
    following error .
    :Failed to connect to remote VM. Connection refused.
    I have set the following paremeters in catalina.bat
    set JAVA_OPTS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=5000
    also set up the following parameters as they have suggested in Tomcat .
    set JPDA_TRANSPORT=dt_shmem
    set JPDA_ADDRESS=5000
    Any Ideas .

    Plz Try This
    Set following var as
    JPDA_TRANSPORT="dt_socket"
    JPDA_ADDRESS="9800"
    And for JPDA_ADDRESS u can use any number but in Eclipse while attching debugger
    make sure Port must be same as JPDA_ADDRESS.
    Also use proper Host .
    I think it will work.
    Thanking You

  • How to use JMS with tomcat and Axis

    Hello
    I'm new in ii, so i'm still a little bit lost. I have been implementing web services with tomcat and Axis. However, these services are synchronous and I would like that some services were asynchronous.
    I've been reading about the topic and I've found that JMS is a good solution for it. I have already downloaded JMS in my computer but now I don't know what else to do. I've been trying to run the SimpleQueueSender.java example but I get the error:
    JNDI API lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    But I have attached all .jar from F:\Sun\MessageQueue\lib
    In addition to this, for my first webservices I used the Java2WSDL, WSDL2Java and AdminClient (axis tool) to create my web services bindings, stubs and skeletons and to deploy the web service on the server. Do I have to use them now with JMS? or now the deployment must be performed in a different way?
    Thank you in advanced,

    The error means that you have to specify the type and location of your jndi store. You could create a jndi.properties file and put two properties in it:
    java.naming.provider.url=file\\\:////var/jndi
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    for a file based jndi store. Then you have to make sure your jndi.properties file is in your CLASSPATH. Then you have to use something like imqadmin to create your jndi store and store in it your administrative objects like Queues and QueueConnectionFactories.

  • Glassfish with NetBeans and Eclipse

    Hi,
    I have both NetBeans Java EE and Eclipse IDE for Java EE Developers installed on my laptop. With NetBeans Java EE I have the installed the Glassfish and Tomcat server . Can I use/'integrate' this same Glassfish and Tomcat server with my Eclipse installation or is it advisable to install a "standalone" Glassfish &Tomcat server specific for my Eclipse environment?
    Thanks.
    Guy

    Hi!
    Yes you can integrate/use Glassfish and Tomcat with your Eclipse installation.
    For Glassfish support in Eclipse (assuming you are using Eclipse Luna) you have to install first: http://marketplace.eclipse.org/content/glassfish-tools-luna
    The integration is really simple: https://blogs.oracle.com/oepe/entry/getting_started_with_glassfish_4
    Hope hits help,
    Kind regards.

  • How to start with FPGA and LABVIEW when you do not know any computer language? Only have exposure to Windows OS.

    Myself is an Electronics Engineer. But I don't have any exposure to any comp language like C or whatever. I do not have any exposure to Labview as well. I've been involved in design and developing Digital Circuits like interlock units, Position monitoring and display systems etc. Now I want to work upon FPGA based circuits. Can anyone suggest me plz that how to start with?  

    Hi BNarendra;
    Here are some resources that can be useful, the first is an introduction to LabVIEW and the other ones are for LabVIEW FPGA.
    LabVIEW
    http://zone.ni.com/devzone/cda/tut/p/id/5247
    LabVIEW FPGA
    http://www.ni.com/swf/presentation/us/labview/lvfpga/default.htm
    http://digital.ni.com/public.nsf/allkb/0697A6F4BFC6E152862570FA0072153A?OpenDocument
    http://zone.ni.com/devzone/cda/tut/p/id/3261
    I hope the information is useful.
    Good Luck!
    Francisco Arellano
    National Instruments Mexico
    Field Systems Engineer - Energy Segment
    www.ni.com/soporte

  • How to deal with conflict and potential conflict classes?

    Some classes are marked as conflict and potential conflict classes in the Classloader Analysis Tool.
    How to deal with them?
    How to use suggested solutions?

    Not double load them.
    Conflicting classes can lead to weird exceptions. One obvious example would be if you package
    an older servlet.jar version into your application and use the weblogic classloading features, such
    as prefer-web-inf-classes, to tell weblogic to use this class instead of the one provided in the
    system classpath. This one example which leads to weird exceptions, such as connot process jsp tag...
    If you really need a the version of the jar for your application, you have to test it through and through
    so that you know you do not run into weird production errors.

  • Third Party API with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    what kind of third party API are using ?

  • Using Third Party APIs with Tomcat and Axis

    I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
    Thanks in advance

    If you're using Tomcat, JARs in the /common/lib directory are available to all applications deployed on that instance of Tomcat.
    I prefer putting them in the WEB-INF/lib of my web app, even if that means duplication. That way my app doesn't depend on having the server set up a certain way. I deploy them as a WAR file with everything they need enclosed within,no more and no less. They're completely portable to any servlet/J2EE engine that way.
    %

  • SSL mutual authentication with Tomcat and IE

    Hi,
    I am trying to set up mutual ssl with Tomcat.
    Everything works fine on the server but I cannot authenticate the client.
    The client is my internet explorer browser. This is what I have tried.
    -Generated an ssl server certificate using keytool.
    -Generated a certificate for the client
    -exported it to a .cer file
    -imported it to a truststore and moved it into the cacerts file
    I have verified this because tomcat lists my client certificate as a trusted
    one at start up.
    After this I installed the .cer file into IE and tried accessing the server.
    Handshake fails: "bad_certificate"
    I have searched all around the net trying to find someone who had done something like this, could not find anything. Can anyone please help me through this setup.
    -thanks

    Oh I find that there is different code base of WLS 7.0.0!!
    - WLS 7.0.0 of Mai 2002 is propagating the principal correctly with SSL
    mutual authentication.
    - WLS 7.0.0 of Juli 2002 is NOT propagating anymore! (the patch is appliable
    to this)
    Obviously BEA published different nightly builds of the same WLS 7.0.0 on
    the web.
    Is this normal?
    Regards
    Alain Hsiung
    "Alain Hsiung" <[email protected]> wrote in message
    news:[email protected]..
    I think that SP1 has a bug: it cannot propagate the principal when SSL
    mutual
    authentication is used. I fixed it with a small patch. Now the principalis
    propagated
    correctly with SSL mutual authentication on WLS 7.0.1 (WLS 7.0.0 isworking
    without patch).
    Alain Hsiung
    "Alain Hsiung" <[email protected]> wrote in message
    news:[email protected]..
    Hi all
    I make SSL mutual authentication work between 2 WLS 7.0 servers.
    As I upgrade to WLS 7.0 SP1 the principal propagation doesn't workanymore:
    the principal on the target WLS is always "anonymous"!
    Is this a bug or is there something new to parametrize?
    Regards
    Alain Hsiung

  • Question regd C++ and Java with Tomcat and SSL

    I have configured Tomcat with SSL and am running a servlet
    which is going to recieve input from a C++ Application.
    The team which are coding in C++ have a statement in their C++
    code 'HTTP1.1'
    My Tomcat is v 3.2.4
    Does this support HTTP 1.1 OR HTTP 1.0 PROTOCOL.??

    tomact latest version supports both HTTP specifications 1.1 and 1.0. If you want to make sure you for tomcat 3.2.4 then you can search the web and jakarta website for this.
    Regards
    Akhil Nagpal

  • How to work with 50i and 30f/p footage at the same time - FCPX XHA1s

    Hi all,
    Brand new to iMac and FCPX... so really hoping for some help from the more experienced out there!
    I've been shooting in 50i on my XHA1s for about a year, but have faced lots of interlacing issues which I've never managed to resolve. I didn't have a particular reason for shooting 50i, other than it was the default setting and optimum in terms of image quality I suppose.
    Anyway, after much reading I've decided to switch to 30f/p as a fixed setting moving forward... so my question is, how will I work with these two types of footage in FCPX in the same projects/movies?
    Is it simply a case of importing my new 30f footage and letting FCPX do the work, or will I have to get involved in settings? Presumably what I am trying to do is a possibility in the first place?! I really hope so, as I need to still use lots of my 50i footage in projects, at least for a few months anyway...
    Any help or insights would be hugely appreciated, and thanks in advance!
    Jimmy

    You can used to Matrix3f
    This object is a rotation and translate matrix
    for example:
    private void componerTransformada(){
    Quat4f rot = new Quat4f((float) this.getRotacionSobreX(),(float) this.getRotacionSobreY(),
    (float) this.getRotacionSobreZ(),1.0f);
    Vector3f tras = new Vector3f(-4.0f,-4.0f,(-1)*this.getDistanciaDeLaCamara());
    this.setTransformacion(new Transform3D(new Matrix4f(rot, tras, 1.0f)));
    Quat4f is a matrix of ratation
    vector3f is a direction vector
    Transform3d is building with Quat4f and Vector3f.
    That is work i use this to situe the view of point.
    good locky

  • How to work with DTR  and CBS?

    Hi
    I have designed one web dynpro application. Now I want to work on this application through DTR. Means i want to do versioning and all. How to work with DTR..? I have gone through lot of blogs and help available in SDN but i am unable to understand how to work with it.
    One more thing how to work with CBS. How to configure CBS. I have NWDS latest version 7.0.7. In window perspective i am unable to find JDI. can any one please explain me if u have worked on this with example
    If possible can any one send me the screen shots how to work with these ?
    Best Regards
    Ravi Shankar B

    Hi Ravi
    For you to work with DTR and CBS, firstly u will have to configure JDI on server.
    To configure the NWDI, please go through the links given below:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/07/f6bc3d42f46c33e10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/71/0369404c65587ee10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/26b84d6c823f66e10000000a11466f/frameset.htm
    In Nutshell, following steps will be performed:
    1) logon to Portal Devinf.
    2) click on CMS
    3) Go to landscape configurator
    4) create domain
    5) create tracks and add Software components in that track
    6) runtime systems ( dev/qa etc are configured
    7) in the transport studio, all the files listed are checked in through check - in tab.
    8) they move to developement tab.
    Once all these things are done, in your NWDS:
    1) Setting the devbox host name and server port in Window -> Preferences -> SAP
    J2EE Engine
    2) Setting Portal URL in Window -> Preferences -> JDI -> DC Pool and ping server,
    to check whether server is getting accessed from NWDS.
    3) Once server is set, login to DTR and go to DTR perspective. Create a client there, by doing a right click and filling up the required details.
    4) In the DC perspective, in the Local DCs view, perform import configuration.
    5) the dev track is not configured
    6) Under this, after logging into DTR, now you can create your project, check them in and create new versions.
    Thanks & regards,
    Anupreet

  • Help! ClassCastException with Tomcat and HttpsUrlConnectionOldImpl

    Hi,
    I am trying to perform an HTTPS call from a servlet running under Tomcat 5.5, JDK 1.5.0 . When I do, I get this error:
    java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
    at rcopia.util.WebUtils.setAutoVerify(WebUtils.java:1398)
    at rcopia.util.WebUtils.getURLConnection(WebUtils.java:1377)
    (etc).
    I have included
    System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");
    but it doesn't seem to help. How can I get Tomcat to use the new javax.net JSSE rather than the old com.sun.net... packages it is rying to use?
    Please help!
    Brandon

    System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");Don't do that. It's for JDK 1.3 and the JSSE extension.

Maybe you are looking for

  • Data Source for Standard Purchase Orders

    I need to customize the PO_STANDARD_PO.xsd PO_STANDARD_PO.xml and the xsl file i can download them but the update updatefile buttons are not active can any one help me customize this file and open this un active buttoms in the XML publisher Thanks

  • Inspire P5800 5.1

    wonder if anyone can help me , had the usual controller problems , that were thankfully sorted out by returning the set to the shop n getting a replacement set of speakers .... why dont more people just do this? prob is .... can anyone tell me the Oh

  • Timeout Error in Call Transaction on Asynchronous Abap Proxy

    Hi Gurus!! We have a problem with a Call Transaction on Asynchronous Abap Proxy. When the process of Call Transaction (transaction CO02) takes more than 10 minutes, the process is cancelled with sy-subrc 1001 and the Abap Proxy continues with the exe

  • Reset back to factory default settings

    HP TouchSmart 300-1003 PC This question was solved. View Solution.

  • Subsections of iPhoto 6 Library

    When I upgraded to Leopard from Tiger my iPhoto Library folder was divided into subsections by year:2008, 2007, 2006, 2005, and Early Photos (pre-2005). I want to do further subdivision of this sort, but I cannot do so using the using the album creat