J2EE, Eclipse and Tomcat for Beginners

Please teach us a simple project using above technology as its tough for many people while starting.
So please could you help the fresher?

Rameshglb wrote:
Please teach us a simple project using above technology as its tough for many people while starting.
So please could you help the fresher?There are many books on the many facets of Java enterprise technology, esp. servlets and JSPs.
There are also quite a few good web sites that can teach you about the more commonly used APIs.
If I were you, and I am glad I am not as you display no industry, I would go over to amazon.com to buy a book or coreservlets.com to do some reading.
Jaa beta. Apna aap se kaam karo.

Similar Messages

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • Setting up eclipse and tomcat

    Does anyone here have any expertise configuring these two products?(eclipse and tomcat)
    I have my tomcat server running and it process them jsp pages just fine. I have also installed the plugin to get tomcat configured with eclispe.
    I am just having problems running a jsp file directly from tomcat. it always points to a file on the hd and not to the webapps area like it's supposed to......

    Sure - we use that combo for development all the time.
    What's the problem specifically? Did you create a new Tomcat project in Eclipse? If you did, then it will automatically add the project's web path as a context to Tomcat, and you can browse directly to it using your browser.
    FYI - note that the context that is created is going to point to the eclipse workspace directory - NOT the default webapps directory that you might have configured for Tomcat. That's OK.
    - K

  • Eclipse and Tomcat questions

    Hi everyone,
    Lastnight I setup Eclipse to work with Tomcat, which works very good, but there are something I don't understand.
    1. My files are put in my workspace in (C:\Documents and Settings\...etc)
    How does Tomcat (which is installed in C:\Tomcat) know that it should get the files from my workspace directory?
    Because in the C:\Tomcat directory I can't find any .XML file that refers to my workspace directory.
    2. How I developed my servlets till now, I had some other free editor, I needed to compile my servlets then restart Tomcat and then test it.
    With Eclipse + Tomcat plugin, all I need to do save the servlet and apparently the source code is compiled automatically. All I need to do is refresh the servlet in my browsers (very handy and easy to develop like this). But my question is, does Eclipse compile the servlet automatically after saving? And why doesn't tomcat have to be restarted?
    Just a few questions to understand it a bit better, I'm really happy with this setup as it makes everything a lot easier.
    Regards,
    Steven.

    I believe you will need to become familiar with and install:
    http://www.eclipse.org/webtools/
    HTH
    Darins
    "raul" <[email protected]> wrote in message
    news:b894c367f9750f367a2e8336f8fe93b1$[email protected]..
    > Hi, I downloaded the latest version of eclipse 3.1 and I've installed
    > apache tomcat in mi PC.
    > Eclipse has a plugin : org.eclipse.tomcat_4.1.30.1
    > My problem is that I don't know how to use the tomcat server with eclipse.
    > I readed some tutorials and they say that I have to configure using menu
    > Window > Preferences and then I will see the tomcat option. But that
    > option doesn't appears or I couldn't see it.
    > Another tutorial say that I have to activate a plugin in the following
    > menu location: Window > Customize Perspective > Commands and select the
    > checkbox for tomcat , but that option doesn't appears either.
    > What can I do, I want to use eclipse and tomcat together...
    > Can someone help me with this questions?
    >
    > Thanks so much.
    > Raul Torres
    >
    >
    >

  • JWSDP 1.5 and Tomcat for jwsdp

    Hi,
    I downloaded and installed both JWSDP 1.5 and Tomcat for jwsdp.
    I set the variables JWSDP_HOME,JAVA_HOME,CATALINA_HOME,ANT_HOME as usual.
    But, when I launch "catalina.sh run" I have the seguent warning....
    INFO: Processing Context configuration file URL file:/opt/tomcat50-jwsdp/conf/Catalina/localhost/xindice.xml
    10-dic-2004 17.31.48 org.apache.xindice.server.XindiceServlet init
    WARNING: NamingException: javax.naming.NameNotFoundException: Name org.xml.sax.driver is not bound in this Context
    10-dic-2004 17.31.50 org.apache.xindice.core.Database setConfig
    INFO: Database points to /opt/tomcat50-jwsdp/registry-server/Xindice/./db
    10-dic-2004 17.31.51 org.apache.xindice.server.XindiceServlet init
    INFO: Database successfully started
    Does anybody tell me why?
    Thanks, Tony

    Tony:
    I'm seeing the same issue on my system.
    Redhat 9.0
    JDK 1.5.0_01
    JWSDP 1.5
    TOMCAT 5 for JWSDP
    Did a complete system wipe and reinstall and have the same issues.
    Did you get any responses, or discover a solution?
    TIA,
    drjohn

  • Eclipse and TomCat Web Server

    Hi experts,
       I have been working with Eclipse for last 1 month. I was just working with Portal application component development and publishing it to the SAP EP J2EE server everything worked fine.
       I have eclipse,JDK,Tomcat3.3.2 installed in my laptop and EP J2EE engine runs on the server.
       Now i studied online regarding the development process with eclipse, The portal application component is published to Tomcat web server first and tested for possible errors and then published to the EP J2EE server. How this process is handled?
      Can any expert explain on this and provide me link to make the required configuration of eclipse  for publishing to tomcat web server?
    Thank you
    arun

    Well, the answer I found was that I have an invalid character that is not supported yet by the WAS, the character is "ñ".
    Using Eclipse and deploying in Tomcat worked fine but in WAS 7.0 SP 8 it throws ParseExceptions
    Regards

  • Question concerning Eclipse and Tomcat Plugin and JSP

    I have a Tomcat-Project that I am working on in Eclipse and quite a few external JARs. Everything works fine, when I run my Test class within my project (in Eclipse). But as soon, as I am trying to call the jsp in my browser I get Exceptions: "java.lang.NoClassDefFoundError: org/apache/log4j/Logger" for example, which tells me that in the browser it can't find the JARs... I'm guessing something's wrong with the classpath but I was thinking that Eclipse would handle those things for me...
    I've added the JARs to my project via Eclipse (Properties -> Java Build Path -> Libraries -> Add external JARs). And I've created a subdirectory for my jsp files and allowed my project to update the .xml file for the settings and all... Do I need to do anything else? What have I done wrong so far, have I forgotten to do?

    I solved the problem...

  • Web services and wsdl for beginners

    Hi, I wonder if someone could help me, I need a guide on how to create, consume and publish web services and wsdl in jboss for beginners, using the tools of eclipse or netbeans.
    Thank you very much

    My intention is to create web services to consume from PDF forms, I thought it was the right way from eclipse, this is good practice or is there a better way?
    Thanks.

  • DVD start menus and books for beginners

    I would like to make a custom start menu using a jpg graphic and my own music.  It would just have 2 options start video and scene selection.
    I was fumbling around with PE11 yesterday and did it by accident.  I added the picture and then added the audio with drag and drop....but when I tried to do it again, I could not remember what I selected.
    Also is there a good book for beginners?
    Thanks,
    Matt

    MHairell
    Pending further information, this is what I came up with using
    Premiere Elements 11 Windows
    General/Grid
    and its matrix_pal_s_mm.psd (for main menu) and its matrix_pal_s_sm.psd (for scene menu)
    My Photoshop Elements is presently not allowing me to open the Photoshop Layer Sets in the .psd files, so I picked the above theme so I could get around having to do that.
    This is the first try result
    Main Menu....
    Scene Menu
    I tried it out in a DVD-VIDEO standard on DVD, and it did not look that bad.
    My advice is to look at the theme as is to see what it is all about, and, if interested in getting a look like above, I will give you the step by step. But, you will need Photoshop Elements or Photoshop for the background exchanges. I did not find a theme where I could get a clean enough background replacement with just the customization within the Movie Theme section of the program. Again, Photoshop Elements that will not open the Layers Sets is OK in this instance since we are not opening any Layers Sets, we are just replacing backgrounds at the .psd level rather than within the project.
    If interested, I will post further details which should be quick and easy to follow.
    Thanks.
    ATR

  • What are the best books for PL/SQL and Forms for BEGINNERS?

    I asked about learning Oracle Forms in an earlier thread. Some suggested Oracle training at official Oracle Training centers like Koenig. I just went to the Koenig site. The OCA & OCP Forms Developer Training Boot Camp is a whopping 2,610 USD. That’s like 1/4 Million LKR. It’s more that the yearly salary of both the 2 new developers we got and want to train. That’s out of the question.
    Some have suggested shadowing experiences programmers and team coding. Both options are out, since those things don't work here.
    Learning from sites such as Francois Degrelle's blog is no good for new people since they will get confused.
    I have come to the conclusion that the only way to do is to buy 2 books, one for PL/SQL and another for Oracle Forms, give it to them and ask them to follow the book and learn it and also give a time period like 2 or 3 months.
    What are the good books out there for BEGINNERS to learn PL/SQL and Forms?
    Edited by: Channa on Aug 8, 2010 10:08 PM
    Edited by: Channa on Aug 8, 2010 10:12 PM

    In addition to the books the chapter Application Developer's Guide - Fundamentals in the documentation is also worth giving a shot:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/toc.htm
    Just for the record: I believe leaving them alone with the books won't do it. I'd at least define objectives (e.g. $chapters of the books in a week) and after they achieved them I'd test their knowledge of the individual objectives (like it was back in school :p ). By that you have control over how they are proceeding, you can focus on the things they didn't understand and you are able to eradicate some bad habits they might adopt during their studies.
    If you don't take your time to train them proper you won't get good developers anyway and you will loose much more time and money...
    cheers

  • Upgrade MySQL and Tomcat for BO

    Hi All,
    Because of the policy of my company. All products have to update the lasted patch. I have install BOE with MySQL and Tomcat come with BO. Now I have to upgrade them. I have tried to upgrade MySQL but after install finish MySQL server cannot start any more... and for Tomcat I don't know how to upgrade it because it was coming with the service was integrated with BO Central Configuration Manager.
    Any hint for this task?
    Thanks & Regards,
    Anh Phan

    Hi!
       Was this ever answered? I am confronted with the same issue and am finding need for concise instructions on how to complete the upgrades. Could SAP have made this aspect any more difficult??

  • J2ee, eclipse and classpath.

    Hey. First of all, sorry for another classpath-related question. I know there are many solutions for problems like that, my either my problem is different, or I just can't figure out the solution. This post can look like it's Spring-related, but I think it's because an improper configuration of classpath (of course, I can be wrong, because I have no idea how to fix it).
    I'm writing a project in J2EE, using Spring Framework, JSP files, and class files. On the beginning I was using vim and ant to write code, compile and deploy compiled WAR file to tomcat. I had everything configured and running as it should, but as the project grow bigger I decided to switch to Eclipse, because of many features this IDE has to offer.
    In the code, I'm using Spring's Dependency Injection mechanism to configure some classes, so I need to have external XML files that will allow me to change the bechaviour of the application without recompiling the code. This XML files were earlier located in the 'classes' directory, and it was the root of all compiled .class files. I could load this XML files from the code by creating the ClassPathResource("file.xml"). It should load the 'file.xml' from the class-path, but instead it throws at me the FileNotFoundException exception. I've tried to copy this file to 'build' directory that is the root dir for .class files that Eclipse is using and it worked, but after a while this file dissapeared, because i presume Eclipse is cleaning this directory when it wants to, so it's not a good place to put configuration files in.
    So, the question is, is it possible to configure project-specific classpath to, for example, WEB-INF directory? Then I could just put the XML files into this directory and I should be able to load them using any classpath-aware loader class. I don't want to search for the 'correct' folder by using trial-and-error "technique", because I want the solution to work with any servlet container, not only Tomcat. I've tried to change classpath in runtime, but Tomcat said I have to modify it's configuration files, and this is also not acceptable.
    I am sorry if I'm missing something obvious, but ATM my irritation is partly covering my eyes. Thanks for any help.

    Ok, never mind. Like I said, it was a problem with classpath. Changing the classpath from Run As...->(tomcat server)->classpath and adding the WEB-INF directory fixed the problem.

  • Eclipse and tomcat

    i want to intergrate tomcat in eclipse3.2 I have copied the plugin required for the same. Still its not working. Can anyone help me in this.
    thanx in advance

    I assume that you are using sysdeo plugin of eclipse for tomcat
    In that case if you can see three icons corresponding to tomact in your eclipse then your installation is correct (In the menu bar you will have icons to start stop and restart tomcat)
    now go to window--preferences and select tomcat
    select your tomcat version and set tomcat home
    hope it helps

  • Servlet, Eclipse and Tomcat

    Dear friends,
    Need help to exceutive my first servlet :)
    Dev Environment
    Eclipse 3.0, Tomcat 5.5, OS: Win 2K Professional
    Here is my servlet code:
    package com.jspservletcookbook;
    import java.io.IOException; 
    import java.io.PrintWriter;    
    import java.util.Enumeration;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class FirstServlet extends HttpServlet{
    public void doGet(HttpServletRequest request,      HttpServletResponse response) throws ServletException, java.io.IOException{
    response.setContentType("text/html");
    java.io.PrintWriter out = response.getWriter();
    out.println("<html><head>");
    out.println("<title>Help Page</title></head><body>");
    out.println("<h2>Please submit your information</h2>");
    out.println(     "<form method=\"post\" action=\"" + request.getContextPath() +"/firstservlet\" >");
    out.println("<table border=\"0\"><tr><td valign=\"top\">");
    out.println("Your first name: </td> <td valign\"top\">");
    out.println("<input type=\"text\" name=\"firstname\" size=\"20\">");
    out.println("</td></tr><tr><td valign=\"top\">");
    out.println("Your email: </td> <td valign=\"top\">");
    out.println("<input type=\"text\" name=\"email\" size=\"20\">");
    out.println("</td></tr><tr><td valign=\"top\">");
    out.println("<input type=\"submit\" value=\"Submit Info\"></td></tr>");
    out.println("</table></form>");
    out.println("</body></html>");
    } //doGet
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {
    Enumeration paramNames = request.getParameterNames();
    String parName;                
    boolean emptyEnum = false;
    if(!paramNames.hasMoreElements())
    emptyEnum=true;
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html><head>");
    out.println("<title>Submitted Parameters</title></head><body>");
    if(emptyEnum)
    out.println("<h2>Sorry, the request does not contain any parameters</h2>");
    else
    out.println("<h2>Here are the submitted parameter values</h2>");
    while(paramNames.hasMoreElements()){
    parName = (String)paramNames.nextElement();
    out.println("<strong>" + parName + "</strong> :" +
    request.getParameter(parName));
    out.println("<br />");
    }// while
    out.println("</body></html>");
    } // doPost
    }web.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app 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" version="2.4">
    <web-app>
      <display-name>Servlet 2.4 deployment descriptor</display-name>
      <servlet>
        <servlet-name>FirstServlet</servlet-name>
        <servlet-class>com.jspservletcookbook.FirstServlet</servlet-class>
       </servlet>
       <servlet-mapping>
         <servlet-name> FirstServlet </servlet-name>
         <url-pattern>/com.jspservletcookbook.FirstServlet</url-pattern>
       </servlet-mapping>
      <session-config>
        <session-timeout>15</session-timeout>
      </session-config>
    </web-app>
    Additional Notes:-
    The code has been complied in eclipse without any errors.
    I copied my Project directory structure from eclipse workspace to Tomcat. It appears in Tomcat as:|_Tomcat 5.5
    |__webapps
    |__jspservletscookbook
    |__WEB_INF
    |__classes
    |__lib
    'classes' folder include folder 'com', 'jspservletcookbook' and files FirstServlet.class and FirstServlet.java
    'lib' includes servlet-api.jar and catalina.jar
    'WEB_INF' folder has web.xml file
    Tomcat 5.5 is working properly.thanks!
    ravinder

    First thing is this, you've got spaces around the name FirstServlet in your mapping section:
    <servlet-mapping>
         <servlet-name> FirstServlet </servlet-name>
         <url-pattern>/com.jspservletcookbook.FirstServlet</url-pattern>
       </servlet-mapping>should be
    <servlet-mapping>
         <servlet-name>FirstServlet</servlet-name>
         <url-pattern>/com.jspservletcookbook.FirstServlet</url-pattern>
       </servlet-mapping>Second of all, I'm not a big fan of mapping the fully qualified name to the server, you may want to think about replacing /com.jspservletcookbook.FirstServlet with something smaller like, firstservlet or first_servlet.do, something like that.
    Lastly, how are you trying to load the servlet? Are you typing:
    http://<servername>:<port>/jspservletscookbook/com.jspservletcookbook.FirstServlet in the address bar?

  • Eclipse and Tomcat Policy Agent

    I have installed the Tomcat Policy Agent using the agentadmin script under Windows. If I run Tomcat normally using the start.bat script, everything is fine. However, if I run Tomcat through Eclipse's Server configuration, there is a problem fining the AMAgentFilter class.
    How do I set up the classpath for Tomcat in Eclipse to work with the Policy Agent?
    Thanks.

    How can i compile aspectJ (*.aj) files in WSAD 5.1.1 powered by Eclipse 2.1.3. I amn't getting AJDT (AspectJ development tool) plugin for Eclipse 2.1.3. I am only getting AJDT plugins for eclipse 3.x onwards.
    Note: Above devolpement kit (WSAD 5.1.1) is a constraint.
    Can i upgrade the my eclipse version in WSAD 5.1.1.

Maybe you are looking for