Trouble starting Fess from source

I’m having some trouble starting it up from the source code, i get the following errors:

Exception in thread "main" java.lang.NoClassDefFoundError: org/dbflute/tomcat/TomcatBoot
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at com.intellij.rt.execution.application.AppMain.main(
Caused by: java.lang.ClassNotFoundException: org.dbflute.tomcat.TomcatBoot
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 15 more
Picked up _JAVA_OPTIONS: -Dhttp.auth.preference=ntlm

Or if I try debugging i get this:

Connected to the target VM, address: '', transport: 'socket'
Disconnected from the target VM, address: '', transport: 'socket'
Error: Could not find or load main class org.codelibs.fess.FessBoot
Picked up _JAVA_OPTIONS: -Dhttp.auth.preference=ntlm

Run mvn package before starting FessBoot.

The mvn package ran succesfully. However I`m trying to run based on the source code from IntelliJ IDEA.
Following the documentation:

Launch org.codelibs.fess.FessBoot as Debug mode and then access to http://localhost:8080/

To run on IDEA, could you remove provided scope of tomcat-boot and tomcat-jasper in pom.xml?

1 Like

Hi thanks for that! I updated the pom.xml and now I’m on to the next error. I spent some time searching the web and trying to figure it out but i`m stuck again.

The following jar files seem to be missing, and i can’t get Maven/IDEA to download them:
Do these have to be installed manually or is it just my environment that`s not configured properly?

… and many more

Run mvn package, and then dependencies are downloaded.

I did run mvn package see above also. When i run mvn package it builds with success. When i build for debug i get errors of missing packages.

Please check Local Repository in Preference -> Build,Execution,Deployment -> Build Tools -> Maven.
I think it’s a general problem about IDEA/Maven, not Fess…

I managed to successfully build the solution this morning. I think the issue was that the corporate proxy was blocking some of the domains you referenced. I used a different connection and it all started working. I could build for debug using IntelliJ and also package the release with Maven. Thanks for your support.