cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to login to Activiti Probe, Explorer and Cycle

gerry_fisher
Champ in-the-making
Champ in-the-making
Platform: Windows XP SP3
Activiti Version: activiti-5.0.beta1
Login username/pwd: kermit/kermit, gonzo/gonzo, fozzie/fozzie

I have successfully installed Activiti by running ant demo.setup and got Tomcat running. However, I am unable to log into any of the subject apps with the username/passwords given in the User Guide. The ant task for running the h2.data.sql script was successful as shown from the console output:

…
db.demo.data:
      [sql] Executing resource: C:\development\bpm\tools\activiti\activiti-5.0.beta1\setup\files\demo\h2.data.sql
      [sql] 23 of 23 SQL statements executed successfully
      [zip] Building zip: C:\development\bpm\tools\activiti\activiti-5.0.beta1\setup\build\activiti-examples.bar
…

The other 3 apps that don't require a login - Modeler, REST and Engine Init - are responding correctly in the browser.

Has anyone got any suggestions about what might be going on? I don't think I missed any installation steps.
7 REPLIES 7

davidcognite
Star Contributor
Star Contributor
What browser are you using?

What error do you get?

gerry_fisher
Champ in-the-making
Champ in-the-making
Hi,

Firefox 3.6.10

The message appearing just above the User Name field reads: "The system was unable to log you in."

davidcognite
Star Contributor
Star Contributor
There aren't any issues we're aware of with that browser/release combination.

Are there any exceptions in the Tomcat log files that might shed some light on the issue?
The log file is 'catalina.out' located somewhere similar to:
activiti-5.0.beta1/apps/apache-tomcat-6.0.29/logs

Can you verify that your DB is set up and running correctly. This blog post has details on how to browse the DB: http://www.jorambarrez.be/blog/2010/08/02/tutorial-a-bpmn-2-0-hello-world-with-activiti-5-0-alpha4-i...
specifically the commands:
cd activiti-5.0.beta1/apps/h2
java -cp h2*.jar org.h2.tools.Server -web
and then visiting: http://localhost:8082

HTH,
David.

gerry_fisher
Champ in-the-making
Champ in-the-making
David,

Thanks for the very useful info on accessing H2.

I can confirm that tables ACT_ID_GROUP, ACT_ID_MEMBERSHIP and ACT_ID_USER have been populated from file h2.data.sql.

However, the content of catalina.2010-09-22.log looks interesting:

22-Sep-2010 10:28:29 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
22-Sep-2010 10:28:29 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: No credentials available for BASIC 'XDB'@localhost:8080
22-Sep-2010 10:28:29 org.springframework.extensions.webscripts.connector.AuthenticatingConnector handshake
SEVERE: An exception occurred while attempting authentication handshake for endpoint: http://localhost:8080/activiti-rest/service
org.springframework.extensions.surf.exception.AuthenticationException: Unable to login:<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Unauthorized</TITLE>
</HEAD><BODY><H1>Unauthorized</H1>
</BODY></HTML>

at org.activiti.surf.ActivitiRESTAuthenticator.authenticate(ActivitiRESTAuthenticator.java:101)
at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.handshake(AuthenticatingConnector.java:403)
at org.activiti.surf.ActivitiUserFactory.authenticate(ActivitiUserFactory.java:122)
at org.springframework.extensions.surf.mvc.LoginController.handleRequestInternal(LoginController.java:59)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        ……………..

I can see right away that the web app is attempting to access port 8080. This is incorrect. When I installed Tomcat I changed the port to 8280 to avoid clashing with an older Tomcat installation already running on that port. This seems to be the same problem I am experiencing with the Activiti Modeler for which I have another post at http://forums.activiti.org/en/viewtopic.php?f=3&t=285

In summary, Tomcat is redirecting the browser to port 8080 for some reason. I imagine this is a configuration issue and it looks as if the port number needs to be changed somewhere else, in addition to the change I made in server.xml. I wonder if activiti-modeler-5.0.beta1.war has got port 8080 hardcoded into it somewhere?

Regards,

Gerry

davidcognite
Star Contributor
Star Contributor
Hi Gerry,

The REST API url is set in the surf config file:
modules/activiti-webapp/src/main/webapp/WEB-INF/surf.xml

You'll need to update that.

If you get any further issues after that, let me know and we can see if there is anything else.

David.

gerry_fisher
Champ in-the-making
Champ in-the-making
David,

Thanks, I can now login to all three apps. For anyone reading this post, the surf.xml files in question can be found in the various subdirectories at activiti-5.0.beta1\setup\files\webapps. If you are already up and running and don't want to go through demo.setup again then just make the changes in your Tomcat webapps instead.

As for the Activiti Modeler issue that I suggested might be related, there is a hard-coded 8080 in activiti-modeler-5.0.beta1.war and I'll address that point in its relevant post.

Regards,

Gerry

davidcognite
Star Contributor
Star Contributor
Hi Gerry,

Glad you found the files & the fix worked.

I'll pass on the info about the hard coded port numbers & we'll get that oversight corrected.

David.