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

Similar Messages

  • J2EE project using AndroMDA framework

    Hi All,
    Can any one share document or pdf related to j2EE project using AndroMDA framework or the concept behind AndroMDA framework.
    Regards,
    Shiny

    Hi Tobias,
    Thanks for the reply.
    Do you have any idea why maven tool is used to generate ANdroMDA ejb project. Why can't AndromDA alone can be used for the same?
    Regards,
    Shiny

  • 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 !!

  • 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 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...

  • 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

  • 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.

  • 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

  • Running j2ee project in netbeans

    Hi,
    I have developed an j2ee project in netbeans 6.5.1. But I have a problrm in deploying this. When I build and run the project I got the following error.
    Deploying application in domain completed successfully
    Rollback completed successfully
    Trying to create reference for application in target server  failed; Bad File parameter in AppDD ctor: E:\project_eps\esubApplication\dist\gfdeploy
    E:\project\EPS\EPS-war\nbproject\build-impl.xml:556: The module has not been deployed.
    BUILD FAILED
    My project is in the folder E:\Project\EPS...
    But it is showied a reference to another project E:\project_eps\esubApplication. Then I removed this application along with all its sub contenets. Now when I run the project it shows a link to another project EPS1 like this
    Deploying application in domain completed successfully
    Rollback completed successfully
    Trying to create reference for application in target server failed; Cannot find application.xml. Searched for: E:\project_eps\EPS1\dist\gfdeploy\META-INF\application.xml -- perhaps this is not an Application?
    E:\project\EPS\EPS-war\nbproject\build-impl.xml:556: The module has not been deployed.
    BUILD FAILED
    Now I removed EPS1 project also. But still I'm getting the same error.
    My earlier proograms including esubapplication & EPS1 ran successfully.
    Please tell me what is the problem and how to set it. Thanks in advance.

    Hi Louis,
    You can do it by creating a URL iView for that you need to have content administration rights on portal then you can create URL iView in Portal Content Directory (PCD) and then you can attach it to a page or workset or to a role and then give that role authorization to rquired user.
    Ninad

  • Flex and J2EE project

    Trying to create a Flex J2EE project in Eclipse when I get to
    the Server setup the wizard wants the location of the Flex war
    file. I give it the name of my project, still an error What's the
    problem here.
    Shouldn't the wizard setup an new project war file?

    Root folder:
    X:\server\mycompany\deploy\flex.war
    Where X:\ is actually a drive on your server. Use C:\ D:\ or
    E:\ if you run LCDS on your dev machine. In my case, X:\ is a Samba
    connection to a Linux drive on my server where LCDS is installed.
    Root URL:
    http://hostname.int.mycompany.com/flex
    E.g if you installed JBoss on your dev machine, use
    http://localhost:8080/flex
    Context root:
    /flex

  • How to import an j2ee project into j2ee perspective of  NWDS

    while trying to import an j2ee project into NWDS .....it is giving an error """unbounnd classpath container:org.eclipse.jst.j2ee.internal.web.container".
    So where must be the problem.Should i have to install some eclipse plugins in the NWDS ????

    Hello again
    Sure, you can import the topics as a "batch" by selecting many topics at once.
    As for the links, I'm thinking that as long as you maintain the relative locations between the linked topics, that all should be fine.
    What I mean by the relative locations is to say that if you have a folder structure in the source project, you will need to ensure you have the identical folder structure in the destination. Then ensure the topics are copied to the exact folders.
    Cheers... Rick

  • Can we use JCo connection with non-Web Dynpro J2EE project in NW

    With Web Dynpro, we have the RFC wizard to call RFCs using JCo connection.  I am wondering, if I create a J2EE project in NW development studio, can I and how to use JCo connection to call RFCs?
    Thanks.

    yes, of course.
    Add jar sapjco.jar then
    import com.sap.mw.jco.*;
    public class Bapi1 extends Object {
       JCO.Client mConnection;
       JCO.Repository mRepository;
       public Bapi1() {
          try {
             // Change the logon information to your own system/user
             mConnection =
                JCO.createClient("001", // SAP client
                  "<userid>", // userid
                  "****", // password
                  null, // language
                  "<hostname>", // application server host name
                  "00"); // system number
            mConnection.connect();
            mRepository = new JCO.Repository("SAPJCo", mConnection);
          catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
          JCO.Function function = null;
          JCO.Table codes = null;
          try {
             function = this.createFunction("BAPI_COMPANYCODE_GETLIST");
             if (function == null) {
               System.out.println("BAPI_COMPANYCODE_GETLIST" +
                                  " not found in SAP.");
               System.exit(1);
             mConnection.execute(function);
             JCO.Structure returnStructure =
               function.getExportParameterList().getStructure("RETURN");
             if (! (returnStructure.getString("TYPE").equals("") ||
                    returnStructure.getString("TYPE").equals("S")) ) {
               System.out.println(returnStructure.getString("MESSAGE"));
               System.exit(1);
             codes =
               function.getTableParameterList().getTable("COMPANYCODE_LIST");
             for (int i = 0; i < codes.getNumRows(); i++) {
               codes.setRow(i);
               System.out.println(codes.getString("COMP_CODE") + '\t' +
                                  codes.getString("COMP_NAME"));
          catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
          try {
            codes.firstRow();
            for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
              function = this.createFunction("BAPI_COMPANYCODE_GETDETAIL");
              if (function == null) {
                System.out.println("BAPI_COMPANYCODE_GETDETAIL" +
                                   " not found in SAP.");
                System.exit(1);
         function.getImportParameterList().
           setValue(codes.getString("COMP_CODE"), "COMPANYCODEID");
         function.getExportParameterList().
           setActive(false, "COMPANYCODE_ADDRESS");
         mConnection.execute(function);
         JCO.Structure returnStructure =
           function.getExportParameterList().getStructure("RETURN");
         if (! (returnStructure.getString("TYPE").equals("") ||
                returnStructure.getString("TYPE").equals("S") ||
                returnStructure.getString("TYPE").equals("W")) ) {
            System.out.println(returnStructure.getString("MESSAGE"));
         JCO.Structure detail =
           function.getExportParameterList().
           getStructure("COMPANYCODE_DETAIL");
         System.out.println(detail.getString("COMP_CODE") + '\t' +
                            detail.getString("COUNTRY") + '\t' +
                            detail.getString("CITY"));
      catch (Exception ex) {
        ex.printStackTrace();
        System.exit(1);
      mConnection.disconnect();
    public JCO.Function createFunction(String name) throws Exception {
       try {
         IFunctionTemplate ft =
            mRepository.getFunctionTemplate(name.toUpperCase());
         if (ft == null)
           return null;
         return ft.getFunction();
       catch (Exception ex) {
         throw new Exception("Problem retrieving JCO.Function object.");
    public static void main (String args[]) {
       Bapi1 app = new Bapi1();
    Link: [http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm]

  • What are the steps to migrate j2ee project from version 1.4 to 1.6

    Hi All,
    What are the steps to migrate java project from version1.4 to 1.6 and weblogic 9 to 12c.
    Currently my application(java version1.4) is running on weblogic 9, i want to migrate it to weblogic 12c, what are the major steps i have to follow.
    Please anyone of you help me as soon as possible.
    Thanks,
    Yugandhar.G

    Hi Jeet,
    The following are the logs for exception.
    <Dec 13, 2012 12:04:52 PM CST> <Warning> <Socket> <BEA-000449> <Closing the socket, as no data read from it on 0:0:0:0:0:0:0:1:52,370 during the configured idle timeout of 5 seconds.>
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149251> <Operation Remove failed for application "tcs". Error: java.lang.NullPointerException
    java.lang.NullPointerException
         at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:851)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:236)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
         at weblogic.servlet.internal.WebAppModule.remove(WebAppModule.java:851)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:236)
         at weblogic.application.internal.flow.ModuleStateDriver$4.previous(ModuleStateDriver.java:223)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)
         at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:14 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1355371555961" for task "1". Error is: "java.lang.ArrayIndexOutOfBoundsException: 8"
    java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "tcs".>
    <Dec 13, 2012 12:07:14 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ArrayIndexOutOfBoundsException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         Truncated. see log file for complete stacktrace
    >
    <Dec 13, 2012 12:07:17 PM CST> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.WrappedDeploymentException: 8
         at com.bea.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
         at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:44)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:145)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:137)
         at weblogic.application.utils.annotation.ClassfinderClassInfos.<init>(ClassfinderClassInfos.java:28)
         at weblogic.application.utils.annotation.AnnotationMappingsImpl.loadAnnotatedClasses(AnnotationMappingsImpl.java:69)
         at weblogic.application.internal.ApplicationContextImpl.processAnnotationMappings(ApplicationContextImpl.java:985)
         at weblogic.application.internal.ApplicationContextImpl.getAnnotatedClasses(ApplicationContextImpl.java:1010)
         at weblogic.j2ee.managedbean.ManagedBeanModuleExtensionFactory.create(ManagedBeanModuleExtensionFactory.java:43)
         at weblogic.servlet.internal.WebAppModule.initModuleExtensions(WebAppModule.java:562)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:271)
         at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
         at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
         at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
         at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)
         at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:312)
         at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:325)
         at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:378)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:61)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

  • My First J2EE Project (tm) -- requesting advice!

    My client is deeply invested in FileMaker for their Mac-based prepress division, and now they want what will eventually be a very sophisticated application to automate the production of customized paper products. I looked at all the options, and it seemed like my choices were Lasso (FileMaker's own server-side scripting language, sort of a poor man's ColdFusion) and Java. I decided that if I was going to go the JSP route, why not go all the way and do J2EE? Nobody in management knows, just yet, exactly how big this project will become; J2EE seems to offer the greatest potential for absolute scalability and flexibility.
    I'd greatly appreciate if someone would take a glance at these requirements and give me any pointers or warnings that come to mind.
    The servers will all run on Mac OS X. I'm locked into FileMaker as the database, and WebStar 4D as the server -- those are completely non-negotiable. I plan to use WebStar's Tomcat extensions and just store all the project web documents on the Tomcat server; and I plan to use JBoss as the application server, unless someone convinces me I should buy something more commercial. (Neither our budget nor our predicted project requirements put us anywhere near the Websphere/Dynamo level, but I could probably talk them into a few thousand.)
    The eventual workflow will be like this:
    1. Client logs onto website, customizes his product by selecting text attributes, typing in text, choosing images from a library, and so forth. Eventually, we might be using a full-scale interactive design applet. Most importantly, he chooses from a few possible document sizes and ink colors.
    2. The application generates a low-resolution, watermarked PDF from the client's input, and displays it to him for his approval. If he approves the PDF, a high-resolution, print-ready one is sent to press. Here's the vital part: the PDF must contain proper specification of spot and process colors! If this is lacking, the whole thing goes down the crapper.
    3. Somewhere along the line, the client pays for the product via credit card. I assume the best way of dealing with this is to contact a bank that offers online merchant accounts and ask them how to integrate their software into my application.
    That's it, for now. Any advice I get will be very greatly appreciated. The PDF question is very important; I'd like to open a separate topic for it, on a more appropriate forum, but I'm not sure which of the forums here is best for that. Any suggestions?
    And yes, I'm new to J2EE, coming from a PHP background -- but I've done some studying and built a sample GUI application in Java, so I feel I have a decent grasp on the language itself, and I'm rapidly absorbing J2EE concepts as I go through docs and tutorials. That's not to say I won't hang on your every word if you have some pearls of wisdom.
    Please help me out here -- our alternative is to use Lasso. :)

    Hi Ceties,
    it's difficult to answer general questions about architecture because every person can do it differently, and still all of those ways can be right.
    Your device class hierarchy seems well designed and I wouldn't change anything there.
    The most comfortable way for me to organize my project is to use auto-populating folders. 
    I also wouldn't use nested file organization, rather separate folder for every class. This way you don't need to remember the inheritance pattern while going through the files outside of the project.
    For more information please visit:
    http://zone.ni.com/devzone/cda/tut/p/id/3573#toc4
    especially the last paragraph "Additional Resources"
    I hope that helps, TRSns
    Best regards, Piotr
    Certified TestStand Architect
    Certified LabVIEW Architect

Maybe you are looking for

  • How can I get the springloaded @ symbol back in Dock?

    Folks: Never really used it much but I liked seeing the springloaded @ symbol that was in the dock, which I guess was a quick bounce to the apple webb site? Had a bunch of pages open and using the less sensitive touchpad on the ibook and it got pulle

  • Is it possible to call diff  report queries when called from form

    hello all I want to know if it is possible to call different report queries when called from oracle 9i form . i tried to use he SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' ) option and actualy called the report name but it dint seem to work !!

  • I cannot select the 'Recorded Timing' when I choose to export to Quicktime - is this normal?

    Just installed Keynote but find that the 'Recorded Timing' option is not available in the Playback Uses dropdown. My presentation has animation and transitions for fully automated presentation. I am doing something wrong?

  • Capacity Reading Full When It Isn't

    Well, I recently backed up all my files using my iPod as a flash drive, just in case my computer was reformatted when I updated to Leopard. However, after I deleted everything from my iPod, it's still reading as nearly full. (10 GB Muisc, 1 GB Video,

  • Highlight how to make it work

    The tools are there to comment but dragging the mouse across a line of text doesn't produce anything. The side bar seems to be okay just no action. Got to write a paper. Any advice?