404 error after login

LogicalDOC has many interesting features, but requires some configuration process to show its full potential.

Moderator: car031

Huysmans
Posts: 7
Joined: Sun May 04, 2014 3:22 pm

404 error after login

Wed May 07, 2014 10:05 pm

I installed logicaldoc CE to try the product.
I cannot fix an error that occurs immediately after login: "Error 404"
I have found this informations in the apache log "localhost_access_log.2014-05-07.txt":
127.0.0.1 - ldocadmin [07/May/2014:22:36:01 +0200] "POST /logicaldoc/frontend/workflow HTTP/1.1" 404 5
127.0.0.1 - ldocadmin [07/May/2014:22:36:01 +0200] "POST /logicaldoc/frontend/workflow HTTP/1.1" 404 5
I have attached a screenshot of the error.
If anyone could give me a hint how I can solve this problem, I would appreciate very much.
Attachments
Login.jpg
Login.jpg (111.94 KiB) Viewed 7590 times
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: 404 error after login

Thu May 08, 2014 4:40 pm

Can you describe in more detail the operations that you have performed?
Did you installed on MySQL or you are using the embedded database (HSQLDB)?
Maybe you can post a zip with the log (dms.log)
Huysmans
Posts: 7
Joined: Sun May 04, 2014 3:22 pm

Re: 404 error after login

Thu May 08, 2014 8:16 pm

Hi agaspa,
thank you for your attention to my problem.
I installed LogicalDoc CE on a MySQL database created with these two script:
- CREATE DATABASE logicaldoc;
- GRANT ALL PRIVILEGES ON *.* TO 'logicaldoc'@'localhost' IDENTIFIED BY 'sa' WITH GRANT OPTION;
and then I started setup procedure.
I attached my zipped "dms.log" of today because I have installed newly Apache and LogicalDoc, however the problem still exists when I login.
Thank you for your attention to my problem.
Attachments
dms.log.zip
(5.44 KiB) Downloaded 251 times
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: 404 error after login

Fri May 09, 2014 8:36 am

Hi Huysmans,
from your log, it seems that now you're running a LogicalDOC 6.8.3.
Anyway on this log file there are no errors.

Which zip file you downloaded from SourceForge?
You can attach a zip of the log files in tomcat?
You can find them in the installation folder of logicaldoc under tomcat\logs
Just do a zip of the newer ones

There may even be useful a screenshot, or a directory list of the libraries loaded by the LD webapp.
The folder path is something like: \tomcat\webapps\logicaldoc\WEB-INF\lib

One final note: If you upgraded or changed your LD webapp,
you have to perform a clean up of the browser cache. This is very important !!

The same applies if you previously installed a trial version of LogicalDOC
Alex
Huysmans
Posts: 7
Joined: Sun May 04, 2014 3:22 pm

Re: 404 error after login

Fri May 09, 2014 9:57 pm

Hi Alex,
you're right, in a desperation moment I tried to install the last version but without results. Sorry of the confusion!!

This is the file that I downloaded from SourceForge: "logicaldoc-6.8.3-tomcat-bundle.zip". I used only the war file included in the zip.

I attached all the tomcat logs and the list of libraries you have requested.

After your advice, I have performed a "clean up" of the browser cash.
If you need a clear situation I haven't problems to re-install tomcat and Logicaldoc in a new virtual machine.

Thank a lot and have a good weekend
Attachments
logs-libraries.zip
(5.83 KiB) Downloaded 255 times
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: 404 error after login

Sat May 10, 2014 3:52 pm

In LogicalDOC Community 6.8.3 the workflow libraries are not included,
so it is really strange that you receive this error.

Also I have checked on a fresh install from scratch and on my PC the problem does not occur.
I used Firefox 29.0.1

My opinion is that you still have in your browser's cache some javascript code of a previous installation of LogicalDOC Trial (Enterprise).

The solution is to completely clear your browser's cache, the retry the login.

Another option to verify the matter is to access the system using a different browser, such as Google Chrome instead of Firefox.

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

Re: 404 error after login

Sat May 10, 2014 4:11 pm

Upon further inspection, however, I have found that in the web.xml (deployment descriptor) there is a reference to a class that is not present in your libraries.

Code: Select all

  <servlet>
    <servlet-name>WorkflowService</servlet-name>
    <servlet-class>com.logicaldoc.gui.frontend.server.MockWorkflowServiceImpl</servlet-class>
  </servlet>

Code: Select all

  <servlet-mapping>
    <servlet-name>WorkflowService</servlet-name>
    <url-pattern>/frontend/workflow</url-pattern>
  </servlet-mapping>
So this should be the cause of the exception present in file localhost.2014-05-08.log.

In any case, I confirm my previous opinion, you should have in the browser cache parts of code from a previous installation of LogicalDOC Enterprise.

One thing that might be interesting is to see an export of your mysql database,
if you don't mind you can attach it here, or send it to support@logicaldoc.com

Alex
Huysmans
Posts: 7
Joined: Sun May 04, 2014 3:22 pm

Re: 404 error after login

Tue May 13, 2014 9:26 pm

Hi Alex,
sorry for the delay but I couldn't connect before.
I deleted references to workflow in the files "web.xml" and "web.xml.back", I installed Chromium (new browser with a clear cash) but the errors in the log and on the home page still exists.
I have attached the dump of the db, I hope can help you.
A short list of the installation steps:
- I have installed Linux Mint 14 on a new virtual machine (VirtualBox);
- I have downloaded the file "logicaldoc-6.8.3-tomcat-bundle.zip" from "http://sourceforge.net/projects/logical ... t/download", I have extracted the files and made the deployment of "logicaldoc.war" on tomcat 7.0.50.
Thank you so much.
Attachments
dump.logicaldoc.sql.gz
(6.82 KiB) Downloaded 298 times
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: 404 error after login

Wed May 14, 2014 10:24 am

Hi Huysmans,

finally I was able to reproduce the problem.
Luckly it's not a blocker issue, it is still possible to use the application.

We found a way to make a patch that you can install on LogicalDOC Community version 6.8.3 or 6.8.4.

Proceed as follow:
1) Shutdown tomcat
2) Check that information about servlet WorkflowService are correctly present in the web.xml file.

In servlet section

Code: Select all

  <servlet>
    <servlet-name>WorkflowService</servlet-name>
    <servlet-class>com.logicaldoc.gui.frontend.server.MockWorkflowServiceImpl</servlet-class>
  </servlet>
In servlet mapping section

Code: Select all

  <servlet-mapping>
    <servlet-name>WorkflowService</servlet-name>
    <url-pattern>/frontend/workflow</url-pattern>
  </servlet-mapping>
3) Uncompress the content of the zip file attached to folder WEB-INF/classes of your logicaldoc web-app
4) Restart Tomcat
5) Clear the cache of your browser (before attempting to sign in)

Note: this patch is only for LogicalDOC Community 6.8.3/6.8.4, it's not needed for LD Enterprise edition

Alex
Attachments
ldce683-workflow-patch.zip
Workflow patch for LogicalDOC Community 6.8.3-6.8.4
(1.78 KiB) Downloaded 250 times
Huysmans
Posts: 7
Joined: Sun May 04, 2014 3:22 pm

Re: 404 error after login

Wed May 14, 2014 9:28 pm

Hi Alex,
the patch worked very well ... problem solved! :)

Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 14 guests