В Grails команда «tomcat: deploy» не генерирует полную войну, как команда «dev war»
Команда "Grails Dev War " разворачивается идеально в моем локальном сервере Tomcat6 с сгенерированной войной, которая содержит следующие папки:
css
images
js
META-INF
plugins
WEB-INF
К сожалению, мне нужна эта командакот: развернуть тоже работает (ям фактически использует: tomcat: redeploy -DskipTests). Но Томкатвыдает следующую ошибку:
2013-05-23 05:12:53,094 [http-8080-4] ERROR digester.Digester - Parse Fatal Error at line 1 column 1: Final de archivo prematuro.
org.xml.sax.SAXParseException; systemId: jndi:/localhost/Alojamiento/WEB-INF/web.xml; lineNumber: 1; columnNumber: 1; Final de archivo prematuro.
at
Я добавилпустой web.xml для того, чтобы Maven скомпилирован. Это также пусто в порожденной войне. Так что это, вероятно, причина проблемы ("Grails Dev War " создает файл web.xml с кодом). Кроме того, сгенерированная война содержит только следующие папки:
META-INF
WEB-INF
Чтобы иметь возможность использоватькот развернуть "Я добавил следующий код в pom.xml (после добавления pom true, запустив "группа "создать-пом" и другие изменения конфигурации):
org.codehaus.mojo
tomcat-maven-plugin
http://127.0.0.1:8080/manager
TomcatServer
ОБНОВЛЕНИЕ 1 Мой полный pom.xml:
4.0.0
alojamiento.ingenierosIW
Alojamiento
war
0.1
Alojamiento
Alojamiento
2.2.2
org.grails
grails-dependencies
${grails.version}
pom
org.grails
grails-test
${grails.version}
test
org.grails
grails-plugin-testing
${grails.version}
test
mysql
mysql-connector-java
5.1.25
runtime
org.grails.plugins
tomcat
${grails.version}
provided
zip
org.grails.plugins
spring-security-core
1.2.7.3
compile
zip
org.grails.plugins
cache
1.0.1
compile
zip
org.grails.plugins
resources
1.2.RC2
runtime
zip
org.grails.plugins
db-reverse-engineer
0.5
runtime
zip
org.grails.plugins
jquery
1.8.3
runtime
zip
org.grails.plugins
database-migration
1.3.2
runtime
zip
org.grails.plugins
hibernate
2.2.2
runtime
zip
org.grails.plugins
tomcat
2.2.2
provided
zip
org.apache.maven.plugins
maven-surefire-plugin
true
surefire-it
integration-test
test
false
org.apache.maven.plugins
maven-clean-plugin
2.4.1
plugins
**/*
false
org.grails
grails-maven-plugin
${grails.version}
true
true
org.codehaus.mojo
tomcat-maven-plugin
true
http://127.0.0.1:8080/manager
TomcatServer
grails
grails
http://repo.grails.org/grails/core
grails-plugins
grails-plugins
http://repo.grails.org/grails/plugins
tools
java.vendor
Sun Microsystems Inc.
com.sun
tools
${java.version}
system
${java.home}/../lib/tools.jar