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

Similar Messages

  • How to run SWT project using Netbeans?

    I get run time exception:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3236 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
    at swttest.Main.formLayout(Main.java:41)
    at swttest.Main.main(Main.java:36)
    Java Result: 1
    thanks;

    UnsatisfiedLinkError is a native library error, not classpath error, not to mention it's very common when starting to work with SWT. I've never tried SWT with NetBeans, in fact I don't use NetBeans much at all, I use Eclipse, personal preference, I've tried NetBeans but I'm just more comfortable with Eclipse. Anyway, to get this to work you need to add this argument to the launch configuration:
    -Djava.library.path=*path to the SWT dlls*
    There should be 3 of them and you just have to put the path to that directory, not each individual DLL.
    Being unfamiliar with NetBeans I can't tell you exactly how to do this, but I assume there is some sort of launch dialog where you can specify JVM arguments. Hopefully this helps.

  • Cannot run Enterprise Javabean Project in Netbean 6.9.1

    I just installed Netbeans 6.9.1 and created a Enterprise Java Bean project. I started the Glassfish server 3. The server started successfully. But now when i try to run the project it gives an error message saying that "HTTP 400 Bad Request. The web page cannot be found". The url of the application shows something like this,'http://localhost:8080/EnterpriseLibrary-war/' . It does not show up the index.jsp page. Can this be the reason?? I tries to fix this by setting up the welcome page in web.xml under Pages section. Can anyone help me solve the issue? What can be the possible reason for this error?
    Any help in this regards is greatly appreciated.
    Thanks in advance!!!!

    I got the url from browser address bar.When i run the application from IDE it opens up IE n i get this url,http://localhost:8080/EnterpriseLibrary-war/
    This is what i get when i start my GlassFish server. I can see that it is listening to port 8082.
    May 13, 2011 2:29:17 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
    INFO: Launching GlassFish on Felix platform
    Welcome to Felix
    ================
    INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
    INFO: Starting Grizzly Framework 1.9.18-o - Fri May 13 14:29:51 IST 2011
    INFO: Starting Grizzly Framework 1.9.18-o - Fri May 13 14:29:51 IST 2011
    INFO: Grizzly Framework 1.9.18-o started in: 484ms listening on port 7676
    INFO: Grizzly Framework 1.9.18-o started in: 1406ms listening on port 8082
    INFO: Grizzly Framework 1.9.18-o started in: 1094ms listening on port 8181
    INFO: Grizzly Framework 1.9.18-o started in: 1110ms listening on port 4848
    INFO: Grizzly Framework 1.9.18-o started in: 1000ms listening on port 3700
    INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
    INFO: SEC1002: Security Manager is OFF.
    INFO: Security startup service called
    INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
    INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
    INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
    INFO: Security service(s) started successfully....
    INFO: Created HTTP listener http-listener-1 on port 8082
    INFO: Created HTTP listener http-listener-2 on port 8181
    INFO: Created HTTP listener admin-listener on port 4848
    INFO: Created virtual server server
    INFO: Created virtual server __asadmin
    INFO: Virtual server server loaded system default web module
    INFO: JTS5014: Recoverable JTS instance, serverId = [3700]
    INFO: Portable JNDI names for EJB TestSessionBean : [java:global/EnterpriseLibrary/EnterpriseLibrary-ejb/TestSessionBean, java:global/EnterpriseLibrary/EnterpriseLibrary-ejb/TestSessionBean!SessionPkg.TestSessionBeanRemote]
    INFO: Glassfish-specific (Non-portable) JNDI names for EJB TestSessionBean : [SessionPkg.TestSessionBeanRemote#SessionPkg.TestSessionBeanRemote, SessionPkg.TestSessionBeanRemote]
    INFO: Loading application EnterpriseLibrary#EnterpriseLibrary-war.war at EnterpriseLibrary-war
    INFO: Loading EnterpriseLibrary Application done is 36422 ms
    INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(23078ms) startup services(49203ms) total(72281ms)
    INFO: Binding RMI port to *:8686
    INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    INFO: Created HTTP listener http-listener-1 on port 8082
    INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8082
    INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
    INFO: Created HTTP listener http-listener-2 on port 8181
    INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8181
    INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://samir-4f36711ff:8686/jndi/rmi://samir-4f36711ff:8686/jmxrmi
    INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
    INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = D:\DOCUME~1\Samir\LOCALS~1\Temp\fileinstall--140954548172234423, felix.fileinstall.filter = null}
    INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\Program Files\glassfish-3.0.1\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = D:\DOCUME~1\Samir\LOCALS~1\Temp\fileinstall--1877644427928429434, felix.fileinstall.filter = null}
    INFO: Started bundle: file:/D:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar
    INFO: Started bundle: file:/D:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar
    INFO: Portable JNDI names for EJB TestSessionBean : [java:global/EnterpriseLibrary/EnterpriseLibrary-ejb/TestSessionBean, java:global/EnterpriseLibrary/EnterpriseLibrary-ejb/TestSessionBean!SessionPkg.TestSessionBeanRemote]
    INFO: Glassfish-specific (Non-portable) JNDI names for EJB TestSessionBean : [SessionPkg.TestSessionBeanRemote#SessionPkg.TestSessionBeanRemote, SessionPkg.TestSessionBeanRemote]
    INFO: Loading application EnterpriseLibrary#EnterpriseLibrary-war.war at EnterpriseLibrary-war
    INFO: EnterpriseLibrary was successfully deployed in 1,937 milliseconds.
    INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
    INFO: Installed D:\Program Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
    INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = D:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = D:\DOCUME~1\Samir\LOCALS~1\Temp\fileinstall-5357407348647107125, felix.fileinstall.filter = null}
    And this is what i get when i run the application in Netbeans. Here it shows that is browsing on 8080!!
    pre-init:
    init-private:
    init-userdir:
    init-user:
    init-project:
    do-init:
    post-init:
    init-check:
    init:
    deps-jar:
    deps-j2ee-archive:
    EnterpriseLibrary-ejb.init:
    EnterpriseLibrary-ejb.deps-jar:
    EnterpriseLibrary-ejb.compile:
    EnterpriseLibrary-ejb.library-inclusion-in-manifest:
    Building jar: D:\Documents and Settings\Samir\My Documents\NetBeansProjects\EnterpriseLibrary\EnterpriseLibrary-ejb\dist\EnterpriseLibrary-ejb.jar
    EnterpriseLibrary-ejb.dist-ear:
    EnterpriseLibrary-war.init:
    EnterpriseLibrary-war.deps-module-jar:
    EnterpriseLibrary-war.deps-ear-jar:
    EnterpriseLibrary-ejb.init:
    EnterpriseLibrary-ejb.deps-jar:
    EnterpriseLibrary-ejb.compile:
    EnterpriseLibrary-ejb.library-inclusion-in-manifest:
    EnterpriseLibrary-ejb.dist-ear:
    EnterpriseLibrary-war.deps-jar:
    EnterpriseLibrary-war.library-inclusion-in-archive:
    EnterpriseLibrary-war.library-inclusion-in-manifest:
    Copying 1 file to D:\Documents and Settings\Samir\My Documents\NetBeansProjects\EnterpriseLibrary\build
    EnterpriseLibrary-war.compile:
    EnterpriseLibrary-war.compile-jsps:
    EnterpriseLibrary-war.do-ear-dist:
    Building jar: D:\Documents and Settings\Samir\My Documents\NetBeansProjects\EnterpriseLibrary\EnterpriseLibrary-war\dist\EnterpriseLibrary-war.war
    EnterpriseLibrary-war.dist-ear:
    pre-pre-compile:
    pre-compile:
    Copying 1 file to D:\Documents and Settings\Samir\My Documents\NetBeansProjects\EnterpriseLibrary\build
    do-compile:
    post-compile:
    compile:
    pre-dist:
    post-dist:
    dist-directory-deploy:
    pre-run-deploy:
    Starting GlassFish Server 3
    GlassFish Server 3 is running.
    Undeploying ...
    Initial deploying EnterpriseLibrary to D:\Documents and Settings\Samir\My Documents\NetBeansProjects\EnterpriseLibrary\dist\gfdeploy\EnterpriseLibrary
    Completed initial distribution of EnterpriseLibrary
    post-run-deploy:
    run-deploy:
    Browsing: http://localhost:8080/EnterpriseLibrary-war/
    run-display-browser:
    run-ac:
    run:
    BUILD SUCCESSFUL (total time: 1 minute 58 seconds)

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

  • Getting an error when I want to run my project on another pc! URGENT!!

    Hey everyone,
    This is my first post. I have a big problem. I created an enterprise application for a college project but now I want to test it on my laptop. Unfortunately when I want to run the project it gives me this error:
    deployment started : 0%
    Deploying application in domain failed;
    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    Error Code: 0
    C:\Wesley Chin J2EE Project\EdHardyClothingStore\nbproject\build-impl.xml:264: The module has not been deployed.
    When I try and deploy the project it wont deploy.
    Any ideas on what i can do to fix it?
    Urgent help please as I have to hand in the project today!
    Thanks soo much in advance,
    Wesley

    Hello Wesley,
    you will need the jdbc driver for your database.
    You will find it on http://dev.mysql.com/downloads/connector/j/3.1.html
    Download it and put it in your glassfish classpath, e. g. [glassfish-root]/domains/domain1/lib/ext and restart the server.
    Greetings,
    Andreas

  • How to include others jar in my project use netbean

    Hi,
    Here i'm build my project in netbean, in compile source i add jdom.jar. Afer compile, run jar from terminal. But, application can't use and error :
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jpos/
    iso/ISOPackager
    Now, i ask : How to include others lib or jar in my project use netbean
    Rgds,
    Wira S

    Dear All,
    The code In manifest.mf, like :
    Manifest-Version: 1.0
    X-COMMENT: Main-Class will be added automatically by build
    Main-Class: root/Phase3/TesterPhase3/IsolibTester/src/isolibtester/DynamicTreeTester
    Class-Path: root/Phase3/TesterPhase3/jpos/lib/jdom.jar
    When build jar, error :
    error while reading original manifest: error in opening zip file
    Building jar: /root/PHASE3/TesterPhase3/IsolibTester/dist/IsolibTester.jar
    Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Main-Class"
    /root/PHASE3/TesterPhase3/IsolibTester/nbproject/build-impl.xml:273: Invalid Manifest: /root/PHASE3/TesterPhase3/IsolibTester/manifest.mf
    BUILD FAILED (total time: 0 seconds)
    So, i tried add classpath in bash_profile and build.xml, unseccessful
    But, when runing my project from terminal can't found component jdom.jar

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

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

  • Jar will not launch after upgrading a project to Netbeans 6.5

    Hi,
    I created a project in NetBeans about 2 years ago, then I upgraded the project to NetBeans 6.5 just now. The .jar file that is created when I build the project gives me the error:
    C:\>java -jar Checkers.jar
    Exception in thread "main" java.lang.NullPointerException
    at sun.launcher.LauncherHelper.getMainClassFromJar(Unknown Source)
    at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
    If I create a new project in NetBeans, the jar file it creates will work correctly. It seems to be something related to the upgrade or maybe the state of the original project (I didn't try the .jar file when I was running with the old version of NetBeans.)
    Anyway, I need to know how to make the fix from within NetBeans. I look at the project properties and there is an entry point defined. It runs fine from within NetBeans. I don't know what changes to make in the project config to fix this.
    Thanks,
    Bill N.
    Cincinnati, OH

    First, these forums are for Java language questions, not NB configuration and support questions. If you wish to pursue this question further, please do it at the NB site.
    NB has tutorials and FAQs that show how to configure a project so that it can be executed outside of the NB IDE.

  • NullPointerException encountered while running Faceted Project Validation B

    Hello, BEA and community!
    We encountering strange problem which affects only part of our development environments which seem to be setup absolutely identically.
    We have the following project structure stored in version control repository and checked out periodically by all developers:
    Portal EAR project
      Portal Web Project
      Utility Project 1
      Utility Project 2On some machines it works fine and can be deployed on configured server, but on some other it fails to deploy
    showing a message box saying:
    Publishing to BEA WebLogic v9.2 Server [new_domain]
    Unable to publish to server 'Publishing to BEA WebLogic v9.2 Server [new_domain]'.
    Enterprise application 'Protal-Front' has closed or inaccessible child project.
    Open or remove this project and re-execute the operation.And then if we try to open EAR project properties and go to J2EE modules page then the error box shown contains a message:
    Could Not Accept Changes
    The currently displayed page contains invalid valuesIn the Workshop's error log I can find the following messages:
    java.lang.NullPointerException encountered while running Faceted Project Validation Builder.
    java.lang.NullPointerException
    at org.eclipse.jst.j2ee.project.facet.EarFacetValidator.validate(EarFacetValidator.java:64)
    at org.eclipse.jst.j2ee.project.facet.EarFacetValidator.validate(EarFacetValidator.java:83)
    at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectValidationBuilder.build(FacetedProjectValidationBuilder.java:78)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)The strangest thing that exactly the same project with exactly the same version of Workshop on different machines behave differently.
    We were trying to create clean workspace and import project there, but still the problem persists only on some machines.
    What could be the problem? Any ideas are appreciated!
    Best regards,
    Andrey

    And then if we try to open EAR project properties and
    go to J2EE modules page then the error box shown
    contains a message:
    Could Not Accept Changes
    The currently displayed page contains invalid valuesIn the Workshop's error log I can find the following
    messages:
    java.lang.NullPointerException encountered while
    running Faceted Project Validation Builder.
    java.lang.NullPointerException
    at
    org.eclipse.jst.j2ee.project.facet.EarFacetValidator.v
    alidate(EarFacetValidator.java:64)
    [...]I am observing the same problem with Eclipse WebTools 1.5.2 and also in IBM Rational Application Developer 7.0
    The J2EE Module Dependencies tab is not working in either IDE.
    Let me know if you find a fix.

  • 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

  • Deploying my project with Netbeans 4.0

    Does anyone know how I do this? This is one of the pains of Java - no executable files.
    I can't even find a tutorial on how to deploy using Netbeans 4.0.
    Any suggestions?

    Your dead right, it can be a pain in the ass.
    Although, NetBeans IDE makes and places a JAR file of your project in the 'ProjectFolder/dist/' folder, which should run the project when double clicked.
    The problems with this can occur if your using image or sound files (known as resources within a jar file) see my post:
    http://forum.java.sun.com/thread.jspa?threadID=648553

  • Error while running a project in em console

    It was running fine all these days.server was restarted and i am facing problems shown below.
    I am not able run any project(ex.Project1) in em console.I am getting 2 errors like.
    1)DBLocker caught exception while retrieving locked messages.Will retry retrieval after 2 seconds
    2)Error while invoking endpoint "http://<server name>:7001/soa-infra/services/default/Project1/StdService" from client; Security Subject: Administrators
    Even if i unlock the account,its getting locked automatically.
    Notifications:1)The DocumentChange is not configured to be allowed for the component: RichTable[org.apache.myfaces.trinidad.component.UIXTable$RowKeyFacesBeanWrapper@7ae15fc6, id=messagesResult]
    2)Invalid Remote Targets: [Target Name: /Farm_soa_domain/soa_domain/AdminServer/OracleBamServer, Target Type: oracle_bam_server, Display Name: OracleBamServer (AdminServer) => com.bea:Name=oracle-bam#11.1.1,Location=AdminServer,Type=AppDeployment], [Target Name: /Farm_soa_domain/soa_domain/AdminServer/OracleBamWeb, Target Type: oracle_bam_web, Display Name: OracleBamWeb (AdminServer) => com.bea:Name=oracle-bam#11.1.1,Location=AdminServer,Type=AppDeployment]
    3)Calling ClearCacheCanonical Path=oracle.dms:JDBC_DataSource=SOADataSource,Location=AdminServer,name=/JDBC/SOADataSource/CONNECTION_4106,type=JDBC_Connection :::: matched=false
    Thanks in advance

    ALV Grid control is based on the custom controls on the screen. When the program is scheduled in background, it tries to create GUI related front-end objects and hence the error u201CFatal Error u2013 GUI cannot be reachedu201D. This type of problem is common with all the programs that use the ALV grid control to display the output.
    Solution:
    Whenever we execute this type of programs in background, we should be passing a blank docking container instead of the custom container as parent to our grid control. 
    The docking container doesnu2019t need any of the custom controls on the screen; instead it attaches an area to any or all of the four edges of the screen (top, left, right or bottom). The behavior of the areas in the container is determined by the sequence in which they are initialized. Docking Containers are attached to the screen from the inside out. This means that when you create a second container, it is attached to the edge of the screen, and the container that was already there is pushed outwards. 
    Let us modify the standard program (by taking a copy of it) to enable it to execute it in background.
    Following modifications have to be made:
    ·        Define a docking container in the program
    data: or_doc  type ref to cl_gui_docking_container .
    ·        At the time of creating a custom container, check if the program is being executed in background or foreground. If the program is scheduled in background, then create a docking container instead of custom container.
    if cl_gui_alv_grid=>offline( ) is initial.
        create object or_custom_container
               exporting container_name = c_container.
      create object or_grid
             exporting i_parent = or_custom_container.
    else .
    create object or_grid
             exporting i_parent = or_doc .
    endif . 
    Now test executing the program in background. The report would be generated.

  • Error in Jdeveloper while running a project on weblogic server.

    Hi ,
    I am receiving below error while running a project in Weblogic. I am using Jeveloper 11.1.1.2.0
    *** Using port 7101 ***
    "C:\Documents and Settings\nlatif\Application Data\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    The system cannot find the path specified.
    The JRE was not found in directory D:\OracleJeveloper\Middleware\jdk160_14_R27.6.5-32. (JAVA_HOME)
    Please edit your environment and set the JAVA_HOME
    variable to point to the root directory of your Java installation.
    Press any key to continue . . .
    where as I can run the same project in other machine on Jdeveloper with out this error.
    Thanks & regards,
    Noman

    Noman,
    have you checked that the folder D:\OracleJeveloper\Middleware\jdk160_14_R27.6.5-32 contains the jre?
    Timo

  • Unable to run ADF Project Using with Jdev 10 and Weblogic server 9.2

    Dear All,
    I am unable to run ADF Project on Weblogic Server 9.2. I am created Sample Project with ADF Control. This was when we create jsp at that time i am selected libraries ADF. After created war file. This war i am deploying into Server. At that time i am getting error java.lang.noclassfound error.
    so please tell me how we can run these application.
    Regards,
    Suresh.V

    Hard to help you here. JDev 10 used to work with OAS 10g as application server. This does not mean that you can't use Weblogic9.2, but because it is not the default configuration you may have some problems doing this.
    One problem is that you need to install the ADF runtime libraries in the WLS 9.2 server, but there is no installer I know of. You can try to deploy the needed libraries together with your app, but you have to figure out which libraries you need.
    Next thing is that you should deploy an EAR instead of a WAR.
    Timo

Maybe you are looking for