Archive for the ‘netbeans’ Category

Exception in thread “Thread-6″ java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException

Sunday, November 29th, 2009

I am using netbeans and iReport 3.6.0. The reports are working fine running from iReport preview but I got an error when I tried to launch the report from the application:

Exception in thread "Thread-6" java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

SOLUTION 1:
Open jrxml file and remove language=”groovy”

SOLUTION 2:
Add groovy-all-1.5.5.jar to your library path

SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind

Thursday, October 22nd, 2009

I got the following error when I try to start tomcat:

SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:363)
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

I am also running Netbeans and Glassfish at the same time.

First I tried to modify default tomcat port:

Modify C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml

It did not help. I found using netstat -abv command also gives you a detailed list of programs using ports. Note: this command takes a long time.

I have found occupied ports and modified them.

<Server port="8098" shutdown="SHUTDOWN">
<Connector port="8099" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8097"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />