| View previous topic :: View next topic |
| Author |
Message |
putoguiri
Joined: 18 Mar 2009 Posts: 4
|
Posted: Wed Mar 18, 2009 1:43 pm Post subject: Netbeans broken |
|
|
Hello, this is my first post in this forum, I hope I am posting in the right place.
I came here after trying to resolve the problem on my own, doing lots of searching, even reinstalling netbeans and my whole OS.
The thing is, since some days, netbeans won't compile anything at all. Right now I'm working on 2 projects, and Axis2 web service and a gwt app.
Both do work on my other system (windows) and not on my usual work macbook (Leopard, last version, etc).
An example, I can generate the .aar file of the service, but it won't work in the server, and neither won't the "generate wsdl" options.
I also tried creating an empty (hello world) webservice project and tried to run it... nothing.
What I already tried:
Creating new projects, won't work either.
Reinstalling netbeans, nothing.
Deleting the netbeans preferences
Compiling the code on my other machine, works.
Reinstalling Mac os x (in case java was broken)
A normal project works (I tried the anagram sample)
It has to be somehting with the plugins, I guess. I hope someone can help me. Here are some sample errors I get:
Compiling the gwt project
| Code: | Exception in thread "main" java.lang.NoClassDefFoundError: ${gwt/compiler/jvmargs}
/../../NetBeansProjects/Project/nbproject/build-gwt.xml:15: Java returned: 1
BUILD FAILED (total time: 1 second) |
Generating the wsdl of the axis2 service
| Code: | java2wsdl:
java.lang.ExceptionInInitializerError
at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:564)
at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:96)
at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:79)
at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:313)
at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:300)
at org.apache.ws.java2wsdl.Java2WSDLBuilder.<init>(Java2WSDLBuilder.java:94)
at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.<init>(Java2WSDLCodegenEngine.java:50)
at org.apache.ws.java2wsdl.Java2WSDLTask.execute(Java2WSDLTask.java:263)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.IllegalStateException: No valid ObjectCreator found.
at org.apache.axiom.om.util.StAXUtils$Pool.<init>(StAXUtils.java:64)
at org.apache.axiom.om.util.StAXUtils.<clinit>(StAXUtils.java:116)
... 23 more
BUILD FAILED (total time: 0 seconds) |
Thank you |
|
| Back to top |
|
 |
talaba
Joined: 19 Mar 2009 Posts: 2
|
Posted: Thu Mar 19, 2009 5:05 pm Post subject: |
|
|
I have similar issue and solve it following way:
Open build-gwt.xml (stored in nbproject folder of your project folder) and manually edit it. Find following tag:
| Code: |
<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true"
jvmargs="${gwt.compiler.jvmargs}">
|
and just remove jvmargs="${gwt.compiler.jvmargs}" part.
This part is added automatically and I don't know yet how to stop it. Only solution so far is to remove it every time manually.
What NetBeans are you using? When I was using 6.1 all was ok. When I switched to 6.5 it began to behave this way. |
|
| Back to top |
|
 |
talaba
Joined: 19 Mar 2009 Posts: 2
|
Posted: Thu Mar 19, 2009 5:15 pm Post subject: Another solution |
|
|
Second solution is to add | Code: | | gwt.compiler.jvmargs= | string to gwt.properties file stored in nbproject directory.
You can add any arguments after equal sign or leave it empty. |
|
| Back to top |
|
 |
putoguiri
Joined: 18 Mar 2009 Posts: 4
|
Posted: Sun Mar 22, 2009 11:44 am Post subject: |
|
|
Great, works for me. Any idea on the web service problem?
I'm using NB v6.5.1. Although I'm thinking about going back to NB 6.1 and report if it solves the problem. |
|
| Back to top |
|
 |
putoguiri
Joined: 18 Mar 2009 Posts: 4
|
Posted: Sun Mar 22, 2009 2:04 pm Post subject: |
|
|
| Ok, 6.1 works perfectly! |
|
| Back to top |
|
 |
Dematerializer
Joined: 17 Apr 2009 Posts: 3
|
|
| Back to top |
|
 |
FlowerGirl
Joined: 04 Sep 2009 Posts: 1
|
Posted: Fri Sep 04, 2009 1:01 pm Post subject: Thanks!! |
|
|
| Removing that portion from the GWTCompiler line worked wonderfully. Thanks talaba!!!! |
|
| Back to top |
|
 |
aoifiegriffin
Joined: 23 Oct 2009 Posts: 3
|
Posted: Fri Oct 23, 2009 10:16 am Post subject: |
|
|
I have downloaded both the facelets* and the richfaces* plugin for a NetBeans 6.5 daily build. They have both installed correctly and I can create a web project using both of these technologies.
When I open a jsp page I can code complete both the jsf, facelets, richfaces and a4j tags. However, when I open an xhtml page (to write a facelet page), I can only code complete the jsf and facelets tags not the richfaces and a4j tags?
Is there any way I can overcome this so I can code-complete all the tags in both jsp and xhtml(facelets) files?
And i agree with your views. By the way thanks for this great information which you're provided here on this portal. This i was searching on the internet and came across on this page which is really helpful for me. Infect now a days i'm preparing for 70-631 exam for attaining the certification. Although it is not hard to get certified but it keeps me busy. I've also attained certification of another course of 642-241 exam which I had passed last two months back. Also I am trying to complete my pending thesis of E20-520 exam project which i hope will be completed soon. I really enjoyed my stay over here and have knowledge while stopping by. |
|
| Back to top |
|
 |
|