[appfuse-user] Suppress WARNINGs and Exceptions during the maven build (Spring MVC modular version 2)

2007-09-26 Thread dev dev
Why are we seeing these warnings and exceptions? and if these are OK warnings and exceptions, how do we suppress them? [WARNING] bad version number found in C:\Users\dev\.m2\repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jarexpected 1.5.2a found 1.5.3 WARN - JDBCExceptionReporter.logWarning

Re: [appfuse-user] why must be online to run the appfuse-light

2007-09-26 Thread qiuguang
thanks a lot , I will try it later! Peter Schneider-Manzell wrote: > > The app server tries to validate the validation.xml with a DTD defined in > the given xml. > If the server cannot download this DTD, the webapp will not start up. > > Remove the DTD entry, and you should be able to startup y

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread Matt Raible
Do you have something like the following at the top of your page? @Shell is needed for Tapestry to include the references to dojo. If you look at demo.appfuse.org/appfuse-tapestry and login, the mainMenu seems to have all the required JavaScript files. Matt On 9/26/07, cpnguyen <[EMAIL PROTECT

Re: [appfuse-user] generated dependencies in POM

2007-09-26 Thread Matt Raible
If you look at the top of the file, you should see the parent element. ${pom} refers to the current file. Matt On 9/26/07, dev dev <[EMAIL PROTECTED]> wrote: > I'm using Spring MVC modular version 2.0. Afte running mvn > appfuse:full-source, core and web directories got created. then cd to web >

[appfuse-user] generated dependencies in POM

2007-09-26 Thread dev dev
I'm using Spring MVC modular version 2.0. Afte running mvn appfuse:full-source, core and web directories got created. then cd to web directory and view the pom.xml, the core dependency is definded as follows: ${pom.parent.groupId} ${pom.parent.artifactId}-core

Re: [appfuse-user] long lost developer

2007-09-26 Thread Matt Raible
On 9/25/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: > Okay looks like @ManyToOne is the way to go for my scenario. I ran "mvn > appfuse:gen" after modifying my POJO which seemed to help. Now when I run > "mvn jetty:run-war" I don't get the surefire failures any more. But when I > try to ad

Re: [appfuse-user] How to deal with potential stale connections in pool?

2007-09-26 Thread Richard Paul
The CannotCreateTransactionException are continuing even on MySQL server 5.0.45. I'll try manually adding 'autoReconnect=true' to my connection string as you suggested. I am using mysql-connector-java 5.0.5 as you can see below, I'll let you know how I get on. mysql mysql-connector-java 5.0.5 c

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread cpnguyen
Firebug reports "dojo is not defined" at "dojo.addOnLoad( function (e)" when attempting to load the form. Clicking on the calendar icon throws a "calendar_name has no properties" error. In Firebug, under the script tab, dojo.js does not appear. Here is a list of the loaded scripts: from projec

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread Matt Raible
Have you tried using Firebug to verify that you're getting a 404 for dojo.js? On 9/26/07, cpnguyen <[EMAIL PROTECTED]> wrote: > > I am using a brand-new 2.0 project. I pulled the latest appfuse version via > maven and started recopying all of my personal files over and performing > diffs on commo

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread cpnguyen
I am using a brand-new 2.0 project. I pulled the latest appfuse version via maven and started recopying all of my personal files over and performing diffs on common files. Not the best method, but I have been able to get things to work. What is broken now is the DatePicker. mraible wrote: >

Re: [appfuse-user] Cobertura reporting 0% coverage

2007-09-26 Thread Richard Brewster
The following solved my problem of getting zero test coverage (using v2.0 of cobertura-maven-plugin). Added to the build section of pom: org.codehaus.mojo cobertura-maven-plugin 2.0

Re: [appfuse-user] Ubuntu fan despairs of ugly Eclipse on widescreen laptop

2007-09-26 Thread Nathan Anderson
Interesting problem. My laptop is 1400x1050 and I haven't noticed any significant issues with Eclipse on Ubuntu as opposed to Windows [I previously had Windows and Eclipse installed on the same laptop]. Maybe you could post a link to a screen shot and we could compare? Nathan - Origina

Re: [appfuse-user] IBM DB2

2007-09-26 Thread Nathan Anderson
This DB2 driver does not need a second "license" jar file, so it may fit the need nicely. We have used it for JDBC access within an AppFuse project, but never with Hibernate so I'm not sure if there is any tricks to it's use in that context. http://jt400.sourceforge.net/ Nathan - Origin

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread Matt Raible
The dojo.js is served up by Tapestry, not by AppFuse. Are you using a brand-new 2.0 project or are you upgrading? Matt On 9/26/07, cpnguyen <[EMAIL PROTECTED]> wrote: > > Thanks for the response Matt. > > I've added that line into tapestry.application but it doesn't appear to help > (with the Dat

Re: [appfuse-user] Appfuse 2.0: Tapestry 4.1, Dojo, DatePicker DropdownDatePicker

2007-09-26 Thread cpnguyen
Thanks for the response Matt. I've added that line into tapestry.application but it doesn't appear to help (with the DatePicker issue - I have not tried using tacos components yet). I think the issue is dojo.js (or the script file where dojo variable is defined) is missing. The target/project/s

Re: [appfuse-user] Ubuntu fan despairs of ugly Eclipse on widescreen laptop

2007-09-26 Thread Matt Raible
I didn't write this page - Nathan Anderson did. Nathan - any advice? Matt On 9/26/07, alanP <[EMAIL PROTECTED]> wrote: > > Matt: > In your Maven for Newbies page you say: > ... At home I'm doing a different project on my Ubuntu laptop with Sun Java > 1.6 and Eclipse 3.2 ... > > Me too, at home ha

[appfuse-user] Ubuntu fan despairs of ugly Eclipse on widescreen laptop

2007-09-26 Thread alanP
Matt: In your Maven for Newbies page you say: ... At home I'm doing a different project on my Ubuntu laptop with Sun Java 1.6 and Eclipse 3.2 ... Me too, at home have Ubuntu and Eclipse 3.2 on laptop, but I'm reluctant to use it, because Eclipse is so wasteful of screen space, especially in verti

Re: [appfuse-user] IBM DB2

2007-09-26 Thread Matt Raible
You should be able to. I've tried to use the Derby Driver with DB2, but it didn't work. The main issue we've had in adding DB2 support is the fact that it requires multiple JARs for its JDBC Driver. If you can find a single JAR/artifact we can use, we'd be happy to add support. In the meantime, the

Re: [appfuse-user] why must be online to run the appfuse-light

2007-09-26 Thread Peter Schneider-Manzell
The app server tries to validate the validation.xml with a DTD defined in the given xml. If the server cannot download this DTD, the webapp will not start up. Remove the DTD entry, and you should be able to startup your server even if you are offline. (Maybe you should check the other validation r

Re: [appfuse-user] Exception starting filter securityFilter

2007-09-26 Thread Matt Raible
Sanjiv - do you think using init=lazy is a good default setting? I haven't seen this issue before, but I don't use WebLogic much these days. If adding lazy doesn't cause any issues with other containers, I don't see the harm in adding it. Matt On 9/26/07, salem_l <[EMAIL PROTECTED]> wrote: > > Th

Re: [appfuse-user] why must be online to run the appfuse-light

2007-09-26 Thread Matt Raible
Sounds like a bug in Commons Validator. If you remove the DTD from the top of the XML files used for validation, this message should go away. I've found a lot of similar issues with Java Web Frameworks. Can you enter an issue for this in JIRA so we can track getting it fixed? http://issues.appfus

Re: [appfuse-user] hbm2ddl and dbunit on mvn run:jetty

2007-09-26 Thread Peter Schneider-Manzell
Normally, dbunit is triggered by the maven target "test-compile" in AppFuse Try "mvn jetty:run -Dmaven.test.skip=true" to skip this target and the connected db-load Bye, Peter 2007/9/26, p7k <[EMAIL PROTECTED]>: > > > it was difficult to find a definitive answer through other posts... > > how c

Re: [appfuse-user] Build error for Spring-MVN QuickStart projects

2007-09-26 Thread Matt Raible
On 9/26/07, James Perry <[EMAIL PROTECTED]> wrote: > I have tried to build a quickstart project for both single and modular > spring-mvc project but there is a build error. Here is the stack trace: > > [INFO] -- > -- > [ERROR] BU

Re: [appfuse-user] Accessing another appfuse project

2007-09-26 Thread Peter Schneider-Manzell
Simply add a dependency to your maven descriptor (pom.xml). e.g. pom.xml of project1: . groupIdOfProject2 artifactIdOfProject2 versionOfProject2 . Make sure that you have installed project2 before compiling project1 Bye, Peter 2007/9/26, Ömer Başar <[EMAIL PROTE

Re: [appfuse-user] Acegi

2007-09-26 Thread Peter Schneider-Manzell
This is already integrated in appfuse. Simply itnegrate the link to the password protected page, and if a user clicks on this link, appfuse / spring / acegi will make sure that the user logs in first. If you use the struts-menu, simply remove the ...roles="" part from the menu entry (file menu

Re: [appfuse-user] Testing File Upload

2007-09-26 Thread Peter Schneider-Manzell
Here's a test I use to verify a csv upload: public void testCSVUpload() { log.debug("testing csv upload..."); MockHttpServletRequest request = new MockHttpServletRequest("POST","/importData.html"); List fileItems = new ArrayList(); //Create the test upload (Type, content-type, filename, content o

[appfuse-user] Build error for Spring-MVN QuickStart projects

2007-09-26 Thread James Perry
I have tried to build a quickstart project for both single and modular spring-mvc project but there is a build error. Here is the stack trace: [INFO] [ERROR] BUILD ERROR [INFO] ---

Re: [appfuse-user] JBoss Seam

2007-09-26 Thread kkus
Due to use of JSF Expression Language(EL) Seam saves a lot of xml configuration(or annotation?). Compared to Spring you are unware of data binding, entity bean construction etc in Seam. All these are handled by EL. Meanwhile Seam-Gen has provided a java version of Ruby on Rails. Good for rapid pro

[appfuse-user] Accessing another appfuse project

2007-09-26 Thread Ömer Başar
Hi, I have two separate appfuse-struts2-modular projects named project1, and project2. In Project1-web module I need to access the project2 data. What are the minimal steps that I should follow to achieve this? Thanks in advance. -- View this message in context: http://www.nabble.com/Accessin

Re: [appfuse-user] Logging Entity Activity Approach

2007-09-26 Thread Tuncay A.
A solution is to make a generic logging function that intercept the create/delete/update operations on a DAO e.g. using Spring aspect : http://www.springframework.org/docs/reference/aop-api.html // tua Struts2 Fan wrote: > > Hi all, > > I want to add a logging entity activities mechanizm to a

[appfuse-user] Example code-sample for one-to-many-pojo jsp pages.

2007-09-26 Thread Irshad Buchh
Hi, We would like to have some code-samples jsp pages to illustrate one-to-many related objects based on AppFuse using struts, jsf or spring mvc frameworks. --Irshad. -- View this message in context: http://www.nabble.com/Example-code-sample-for-one-to-many-pojo-jsp-pages.-tf4522045s2369.html#a

Re: [appfuse-user] appfuse and eclipse

2007-09-26 Thread John Kwon
Send me an email directly, and I can help you out. Most of the material is already online, and AppFuse does require you know something about how Maven works, and how your chosen set of frameworks work, but that's about it. Yeah, and I can miss the obvious things on the AppFuse website related to

[appfuse-user] IBM DB2

2007-09-26 Thread meisam4910
does Appfuse work with IBM DB2 ? in its database list i could not found the DB2 name :(( is there any way to use DB2 with appfuse ? -- View this message in context: http://www.nabble.com/IBM-DB2-tf4521471s2369.html#a12898330 Sent from the AppFuse - User mailing list archive at Nabble.com. -

[appfuse-user] Acegi

2007-09-26 Thread mikebgx
My webapp will have some open pages and some private pages that need a password/login. For the private pages I'd like their menu options (and links to them from other pages) to be visible, but when the user clicks on them I'd like to divert them to the login page first. I've tried various appro

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-26 Thread syg6
I spoke too soon. Well, only about one thing. Giving a Controller the name MyObjectFormController does NOT mean that Spring will automatically know that the Command / Model object you want to use with that Controller is called MyObject. You have to tell it, manually. What was driving me nuts wa

[appfuse-user] appfuse and eclipse

2007-09-26 Thread meisam4910
guys, its been 2 days I have been searching and reading tutorials of appfuse but still confused of how to create a project in eclipse, i have downloaded and integrated the maven and candy to eclipse but I dun know if i have done the all steps right or not ? :( would you please help me to start my

[appfuse-user] hbm2ddl and dbunit on mvn run:jetty

2007-09-26 Thread p7k
it was difficult to find a definitive answer through other posts... how can i avoid having my database reset (cleaned and sample-data inserted) when i run jetty:run ? i am on 2.0-Final with hibernate / jsf / full-source thanks in advance ! -- View this message in context: http://www.nabble.co

Re: [appfuse-user] Exception starting filter securityFilter

2007-09-26 Thread salem_l
Thanks for the advise to add a lazy parameter on security filter, I have searching for a solution during many days, but now it works very well!! :jumping: Sanjiv Jivan wrote: > > Try adding the init param "lazy" to the securityFilter and maybe you'll > see > a better error message. You normall

Re: [appfuse-user] Exception starting filter securityFilter

2007-09-26 Thread salem_l
Thanks for the advise to add a lazy parameter on security filter, I have searching for a solution during many days, but now it works very well!! :jumping: Minhas, Manpreet wrote: > > Every time I start my tomcat server I get the following exception. I > have no idea why I am getting this exce

[appfuse-user] Logging Entity Activity Approach

2007-09-26 Thread Struts2 Fan
Hi all, I want to add a logging entity activities mechanizm to an application. Let's think about a bean and its log table. class Person{ Long id; String name; Date birthDate; } class Person_Log{ Long id; Long personId; String name; String birthDate; Integer activityType;

[appfuse-user] why must be online to run the appfuse-light

2007-09-26 Thread qiuguang
i have deploy the appfuse-light-struts-hibernate-1.8 to c:\tomcat-5.5\webapps;when i start the tomcat i describle the ERROR-ValidatorPlugIn.init<172>|jakata.apache.org java.net.UnknoenHostException:jakarta.apache.org ect but when i connect to internet everything will be Ok; please tell me why?!