Re: Build Problem
cesar figueroa <[email protected]> Fri, 24 Jun 2005 09:34:43 -0500
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hola muchachos.
After updating and rebuilding from public CVS I've suddenly found a
problem when doing a "maven war" on the default project.
I followed the following instructions.
1) Setup your Java, Maven and Keel environment as described here:
http://www.keelframework.org/release/HEAD/docbook/keel-doc/html_chunk/manual/ch13.html
(use at least 1.2.12 of maven-keel-plugin).
2) Create an empty directory, and copy
keel-build/example-projects/default/* to this newly created directory.
This is your HOJ project directory.
3) Change directory to your default project directory
4) maven keel:maven
5) maven war
6) copy default.war from <HOJ project dir>/target into your
servers webapp directory, restart your server
7) access http://localhost:8080/default
I used maven-keel-plugin-1.2.18
I get the message "keel.project property is not true - keel specific
goals skipped"
Then I did
maven keel:maven
maven war
But BUILD FAILED again
this is the result:
bla.bla...bla...
into C:\tmp\mal\default\target\temp\webapp
[unjar] Expanding:
D:\workspaces\repository\hsqldb\jars\hsqldb-1.7.3.0.jar i
nto C:\tmp\mal\default\target\temp\webapp
[unjar] Expanding:
D:\workspaces\repository\mysql\jars\mysql-connector-java-
3.1.4-beta-bin.jar into C:\tmp\mal\default\target\temp\webapp
[unjar] Expanding:
D:\workspaces\repository\postgresql\jars\postgresql-7.4.1
-jdbc3.jar into C:\tmp\mal\default\target\temp\webapp
[echo] Struts is included
BUILD FAILED
File...... D:\workspaces\cache\maven-keel-plugin-1.2.18\plugin.jelly
Element... copy
Line...... 751
Column.... 89
Warning: Could not find file
C:\tmp\mal\default\target\temp\lib\keel-client\conf
\client\snippets\web-1.xml to copy.
Total time: 40 seconds
Finished at: Fri Jun 24 08:25:29 COT 2005
Ups!!
I added the file:
default\conf\overwrite\keel-client\conf\client\snippets\web-1.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4"
>
I did maven war (again)
Eureka!! Build sussesful
bla...bla...bla...
war:war:
[echo] Building WAR default
[jar] Building jar: C:\tmp\mal\default\target\default.war
BUILD SUCCESSFUL
Total time: 43 seconds
Finished at: Fri Jun 24 08:34:55 COT 2005
But in tomcat (5.5.9)
error
24/06/2005 08:40:15 AM
org.apache.tomcat.util.digester.Digester fatalError
GRAVE: Parse Fatal Error at line 70 column 1: XML document
structures must start
and end within the same entity.
org.xml.sax.SAXParseException: XML document structures must
start and end within
the same entity.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:236)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(ErrorHandlerWrapper.java:215)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:386)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:316)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
MLScanner.java:1438)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
bla...bla..bla..
(GRAVE in Spanish it's translated like PANIC in unix language)
I added the end of the tagg </web-app> to the resulting web.xml file.
(if I not bad, this is a BUG)
I restarted tomcat:
Eureka!
In my firefox browser http://localhost:8080/default/
Application Suite
Welcome to our application suite.
Click here to begin'
But when I keyed in, I received an error in exchange for our awaited
good keel-banner.
This is the error:
mensaje
descripción El servidor encontró un error interno () que
hizo que no pudiera rellenar este requerimiento.
excepción
javax.servlet.ServletException: La ejecución del Servlet
lanzó una excepción
causa raíz
java.lang.NoClassDefFoundError:
org/keel/clients/webapp/WebappClientConnector
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
bla..bla..bla..
in this point I'm lost, because I dont know if the app default is out
of sync, or etc...
like novice, I cry out by aid of keel gurus.
saludos
Cesar.
On 6/24/05, Vidakovic Aleksandar <[email protected]> wrote:
> Warren,
>
> Did you execute "maven keel:maven" before "maven war"? I think this might be your problem.
>
> Aleks
>
> -----Ursprüngliche Nachricht-----
> Von: Warren Hedges [mailto:hedgeswj-1H237VC6GES6c6uEtOJ/[email protected]]
> Gesendet: Donnerstag, 23. Juni 2005 23:13
> An: keel developer's list
> Betreff: [Keelgroup] Build Problem
>
>
> Hi all
>
> After updating and rebuilding from public CVS I've suddenly encounted a
> problem when doing a "maven war" on the default project.
>
> I get the message "keel.project property is not true - keel specific
> goals skipped"
>
> Eventually in frustration, I deleted all jars (and POMs) from the keel
> directory in the maven repository and downloaded the latest plugin
> (1.2.18) and then did a "maven keel:install" -- "maven keel:maven" (from
> the default project dir) -- "maven war"
>
> All required jars seem to have been downloaded but I still get the same
> message doing the "maven war".
>
> Two questions -
> 1. Has anyone struck this before?
> 2. Is the public CVS up to date? (I ask this because
> tool-maven-plugin in cvs is version 1.2.17 but the keel site has version
> 1.2.18)
>
>
> I am using java jdk 1.5.03 under Linux.
>
> Any help greatly appreciated.
>
> Thanks
> Warren
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
>
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com