[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Building Mango in Eclipse  XML
Forum Index » Development general discussion
Author Message
mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi,

I try do everything from beginning again...because i could't access http://localhost:8080/manager/list
so i install the tomcat6 again

and when i try build i have another error


[copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango

BUILD FAILED
/home/mario/workspace7/SuperMango/build.xml:117: Failed to copy /home/mario/workspace7/SuperMango/build/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class due to java.io.FileNotFoundException /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class (No such file or directory)

Total time: 3 seconds


sorry my ignorance...
and thanks for your patience

regards,
Mario
Andras

Initiate

Joined: 05/01/2010 15:54:00
Messages: 28
Location: Netherlands
Offline

Regarding your problem to access the manager: did you check that the manager role was assigned to the user with which you tried to access the manager ?

In conf/tomcat-users.xml you should have something like

<tomcat-users>
<role rolename="manager"/>
<user username="manager" password="manager" roles="manager"/>
</tomcat-users>

to be able to access http://localhost:8080/manager/html with user manager

mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi Andras,

in my tomcat-users.xml i have this


<tomcat-users>

<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="manager" password="manager" roles="tomcat,manager"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>

</tomcat-users>


and in my build.properties i have


tomcat.home=/home/mario/Programas/apache-tomcat-6.0.20
tomcat.manager.url=http://localhost:8080/manager
tomcat.manager.username=manager
tomcat.manager.password=manager
tomcat.hostname=webapps/ROOT

# App name and app path are separated to accomodate root deployments. (i.e. 'ROOT' vs. '/')
tomcat.appdir=mango
tomcat.apppath=/mango


and when i run the build.xml to createConfigFiles


Buildfile: /home/mario/workspace7/SuperMango/build.xml
createConfigFiles:
[copy] Copying 1 file to /home/mario/workspace7/SuperMango/build/WEB-INF/classes
[copy] Copying 1 file to /home/mario/workspace7/SuperMango/build/WEB-INF/classes
BUILD SUCCESSFUL
Total time: 466 milliseconds


but when i run to deploy[default]


Buildfile: /home/mario/workspace7/SuperMango/build.xml
compile:
static:
build:
copy:
[copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango

BUILD FAILED
/home/mario/workspace7/SuperMango/build.xml:117: Failed to copy /home/mario/workspace7/SuperMango/build/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class to /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class due to java.io.FileNotFoundException /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class (No such file or directory)

Total time: 2 seconds


other thing i observe is the fact when i started tomcat by the eclipse, i can't access the "http://localhost:8080/" , returning a HTTP Status 404

but when i started the tomcat by console like root, i can access the homepage of tomcat("http://localhost:8080/") and "http://localhost:8080/manager/html" normally

sorry my ignorance...
and thanks for your patience

regards,
Mario
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Hi Mario,

If you're going to have a context path of "mango", then your hostname should not include "ROOT". Try changing the following build.properties value:

tomcat.hostname=webapps

Best regards,
Matthew Lohbihler
mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi mlohbihler,

i changed to

tomcat.hostname=webapps

but don't have any effect...


Buildfile: /home/mario/workspace7/SuperMango/build.xml
compile:
static:
build:
copy:
[copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango

BUILD FAILED
/home/mario/workspace7/SuperMango/build.xml:117: Failed to copy /home/mario/workspace7/SuperMango/build/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class due to java.io.FileNotFoundException /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class (No such file or directory)

Total time: 3 seconds


sorry my ignorance...
and thanks for your patience

regards,
Mario
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Maybe a silly question, but can you say how much of this path actually exists:
/home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/

Best regards,
Matthew Lohbihler
mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi,

maybe is not a silly question hehehehe

only this is real

/home/mario/Programas/apache-tomcat-6.0.20/webapps/


sorry my ignorance...
and thanks for your patience

regards,
Mario
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Incidentally, i strongly recommend changing the password in your tomcat-users file. There is a known crawler that looks for unprotected Tomcat instances and uses the manager to upload and start applications.

Best regards,
Matthew Lohbihler
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

That comment above was for all forum users, not just Mario.

So, Mario, are you sure the user under which the build is running has permissions to write to the "webapps" directory?

Best regards,
Matthew Lohbihler
mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi mlohbihler,

i change the permission and works now i have the folder

/home/mario/Programas/apache-tomcat-6.0.20/webapps/mango

and the build is ok

Buildfile: /home/mario/workspace7/SuperMango/build.xml
compile:
static:
build:
copy:
[copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango
deploy:
BUILD SUCCESSFUL
Total time: 26 seconds




now i will try access http://localhost:8080/mango
right?

sorry my ignorance...
and thanks for your patience

regards,
Mario
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Sure, give it a try.

Best regards,
Matthew Lohbihler
mmn666

Initiate

Joined: 22/03/2010 10:51:38
Messages: 15
Offline

Hi,

i try access http://localhost:8080/mango/(http://localhost:8080/mango/login.htm) and i have a error report


com.serotonin.web.dwr.LocalizableMessageConverter.convertOutbound(LocalizableMessageConverter.java:25)


and like in topic
http://mango.serotoninsoftware.com/forum/posts/list/345.page

the problem is my browser the firefox,when i desativated a plugin... ...works!!!

thank you very much...
hartelijk dank


sorry my ignorance...
and thanks for your patience

best regards,
Mario

This message was edited 3 times. Last update was at 30/03/2010 22:07:50

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

You're using 1.8.1? That problem should have been fixed.

Give this jar file a try, but keep the old one just in case it all goes horribly wrong.
 Filename seroUtils.jar [Disk] Download
 Description
 Filesize 376 Kbytes
 Downloaded:  32 time(s)


Best regards,
Matthew Lohbihler
Jay

Initiate

Joined: 09/04/2011 23:01:33
Messages: 1
Offline

Hi all,

I'm having a problem running/compiling mango using eclipse, and was wondering if someone here might know what I did wrong...

I've followed all the steps described by Andras to build the project in Eclipse, including "add external jar" to add the following jars from ${tomcat.home}/lib

servlet-api
jsp-api

When I try to build, I get several compile errors starting with

[javac] C:\Dev\testing\workspace\Mango\src\com\serotonin\mango\vo\User.java:26: package javax.servlet.http does not exist
[javac] import javax.servlet.http.HttpSessionBindingEvent;

Finally, I copied the files

servlet-api.jar and
jsp-api.jar

into ...war\WEB-INF\lib.

Then the build process successfully compiles and copies files to Tomcat's webapps folder. In fact, it does this even if I remove the "external jars" servlet-api and jsp-api from classpath (using eclipse)!

However, when I try to run the application, it returns a HTTP Status 500 page with a null pointer exception in javax.servlet.http.HttpServlet.service

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:536)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:36
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

I suspect this is related to the servlet-api jar.

Anyone have any suggestions...?

Jay

jmo

Initiate

Joined: 16/07/2010 13:18:24
Messages: 7
Location: Texas
Offline

I'm having the same problem...
I'll work on it more tonight or tomorrow and see what happens...
 
Forum Index » Development general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team