NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
java4dev Posted via mailing list.
|
Posted: Tue Mar 01, 2011 9:06 am Post subject: Problem with tomcat 7.0.8 |
|
|
Hello,
first time with web applications.
I create a simple web project. I have not added a single line.
It is just the project as it is created by the wizard.
I am building the project and try to run it but while it deploys and
runs on tomcat 6 it never deploys on tomcat 7 and I am getting the
following error
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at
C:\Users\xxx\NetBeansProjects\WebApplication1\build\web
Deployment is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2Fnikoniko%2FAppData%2FLocal%2FTemp%2Fcontext6843352661346889036.xml&path=/WebApplication1
http://localhost:8080/manager/deploy?config=file%3A%2FC%3A%2FUsers%2Fxxx%2FAppData%2FLocal%2FTemp%2Fcontext6843352661346889036.xml&path=/WebApplication1
C:\Users\xxx\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:713:
The module has not been deployed.
BUILD FAILED (total time: 1 minute 23 seconds)
Why is that?
brg
Nikolas |
|
| Back to top |
|
 |
Javier.Ortiz Posted via mailing list.
|
Posted: Tue Mar 01, 2011 2:50 pm Post subject: Problem with tomcat 7.0.8 |
|
|
Check the server logs for more details.
Javier A. Ortiz Bultr |
|
| Back to top |
|
 |
java4dev Posted via mailing list.
|
Posted: Tue Mar 01, 2011 4:27 pm Post subject: Problem with tomcat 7.0.8 |
|
|
There is no entry on the logs but if I try to manually access the URL I get the following from the server.
404 Not found
The page you tried to access (/manager/deploy) does not exist.
The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options: - /manager/html for the HTML GUI
- /manager/text for the text interface
- /manager/jmxproxy for the JMX proxy
- /manager/status for the status pages
Note that the URL for the text interface has changed from "/manager" to "/manager/text".
You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team.
So it seems that tomcat has changed in version 7.
I tried NetBeans 7 and there it works.
brg
Στις 1/3/2011 4:24 μμ, ο/η address-removed ([email]address-removed[/email]) έγραψε: | Quote: | Check the server logs for more details.
Javier A. Ortiz Bultr |
|
| Back to top |
|
 |
java4dev Posted via mailing list.
|
Posted: Wed Mar 02, 2011 5:51 pm Post subject: Problem with tomcat 7.0.8 |
|
|
Hello again,
I am still having problem with tomcat + NetBeans.
The best combination I could found is NetBeans 7 beta2 with Tomcat 7.0.8 but even in this combination I get the following error.
2 Μαρ 2011 12:45:13 μμ org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor WebApplication13.xml from D:\Program Files\Apache Software Foundation\apache-tomcat-7.0.8\conf\Catalina\localhost
2 Μαρ 2011 12:45:13 μμ org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\nikoniko\Documents\NetBeansProjects\WebApplication13\build\web\WEB-INF\lib\javaee-web-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2 Μαρ 2011 12:45:14 μμ org.apache.catalina.startup.ContextConfig checkHandlesTypes
WARNING: Unable to load class [javax.management.j2ee.statistics.JTAStats] to check against the @HandlesTypes annotation of one or more ServletContentInitializers.
java.lang.ClassNotFoundException: javax.management.j2ee.statistics.JTAStats
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1947)
I have placed in red two lines that I thing is important.the problem seems to be that it cannot find the
javax.management.j2ee.statistics.JTAStats
this class is included in the Java EE Web 6 API library, but in there lies also the Servlet.class.
So when the loader tries to load the jar, finds the class and does not load the jar which causes later the deployment to fail because of the missing class.
If I don't include the jar, I don't get the message from the loader but the JTAStats class is still missing.
How do you solved this problem?
It seems impossible to deploy from NetBeans to either 6 or 7 tomcat.
I even tried glassfish 3 but there it is even worse.
When I try to do something in the administration I always get JSF2 + Ajax Missing! and I go back to the login page.
any tips?
Στις 1/3/2011 10:44 πμ, ο/η java4dev έγραψε: | Quote: | Hello,
first time with web applications.
I create a simple web project. I have not added a single line.
It is just the project as it is created by the wizard.
I am building the project and try to run it but while it deploys and runs on tomcat 6 it never deploys on tomcat 7 and I am getting the following error
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at C:\Users\xxx\NetBeansProjects\WebApplication1\build\web
Deployment is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2Fnikoniko%2FAppData%2FLocal%2FTemp%2Fcontext6843352661346889036.xml&path=/WebApplication1
http://localhost:8080/manager/deploy?config=file%3A%2FC%3A%2FUsers%2Fxxx%2FAppData%2FLocal%2FTemp%2Fcontext6843352661346889036.xml&path=/WebApplication1
C:\Users\xxx\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:713: The module has not been deployed.
BUILD FAILED (total time: 1 minute 23 seconds)
Why is that?
brg
Nikolas
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|