|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (MEVENIDE-619) System dependencies lost when using assembliesSystem dependencies lost when using assemblies
---------------------------------------------- Key: MEVENIDE-619 URL: http://jira.codehaus.org/browse/MEVENIDE-619 Project: mevenide Issue Type: Bug Components: mevenide-netbeans Affects Versions: NB_3.1 Environment: Java 6, NB 6.1 Dev Reporter: Daniel Mutch Assignee: Milos Kleint Steps to reproduce: 1) Create a new maven project using standard archetype. 2) Add the following system dependency on javac <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6.0</version> <scope>system</scope> <type>jar</type> <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> </dependency> This assumes you have a system variable declared for JAVA_6_HOME 3) In the main method of your class put the line Main.compile(null); and fix imports. 4) Compile 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. 6) Now right click on project, choose properties and set the main class. 7) Now run the project (instead of using run file). Instead of the NPE get message: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Resolved: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint resolved MEVENIDE-619. ----------------------------------- Resolution: Fixed Fix Version/s: NB_3.1 I have rewritten the way run/debug projct is implemented fro j2se projects. instead of a custom profile with a bunch of stuff in it, we will use just plain "mvn exec:exec java -classpath %classpath org.myapp.Main" build #370 and later http://deadlock.netbeans.org/hudson/job/mevenide/ I believe that gets rid of this issue as well. I haven't tried, please reopen if it doesn't help > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Reopened: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Mutch reopened MEVENIDE-619: ----------------------------------- It seems the new run / debug system has made the problem worse. Now it fails with class not found no matter how I try to run the application. > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Updated: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint updated MEVENIDE-619: ---------------------------------- Component/s: (was: mevenide-netbeans) mevenide2-netbeans ok, so it probably only worked because the exec:java goal runs in the same VM as the maven build, thus in the same VM as the IDE which has it on classpath I guess.. I'll have to try to debug the setup. > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129983#action_129983 ] Milos Kleint commented on MEVENIDE-619: --------------------------------------- http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html system dependencies are similar to "provided" dependencies. as such these are not put in runtime classpath of the project. That's why the old setup failed and the new one is failing as well. > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130070#action_130070 ] Daniel Mutch commented on MEVENIDE-619: --------------------------------------- Ah...I see of course and applications are being run using the jre, so tools.jar is not available. > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130101#action_130101 ] Daniel Mutch commented on MEVENIDE-619: --------------------------------------- Sorry to give you the run around on this Milos, but I'm confused. It seems all of the Maven examples declare tools.jar as a system dependency but tools.jar isn't in the classpath for jre or jdk. So i fail to see what the standard way to get tools.jar into the runtime classpath is? Any suggestions? thanks > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=130118#action_130118 ] Milos Kleint commented on MEVENIDE-619: --------------------------------------- indeed the system scope in general looks like a workaround only. it works only because the examples assume the compilation only. the only solution that comes to mind is editing the action mapping and do exec:exec java -classpath <path-to-tools>:%classpath <main class> > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.1 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Updated: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint updated MEVENIDE-619: ---------------------------------- Fix Version/s: (was: NB_3.1) NB_3.2 > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.2 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156528#action_156528 ] Jaromir Uhrik commented on MEVENIDE-619: ---------------------------------------- This bug was transferred to the NetBeans Issuezilla bug tracking system as http://www.netbeans.org/issues/show_bug.cgi?id=154479 > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.2 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Closed: (MEVENIDE-619) System dependencies lost when using assemblies[ http://jira.codehaus.org/browse/MEVENIDE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milos Kleint closed MEVENIDE-619. --------------------------------- Resolution: Duplicate closing the issue as duplicate of the newly created one in netbeans.org issuezilla. Please post your additional comments to the new issue. > System dependencies lost when using assemblies > ---------------------------------------------- > > Key: MEVENIDE-619 > URL: http://jira.codehaus.org/browse/MEVENIDE-619 > Project: mevenide > Issue Type: Bug > Components: mevenide2-netbeans > Affects Versions: NB_3.1 > Environment: Java 6, NB 6.1 Dev > Reporter: Daniel Mutch > Assignee: Milos Kleint > Fix For: NB_3.2 > > > Steps to reproduce: > 1) Create a new maven project using standard archetype. > 2) Add the following system dependency on javac > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.6.0</version> > <scope>system</scope> > <type>jar</type> > <systemPath>${JAVA_6_HOME}/lib/tools.jar</systemPath> > </dependency> > This assumes you have a system variable declared for JAVA_6_HOME > 3) In the main method of your class put the line > Main.compile(null); > and fix imports. > 4) Compile > 5) Firstly, right click (on file) and run. NPE will be observed as expected since we are passing null to the compile method. > 6) Now right click on project, choose properties and set the main class. > 7) Now run the project (instead of using run file). Instead of the NPE get message: > Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |