Java j2ee project integartion

Hi
I have a two project
first normal j2ee project
second project-java project which connects to data ,take the data from data file and then insert it into database.
This data is displayed by jsp pages in first project
Now I to integrate this I made a jar file of second project and added in lib of web-inf/lib
But no action . making jar file approach is correct or not? any other idea.
.Independently the seoncd project is working
Other option is to make dependency to each other but it wont work as I have to give everything in single war file
regards

roy i am not invoking anything just keeping jar file in liv
but I can post the main file handle.java
ublic class Handle
     public static void main(String[] args)
          Properties applicationProperties = null;
          PropertiesUtil propertiesUtil = null;
          Properties queryProperties = null;
          PropertiesUtil queriesUtil = null;
          try
               Logger logger = Logger.getLogger(AuditDataHandler.class);
               //System.out.println(Constants.APPLICATION_PROPERTY_FILE_PATH);
               applicationProperties = PropertiesReader.loadProperties(
                                                  Constants.APPLICATION_PROPERTY_FILE,
                                                  Constants.A

Similar Messages

  • Help on java/j2ee application development framework

    hello java-gurus,
    I'm new to java and is working in java for just 15 months.i want to know more about the platform/framework which is used in the development of java/j2ee projects.To be more specefic i want to build a java/j2ee project .
    -->The project will be located in the eclipse workspace.
    -->The eclipse will be connected to the cvs and will save the latest code in the repository.
    -->The project will have a build.xml file which on being executed
    will check the latest code from cvs.
    will run j unit test.
    on success from the junit it will compile the project.
    It will make a .war,.ear etc file..
    It will then be deployed in the application server.
    So i want to make a framework of this kind.So i want help from u guys how to proceed.
    I'm just a starter with ant scripts .know how to clean,build and make war files ..I also know about eclipse like connecting to cvs,generating ant script from it etc..
    i'm also comfortable with struts,java,servlet etc..
    So do give me some guidelines how to proceed .
    thanks

    Hello,
    i'm working in project same style of what you want. here are details :
    - eclipse for development - lomboz plugins for j2ee support.
    - using subclipse plugin for svn support checkout and commit, in case of cvs i think it is default in eclipse.
    - the framework is Struts, which is a very very powerful J2EE framework.
    - eclipse plugin lomboz supports creating and deal with struts project
    it also offers GUI for configuring struts xml files.
    - lomboz contains plugin for creating and define application servers and containers like tomcat and jboss, so you can compile, run and debug your code from your eclipse.
    - i use many other tools for creating UML diagrams and ERD diagram and reflect contents to existing projects.
    i think with struts,eclipse and lomboz you need nothing else.

  • A problem with Lucene In a J2EE project

    Hi everyone:
    I am newer for Lucene which is used to build a search eigneer in my J2EE project.
    But I can hardly understand how it works because of my poor English.
    So I need you help:
    * TxtFileIndexer.java
    * Created on 2006�N12��8��, ����3:46
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package classes.php.lucene;
    * @author eingmarra
    import java.io.File;
    import java.io.FileReader;
    import java.io.Reader;
    import java.util.Date;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.index.Term;
    import org.apache.lucene.search.Hits;
    import org.apache.lucene.search.IndexSearcher;
    import org.apache.lucene.search.TermQuery;
    import org.apache.lucene.store.FSDirectory;
    public class TxtFileIndexer {
         public String test() {
              return "test is ok hohoho";
          * @param args
         public String createIndex(String indexDir_path,String dataDir_path) throws Exception {
              String result = "";
              File indexDir = new File(indexDir_path);
              File dataDir = new File(dataDir_path);
              Analyzer luceneAnalyzer = new StandardAnalyzer();
              File[] dataFiles = dataDir.listFiles();
              IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
              long startTime = new Date().getTime();
              for(int i=0; i < dataFiles.length; i++) {
                   if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".html")) {
                        result += "Indexing file" + dataFiles[i].getCanonicalPath()+"<br />";
                        Document document = new Document();
                        Reader txtReader = new FileReader(dataFiles[i]);
                        document.add(Field.Text("path",dataFiles[i].getCanonicalPath())); //can not pass the Netbeans IDE, maybe the Field class is not support the signature of the fuction Text anymore!!
                        document.add(Field.Text("contents",txtReader)); //can not pass the Netbeans IDE, maybe the Field class is not support the signature of the fuction Text anymore!!
                        indexWriter.addDocument(document);
              indexWriter.optimize();
              indexWriter.close();
              long endTime = new Date().getTime();
              result += "It takes"+(endTime-startTime)
                        + " milliseconds to create index for the files in directory "
                        + dataDir.getPath();
              return result;
         public String searchword(String ss,String index_path) throws Exception {
         String queryStr = ss;
         String result = "Result:<br />";
         //This is the directory that hosts the Lucene index
    File indexDir = new File(index_path);
    FSDirectory directory = FSDirectory.getDirectory(indexDir,false);
    IndexSearcher searcher = new IndexSearcher(directory);
    if(!indexDir.exists()){
         result = "The Lucene index is not exist";
         return result;
    Term term = new Term("contents",queryStr.toLowerCase());
    TermQuery luceneQuery = new TermQuery(term);
    Hits hits = searcher.search(luceneQuery);
    for(int i = 0; i < hits.length(); i++){
         Document document = hits.doc(i);
         result += "<br /><a href='getfile.php?w="+ss+"&f="+document.get("path")+"'>File: " + document.get("path")+"</a>\n";
    return result;
    the code above is from google and it works perfectly in the Lucene1.4. But it not pass the compiler by Netbeans IDE because I use Lucene2.0
    If you have some idea,plz replace these two lines' code with the correct ones.
    Thanks a lot !!

    Hi everyone:
    I am newer for Lucene which is used to build a search eigneer in my J2EE project.
    But I can hardly understand how it works because of my poor English.
    So I need you help:
    * TxtFileIndexer.java
    * Created on 2006�N12��8��, ����3:46
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package classes.php.lucene;
    * @author eingmarra
    import java.io.File;
    import java.io.FileReader;
    import java.io.Reader;
    import java.util.Date;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.index.Term;
    import org.apache.lucene.search.Hits;
    import org.apache.lucene.search.IndexSearcher;
    import org.apache.lucene.search.TermQuery;
    import org.apache.lucene.store.FSDirectory;
    public class TxtFileIndexer {
         public String test() {
              return "test is ok hohoho";
          * @param args
         public String createIndex(String indexDir_path,String dataDir_path) throws Exception {
              String result = "";
              File indexDir = new File(indexDir_path);
              File dataDir = new File(dataDir_path);
              Analyzer luceneAnalyzer = new StandardAnalyzer();
              File[] dataFiles = dataDir.listFiles();
              IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
              long startTime = new Date().getTime();
              for(int i=0; i < dataFiles.length; i++) {
                   if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".html")) {
                        result += "Indexing file" + dataFiles[i].getCanonicalPath()+"<br />";
                        Document document = new Document();
                        Reader txtReader = new FileReader(dataFiles[i]);
                        document.add(Field.Text("path",dataFiles[i].getCanonicalPath())); //can not pass the Netbeans IDE, maybe the Field class is not support the signature of the fuction Text anymore!!
                        document.add(Field.Text("contents",txtReader)); //can not pass the Netbeans IDE, maybe the Field class is not support the signature of the fuction Text anymore!!
                        indexWriter.addDocument(document);
              indexWriter.optimize();
              indexWriter.close();
              long endTime = new Date().getTime();
              result += "It takes"+(endTime-startTime)
                        + " milliseconds to create index for the files in directory "
                        + dataDir.getPath();
              return result;
         public String searchword(String ss,String index_path) throws Exception {
         String queryStr = ss;
         String result = "Result:<br />";
         //This is the directory that hosts the Lucene index
    File indexDir = new File(index_path);
    FSDirectory directory = FSDirectory.getDirectory(indexDir,false);
    IndexSearcher searcher = new IndexSearcher(directory);
    if(!indexDir.exists()){
         result = "The Lucene index is not exist";
         return result;
    Term term = new Term("contents",queryStr.toLowerCase());
    TermQuery luceneQuery = new TermQuery(term);
    Hits hits = searcher.search(luceneQuery);
    for(int i = 0; i < hits.length(); i++){
         Document document = hits.doc(i);
         result += "<br /><a href='getfile.php?w="+ss+"&f="+document.get("path")+"'>File: " + document.get("path")+"</a>\n";
    return result;
    the code above is from google and it works perfectly in the Lucene1.4. But it not pass the compiler by Netbeans IDE because I use Lucene2.0
    If you have some idea,plz replace these two lines' code with the correct ones.
    Thanks a lot !!

  • Running Java/J2EE application On SAP Netweaver

    Hi All,
    I am a java/J2ee professional who is relatively new to SAP Netweaver studio. I have developed an application which consists of Core java,JSP and Servlets. Can anybody suggest me as to how to deploy this application on SAP Netweaver and how to test the same.I have already created a war file for the application.Quick suggestions will be highly appreciated as its very urgent for my project.
    Regards
    Ani

    Hi
    See this help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/fcbc3d16f39e33e10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/9877fe13221244838a16e3683ad344/frameset.htm
    Kind Regards
    Mukesh

  • Which files  should include in path when building J2EE project?

    Hi,
    I'm new to J2EE. Trying some examples on Servlet. But I've the error messages stating that it can't locate the javax.servlet.* classes like the ones below:
    <code>
    import javax.servlet.http.HttpServlet;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    </code>
    Could anybody pls tell me which file (of J2EE SDK) I should include in my path when building J2EE projects?
    thanks,
    jackling

    You need to have $J2EE_HOME/lib/j2ee.jar in your CLASSPATH when compiling your servlet

  • I have Java/J2ee  background , whether to go for EP or XI?

    Hello All,
    I am having 2 years of real time experience in Java/J2ee.
    I have already leaned ABAP and I don't have work experience in ABAP.
    Now I would like to go for SAP Netweaver.
    So,Please let me know whether to go for EP or XI?
    How will be the demand and requirement for EP and XI in the market now and in the future?
    Please give me suggestion. Thanks in advance.
    Regards,
    Cris

    Cris,
    I also have joined the NetWeaver Space[XI] from a plain J2EE background ..after 5 years into J2EE. I think your J2EE knowledge would be equally useful in both EP as well as XI. Offcourse , the spectrum of tasks you do in J2EE projects i.e. right from design to devlopment & deployment part might get narrowed as you wont be able to touch WebAS that easily as you could in a Weblogic / WebSphere based project.This is because the administration part is most of the times taken care by the basis team and your job would remain confined to design / development.
    Demand and requirement for EP and XI...wait and watch. I guess nobody can predict such things in todays world with ever changing technologies!!!

  • Debugging a j2ee project

    -->i have getting assignment to debug the j2ee project .
    -->but i am unable to capture jsp related errors.
    -->how can I debugg project by which I can eliminate errors related jsp from my project.
    -->while I am using ecllipse editor .
    Message was edited by:
    amit.cnb

    If you have a jsp file called Commands.jsp, when you display the jsp page in a browser, it gets compiled into a java servlet called Commands_jsp.java (search for a similiarly named java for for whatever your jsp file is called). If you open that file, you will see the java code generated is quite complicated and even if you can set a breakpoint within it, you cant find where to put the breakpoint. Therefore breakpoints will not help.
    What I do is comment out most of the tags and scriptlets in the jsp file and run the code. When that part of the file is working, I uncomment out the next section of code and try to get that to work.
    An alternative is to crate an empty jsp file and copy pieces of the original jsp file into it piece by piece, verifying each piece before moving onto the next piece.
    The following java scriptlet placed in your jsp file will print out a java object's value to the browser page shown in your browser:
    <% out.write("some value"); %> (((out is one of the objects implicidly available to you on teh jsp page))))
    There may be a product that allows you to set breakpoints in the jsp file (and not the java file generated for that jsp file), but I never saw one yet.

  • Regarding execution of a j2ee project.

    Hello I have developed one j2ee project with Tomcat 5.5 & Eclipse 3.2.1
    I have stored my project under <TOMCATHOME>/webapps/ <project1-folder>/
    If i need to develop another project, where i should create my new project folder. If i use the same webapps folder in the TOMCAT_HOME dir, Eclipse gives error like can't make another project.
    Can i make a new project in some other locations other than TOMCAT_HOME dir. For this what steps i need to follow.
    Moreover, i can make a .war file for my new project from Eclipse IDE?
    What is the use of this war file.
    if i need to execute my project from other PC, what should i do for executing my project in different PCs.
    Friends, Please help me in this regard.
    rgds
    tskarthikeyan

    Hello Balu Sir,
    First of all i am new to j2ee environment. Now i am learning only.
    In your reply, it means we can create our own directory for our project in the normal way. we dont need to create the folder under the webapps dir.
    I tried this in Eclipse configured with Tomcat. It has been compiled successfully.
    For example,
    My Project folder is - C:\Java/Eclipse/workspace/ChatServer/
    If i execute the application via tomcat like "http://localhost:8080/ChatServer/MainServlet"
    it gives internal error some thing like that.
    what is wrong in my steps.
    Also you mentioned in your reply, we can export the war file of our project.
    How to execute the project in different pc with this war?
    rgds
    tskarthikeyan

  • Upgrade Java Swing Project

    Hi Everyone,
    I am looking forward for some guidance from all you guys here.
    I have been assigned the work of upgrading Java Swing project. The upgrading also involved some improvements in look and feel of the tool.
    Currently the tool looks very simple/basic and needs some good over-haul.
    As basically I am a J2EE guy, I dont have much idea about the Swing Open-source API's that I can utilize for the same.
    If anyone has good idea about the API's that can be utilized or suggestions for the improvement of the tool look wise then please let me know.
    Thanks,
    Gaurav

    user7668872 wrote:
    ..I have done some research and I have come across.. That is an interesting term to describe the 2 PLAFs I mentioned on this very thread. O_o
    ..some themes like metal(being used currently), Windows and nimbus.
    I implemented all these themes one by one in the project, but not sure if I can use any of these themes and extend them in some ways to look like the mock-up.
    The Synth Look and Feel.
    "Creating a custom look and feel, or modifying an existing one, can be a daunting task. The <a href="http://download.oracle.com/javase/7/docs/api/javax/swing/plaf/synth/package-summary.html">javax.swing.plaf.synth</a> package can be used to create a custom look and feel with much less effort. You can create a Synth look and feel either programatically or through the use of an external XML file. The discussion below is devoted to the creation of a Synth look and feel using an external XML file. Creating a Synth L&F programatically is discussed in the API documentation."
    There are also a number of existing custom PLAFs. E.G. See this excellent summary at SO on the thread Look and feel in java.
    What will you suggest me :)<ul>
    <li>When in doubt, try it.
    <li>Be good to your mum.
    </ul>

  • How to develope DVD/burner in java/j2ee

    Hi, how to implement dvd/burner in java/j2ee which site , api provide help me

    Hi
    A very basic tutorial
    [http://www.javaservice.net/~java/bbs/data/qna2/1257849337+/SAPJCo_Doku_3.0_EN.pdf]
    Regards

  • Oracle ADF/BC4J vs "other" Java/J2ee technologies. Influence a decision

    Dear All,
    Our dev group is now at the stage when we need to make a decision which way to go - "proprietary" Oracle ADF/BC4J route or open source/java/j2ee standard. In our group we have a mix of Oracle Foms, pl/sql and java developers. The problem is that our core java developers are strictly against any proprietary thing, and they do not really want to even take a look at ADF/BC4J claiming that when it comes to resolving performance and other issues we will be better off with open source, rather than depend on Oracle...
    I am coming from an Oracle centric world, and to me ADF is a natural choice, however I do not have a lot of experience in Java/J2EE to post a strong argument for or against ADF and BC4J.
    I am just wondering if there is a case study, or comprehensive cons and pros for one or the other path.
    I will greatly appreciate anyone's answer.
    Thank you,
    VO

    "When it comes resolving performance and other issues we will be better off with open source."Really? How - are they planning to go into the hibernate/spring engine and fix the problems? Or do they have a specific "support" contract with some company that will guarantee them fixes to these issues? If they do have such a contract how much does this support costs the organization?
    Where is the notion that open-source is faster coming from? Certainly not from actual benchmarks like this one: http://www.spec.org/jAppServer2004/results/
    As Frank said your management might want to look into a more complete picture than what your Java developers are looking at.
    For example, given that you have Forms based developers, how fast can they get up to speed with the open source solution vs the ADF solution?
    I think a simple benchmark of productivity when building an application with the stack they are offering vs the ADF stack would prove the point even better.
    Don't have time to run one have a look at the RAD Race results from this year where ADF based team beat up Spring based teams.
    http://www.bloggingaboutoracle.org/archives/javapolis-radrace-the-full-story
    and
    http://www.radrace.org/en/JPed_2006/JP_report_2006.html#

  • Problem intregrating Flash help usingRobohelp 8.0 into J2EE project

    Hi,
    I have am working on J2EE project and I have a small issue with getting Flash to run off my localhost server.  I have managed to get the webhelp working but I want to see what the help looks like using flash. I am getting and error when I am trying load the index file:
    "invalid path was requested /application/FlashHelp/whproj"
    I am using have Apache 6.0, struts 1.2.  It loads from the hard drive in both IE and FIrefox but not when I am running from the server.  When running on localhost in Firefox it loads the righthand contents page but none of the dynamic content.  In IE8 it load nothing at all (I assume because it doesn't know what to do after the error is thrown).
    Can anyone shed some light on this topic?
    thanks

    The problem is solved.  The apache server was filtering out .xml files so it was not loading whproj.xml thus all the other *.xml and subsequent flash objects were not loading.  That was only 2 days of trial and error.

  • Help with J2EE Project Management

    Hi,
    We are about to begin a large J2EE project and are wondering if anyone could help with the following questions:
    1. Given the division of labor on J2EE projects (JSP developers, EJB developers, application deployers, etc...), what are "best practices" for building a team and ensuring that they communicate well after the design phase? How will the left arm know what the right arm is doing?
    2. What documentation should be produced during the design phase to give to the developers? Will this allow them to go off and develop independently of each other?
    3. Is there a "best practices" document anywhere on J2EE project management?
    Thanks in advance!!

    Hi,
    I feel any project to start with should have a prior planning,that too particularly for Object oriented programming projects,I feel UML is the best tool for entire process.I think rational software has got lot of Project Management Tools(PMT) and products at all stages.Please go through the rational.com site and hope you could find some info.I feel the answer to your second question is partly 'yes' and partly 'no'.The modules that you can split it up which have got some independent attributes,but it should not be too much in your project,then it affects the work matrix/There should be a optimal process to decide and that you can yourself formulate depending on the time frame,either way the last step of build or integration is not flexible enough that you should mind,modular flexibility can be there but the integration stage you are tied with a fixed process.So plan accordingly using a PMT tool for any project that matters and all the best.Bye
    Hari

  • How can i get "CRM JAVA CUSTOMER PROJECT 5.0"

    Guys... how can i download the "CRM JAVA CUSTOMER PROJECT 5.0" package

    Hello Christopher,
    We are having difficulties in finding "CRM JAVA CUSTOMER PROJECT 5.0" too.
    Could you please tell how to re-create the Software Component association?
    Thanks and Regards,
    Reena

  • How to use crystal report in J2EE Project.

    how to use crystal report in J2EE Project.. any one know please inform me...
    thank you..

    http://www.inetsoftware.de/products/crystalclear/Crystal-Reports.htm?adwords=googleCrystal&gclid=CKDD1YDem5UCFRpknAodZA4EhA
    I think this might help u...

Maybe you are looking for

  • Moving existing project to an IDE

    I am considering moving an existing, 12-year old, java [url http://r0k.us/graphics/SIHwheel.html]hobbyist project to an IDE. Up to now, development has been with the Textpad text editor, the msWindows cmd tool, and the CVS version system. Before star

  • How to execute a PL/SQL in JAVA

    I know how to execute a store procedure in PL/SQ. But how to execute a PL/SQL in JSP or other JAVA application? Thank you!

  • Increase Messaging

    I am currently on the Nation Talk FS 700 plan for $60/month plus 3 extra lines @ $9.99/ each.  It appears that this plan has been discontinued and is now replaced by a slightly different plan name with 700 anytime minutes for $89.99 month.  I'd like

  • KeyEvents and Events Handling

    Hi I'm a beginner in Java and am currently making a basic tetris game. I was trying to set the controls for the game using KeyEvents. BlueJ compiles the program but the controls dont work. Could u possibly tell me what's wrong with my code. import ja

  • Delivery Date pickup

    The "pricing date" field is automatically  populating today's date instead of requested delivery date on all the orders . They have to be manually changed  to process the order correctly. what should be controlled to see that requested deliver date i