This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
How to configure two js-file in my Web.xml ?
Gustavo Siqueira
Ranch Hand
Joined: Jun 15, 2011
Posts: 94
I like...
posted
Feb 04, 2012 17:59:00
0
Hi!
I'm trying configures several links the web.xml for jsp-file. See:
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <!--Aqui fica configurado o link para a classe EnviarMail.java --> <servlet> <servlet-name>EnviarMail</servlet-name> <servlet-class>EnviarMail</servlet-class> </servlet> <servlet-mapping> <servlet-name>EnviarMail</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet> <servlet-name>contact</servlet-name> <jsp-file>/cta/contact.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>contact</servlet-name> <url-pattern>*.java</url-pattern> </servlet-mapping> <servlet> <servlet-name>services</servlet-name> <jsp-file>services.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>services</servlet-name> <url-pattern>*.java</url-pattern> </servlet-mapping> </web-app>
Error:
Project/nbproject/build-impl.xml:724: The module has not been deployed. See the server log for details.
What is happening?
Srikanth Kumar
Ranch Hand
Joined: Jun 04, 2008
Posts: 36
posted
Feb 08, 2012 06:03:24
0
Can you post the error part of the log and part around line number 724 in build-impl.xml?
Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56528
14
I like...
posted
Feb 08, 2012 08:12:34
0
One problem (of probably many): you have two identical mappings. Each must be unique. And "*.java"? Really?
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: How to configure two js-file in my Web.xml ?
Similar Threads
Why is my jsp not available?
Java Servlets and JSP pages
Running first example of head first Servlets & JSP
[solved]Struts 2 and Vaadin
Sessions on a servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter