Page 1 of 1

Unresolved compilation problem

PostPosted:Thu Aug 19, 2010 2:58 am
by surajaya
Hello,

This is my first post in this forum. I'm currently evaluate OpenKM 4.1, successfully build openkm from source, but get a runtime error "Error when communicating with server (GetDocumentChilds). I'm sure that network connection is OK since I run it in localhost (127.0.0.1). The server log says that it's a unresolved compilation problem :
Code: Select all
2010-08-19 09:30:27,017 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/OpenKM]] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List es.git.openkm.frontend.client.service.OKMDocumentService.getChilds(java.lang.String) throws es.git.openkm.frontend.client.OKMException' threw an unexpected exception: java.lang.Error: Unresolved compilation problem: 

	at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)


Any clue on what exactly happened with my openkm installation ?
Thanks in advance

Re: Unresolved compilation problem

PostPosted:Thu Aug 19, 2010 3:01 am
by surajaya
Further investigation :
- All added document successfully inserted in the MySQL5 database, but not displayed in the WEB (user interface).

Re: Unresolved compilation problem

PostPosted:Thu Aug 19, 2010 9:39 am
by jllort
First concentrate in error and after with mysql.

Which java jdk version are your using with jboss and with which have you compiled OpenKM ?
Which GWT version are you using ?

Re: Unresolved compilation problem

PostPosted:Thu Aug 19, 2010 11:58 pm
by surajaya
Here is my development environment :
- sun-java6. I'm sure that I have removed openjdk6 (default java runtime that comes with ubuntu lucid lynx).
- Jboss 4.2.3 GA
- GWT 1.5.3 (not sure about this, found 3 GWT version on maven repository 1.5.3, 1.6.4, 2.0.3 but not sure which one that's being used by the compiler)

Re: Unresolved compilation problem

PostPosted:Fri Aug 20, 2010 12:16 am
by surajaya
Finally solved. Just realized that during compilation process I installed some JAR file from file, and 1 of the file is a wrong one (maven complaining that it can't find some JAR on the net and I just search and download the file and install it). Replacing the wrong JAR file with the correct JAR file solved this problem :mrgreen: :D

Re: Unresolved compilation problem

PostPosted:Fri Aug 20, 2010 6:19 am
by jllort
Which was the wrong jar ? that could be user to other users, and we'll take a look about it.

Re: Unresolved compilation problem

PostPosted:Fri Aug 20, 2010 6:48 am
by surajaya
jodconverter.2.2.2.jar
Maven complaining that it unable to find those file from internet (during build). I search the net for that file, find a ZIP file that i thought the correct file so I simply rename it to JAR. I downloaded it and installed manually from command line.

It turn out that those file is indeed a ZIP file and further observation revealed that the JAR file is contained in those file (buried deep in some folder inside those ZIP file). Copying the right file, and then some other step like : mvn -U ...., mv -purge-local-repository.., etc followed by normal build resulting in a successful compilation :mrgreen:

Re: Unresolved compilation problem

PostPosted:Sun Aug 22, 2010 8:28 am
by jllort
Thanks for your answers, we'll take a look at maven repositories, could be happen some change that missed.