NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans broken

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
putoguiri



Joined: 18 Mar 2009
Posts: 4

PostPosted: Wed Mar 18, 2009 1:43 pm    Post subject: Netbeans broken Reply with quote

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

PostPosted: Thu Mar 19, 2009 5:05 pm    Post subject: Reply with quote

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

PostPosted: Thu Mar 19, 2009 5:15 pm    Post subject: Another solution Reply with quote

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

PostPosted: Sun Mar 22, 2009 11:44 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 22, 2009 2:04 pm    Post subject: Reply with quote

Ok, 6.1 works perfectly!
Back to top
Dematerializer



Joined: 17 Apr 2009
Posts: 3

PostPosted: Sun Apr 19, 2009 7:40 pm    Post subject: Reply with quote

Or try this: http://forums.netbeans.org/post-31737.html
Back to top
FlowerGirl



Joined: 04 Sep 2009
Posts: 1

PostPosted: Fri Sep 04, 2009 1:01 pm    Post subject: Thanks!! Reply with quote

Removing that portion from the GWTCompiler line worked wonderfully. Thanks talaba!!!!
Back to top
aoifiegriffin



Joined: 23 Oct 2009
Posts: 3

PostPosted: Fri Oct 23, 2009 10:16 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo