Installation using war created from logicaldoc-7.4.1-src

Problems with installing LogicalDOC? No problems, the solution is closer than you think.

Moderators: car031, car031, car031

Locked
nihgoel
Posts: 4
Joined: Fri Feb 26, 2016 11:57 am

Installation using war created from logicaldoc-7.4.1-src

Post by nihgoel » Fri Feb 26, 2016 12:10 pm

I have created logicaldoc war file by compiling the src logicaldoc-7.4.1-src downloaded from sorceforge using maven/ant
A logicaldoc-7.4.1.war got created succesfully
To deploy, I copied this to Apache Tomcat (version 7.0.67) webapps folder. ( I have jdk 1.7). And, yes I renamed this war file to logicaldoc.war

Initially I was getting error at the time of startup as ClassnotFound exception for a filter IndexRequestFilter. When I was unable to resolve this, I tried to comment this from web.xml
Now the application could be deployed but I get an 'ERROR' page on url http://localhost:8080/logicaldoc
I tried to use the link http://localhost:8080/logical/setup. But here also I am getting this error

An error occurred at line: 9 in the jsp file: /detectmobile.jsp
com.logicalobjects.jlicense.license.LicenseManager cannot be resolved to a type

I basically wish to setup a development version where I can make some small changes - compile and execute

Thanks

agaspa
Posts: 494
Joined: Tue Apr 20, 2010 8:24 am

Re: Installation using war created from logicaldoc-7.4.1-src

Post by agaspa » Fri Feb 26, 2016 9:21 pm

Hi,
you should comment everything in detectmobile.jsp

enclose all the code in
/*
*/

or simply delete it

nihgoel
Posts: 4
Joined: Fri Feb 26, 2016 11:57 am

Re: Installation using war created from logicaldoc-7.4.1-src

Post by nihgoel » Wed Apr 06, 2016 8:03 am

Thank you so much. It has worked by changing a new more changes in web.xml.

I was now trying to set this as an eclipse project. For this I followed the instructions given at:

http://wiki.logicaldoc.com/wiki/Fast_and_Furious

There are no build errors but then I don't know how to deploy this. I am unable to create the war file through Export option.

Do I need to compile from eclipse and then use command mvn -Dmaven.test.skip=true install from command line?

Thanks,

agaspa
Posts: 494
Joined: Tue Apr 20, 2010 8:24 am

Re: Installation using war created from logicaldoc-7.4.1-src

Post by agaspa » Wed Apr 06, 2016 8:53 am

Hi, in order to produce a complete war file
you can simply use maven from the command line.

Open a command shell (on windows command prompt)
change directory to the root of the project logicaldoc and type the command
mvn -Dmaven.test.skip=true install

the process will take some time, depending on the power of your CPU and on the speed of your HD.
At the end a .war file will be produced on folder
\<PROJECT_ROOT>\logicaldoc-webapp\target

nihgoel
Posts: 4
Joined: Fri Feb 26, 2016 11:57 am

Re: Installation using war created from logicaldoc-7.4.1-src

Post by nihgoel » Wed Apr 06, 2016 12:24 pm

Hi,
Thanks for your reply. If I do it this way then every time I have to do a setup again to specify the repository name.
Or, is there anything I am missing ?

nihgoel
Posts: 4
Joined: Fri Feb 26, 2016 11:57 am

Re: Installation using war created from logicaldoc-7.4.1-src

Post by nihgoel » Wed Apr 06, 2016 12:58 pm

Actually I am not sure if I understood the steps. I tried making a small change to a jsp file.

I commented the code in file 'detectmobile.jsp' in logicaldoc-gui/target/plugin/detectmobile.jsp

I saved the file and then executed the maven command but my changes seem lost. I exactly should I change in pom.xml file to enable war creation by building through the local version

Locked

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest