[Logo] Mango M2M Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Installation problems  XML
Forum Index -> Mango installation
Author Message
Antsu

Initiate

Joined: 18/11/2009 00:53:40
Messages: 8
Offline

Hello!,
 
I'm a beginner with Linux, that's why I'm asking some help, please.
I install Mango to Ubuntu 9.10 Netbook-remix and when I open http://localhost:8080/ to my browser, appear error message:

[b]HTTP Status 404-
type Status report
message
description The requested resource () is not available.[/b
]

That worked before, when I copy Mango M2M Binaries and Mango M2M source code to /var/lib/tomcat6/webapps. So, first when I opened http://localhost:8080/ to my browser, appeared Tomcat’s welcome message, not anymore. What went wrong?
I have read somewhere, that I must give rights to tomcat6 user to some directories. How I should do that? I look users and groups on Ubuntu’s system users handling, and there is only user root and my own. Is that ok? What else I must check?
mlohbihler


[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 899
Online

Yes, check that the user under which Tomcat is running has RW access to all directories under tomcat6.

Also, did you put Mango into a subdirectory in webapps? E.g. if Mango is in "webapps/mango" you'll need to to go to "localhost:8080/mango". If you want Mango to be the root context, it needs to be in "webapps/ROOT".

Best regards,
Matthew Lohbihler
apl

Padawan

Joined: 08/05/2009 13:22:03
Messages: 94
Offline

Hi Antsu,

the user tomcat6 exists in /etc/passwd and the group tomcat6 in /etc/groups.
the user tomcat6 can't login (shell is /bin/false in passwd).

Assuming you have put mango to /var/lib/tomcat6/webapps/ROOT
you can follow the following steps to setup mango with derby

1. cd /var/lib/tomcat6/webapps/
2. chown -R tomcat6.tomcat6 ROOT
3. mkdir /var/lib/mango
4. chown -R tomcat6.tomcat6 /var/lib/mango

5. Look at /var/lib/tomcat6/webapps/ROOT/WEB-INF/classes/env.properties
if you use the database derby change the line db.url to db.url=/usr/local/mango/mangoDB

Look out for the security manager issue.

for the other stuff see http://mango.serotoninsoftware.com/forum/posts/list/208.page

Arne
aniimsaj

Initiate

Joined: 22/11/2009 15:57:23
Messages: 7
Offline

Hello, I have a same problem as first writer but with Win2000 machine. First I got Tomcat page opened ok but when I copied Mango to ROOT folder I got same Tomcat error. When I started Tomcat with startup.bat it showed to load also Mango files and loading took longer than without Mango.

Java used is newest (1.6.0_17). Any help to start with that interesting software?
mlohbihler


[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 899
Online

Are there any interesting messages in the console during startup? Also, check out <tomcat>/logs/localhost.<date>.log. Reply here with any error messages you find in there.

Best regards,
Matthew Lohbihler
aniimsaj

Initiate

Joined: 22/11/2009 15:57:23
Messages: 7
Offline

mlohbihler wrote:
Are there any interesting messages in the console during startup? Also, check out <tomcat>/logs/localhost.<date>.log. Reply here with any error messages you find in there. 


I cut a piece of file from the file named: "catalina.2009-11-23.log"


INFO: Starting service Catalina
23.11.2009 0:09:42 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
23.11.2009 0:09:43 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\tomcat-home\webapps\host-manager does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:404
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:28
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
23.11.2009 0:09:43 org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
23.11.2009 0:09:43 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
23.11.2009 0:09:43 org.apache.catalina.core.StandardContext start
SEVERE: Context [/host-manager] startup failed due to previous errors
23.11.2009 0:09:43 org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager] has not been started
23.11.2009 0:10:05 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
23.11.2009 0:10:05 org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
23.11.2009 0:10:10 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
23.11.2009 0:10:11 org.apache.jk.common.ChannelSocket init


Any idea?
mlohbihler


[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 899
Online

There is a statement in the Mango installation doc that other directories under webapps can be deleted. This was intended for that version of Tomcat and may not be applicable anymore. In particular, this message in your snippet, "Document base C:\tomcat-home\webapps\host-manager does not exist or is not a readable directory", suggests this may be the case. Check the conf/server.xml file for references to that directory and either remove those references or reinstate the host-manager.

Also, this message: "SEVERE: Error listenerStart", typically means that Mango didn't start up for some reason. The relevant stack trace will be in the localhost log that i mentioned previously.

Best regards,
Matthew Lohbihler
aniimsaj

Initiate

Joined: 22/11/2009 15:57:23
Messages: 7
Offline

mlohbihler wrote:
There is a statement in the Mango installation doc that other directories under webapps can be deleted. This was intended for that version of Tomcat and may not be applicable anymore. In particular, this message in your snippet, "Document base C:\tomcat-home\webapps\host-manager does not exist or is not a readable directory", suggests this may be the case. Check the conf/server.xml file for references to that directory and either remove those references or reinstate the host-manager.

Also, this message: "SEVERE: Error listenerStart", typically means that Mango didn't start up for some reason. The relevant stack trace will be in the localhost log that i mentioned previously. 


I installed Mango to WinXP PC and it went fine. Now I deleted earlier installation from Win2k PC and installed files a same way and now that one works also

Now I will go on. Thank you!

First look was great and now I try to make it communicate outside of the PC box...
 
Forum Index -> Mango installation
Go to:   
Powered by JForum 2.1.7 © JForum Team