Posted on July 17, 2008, 10:04, by stefan, under
coding.
When trying to deploy an AppFuse application on Tomcat I received the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 153 in the generated java file
Type mismatch: cannot convert from null to int
An error occurred at line: 168 in the generated java file
Cannot cast from Object to int
The source of the [...]
Posted on July 9, 2008, 10:50, by stefan, under
coding.
I had some problems getting date fields to work (and return a friendly error message) so here comes a little documentation for future reference. This was in an AppFuse based Spring Framework project.
The model contains a java.util.Date property and simply exposing it as usual in a form will cause an exception since Spring doesn’t know [...]
Posted on June 19, 2008, 23:02, by stefan, under
coding.
Some more tips about getting an AppFuse generated application into NetBeans.
Pick archetype of choice, e.g.: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
Run mvn
Generate full sources: mvn appfuse:full-source
Install the Maven plugin in NetBeans (Tools / Plugins / Search for Maven).
Open the project (located the pom.xml file)
Right-click the project name and select Properties
In categories, select Run. [...]
Posted on June 17, 2008, 14:03, by stefan, under
coding.
Sometime it may be useful to manually run the (Canoo) web tests for AppFuse applications to be able to see what goes wrong. Accomplish this by making the test web container pause upon start using:
mvn -Dcargo.wait
Then the application (using default values) is reachable at:
http://localhost:8081/<app_name>/
Where <app_name> might be something like appname-1.0-SNAPSHOT depending on your configuration.
If a [...]
Posted on June 16, 2008, 16:53, by stefan, under
coding.
Once mapped in hibernate.cfg.xml run:
mvn test-compile hibernate3:hbm2ddl