Re: [appfuse-user] accesing bean in service layer

2007-01-20 Thread jmowla
Mike, i got the problem during pasting the code ;) really, i have a job that i tried to activate that every 1 min by using quartz. during configuration of the quartz to run this job, i had to send the name of the class by value, like this: > class="org.springframework.scheduling.quartz.JobD

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: There we go 1.0-m3-SNAPSHOT works. Is m2 broken, or just broken for me? :) I was trying to hold off on M3 until it was released. FYI, i am running XP SP2; IE6 SP2; JDK 1.6.0; .NET 1.0; .NET 2.0 Intel P4 3.0ghz , 4 gigs ram The problem mig

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
There we go 1.0-m3-SNAPSHOT works. Is m2 broken, or just broken for me? :) I was trying to hold off on M3 until it was released. FYI, i am running XP SP2; IE6 SP2; JDK 1.6.0; .NET 1.0; .NET 2.0 Intel P4 3.0ghz , 4 gigs ram Let me know if you are interested in any of the other configuration

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
You could try using the 1.0-m3-SNAPSHOT version of the archetype - it already has this fix in it. What OS are you using? I can't seem to reproduce this on OS X or XP. Matt On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Ok, sorry for needed this explained, but what pom.xml file should this

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Ok, sorry for needed this explained, but what pom.xml file should this go in? I added it to web/pom.xml where the plugin was specified (as i could not find a dependancy reference anywhere), but it did not correct the problem. So if this dependancy was present before i cleaned out my local mvn Rep

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
Adding 0.2 to the Cargo Maven Plugin configuration should help. Also, Mike logged the following issue last week - this might help. http://issues.appfuse.org/browse/APF-580 Matt On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Ok, well if i go back and run install -N again everything else is

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Ok, well if i go back and run install -N again everything else is still the same. Does anyone have an idea why it can't find the carg-maven2-plugin snapshots now? Michael Horwitz wrote: > > On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: >> >> >> Alright, here is what i did, and the results.

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Michael Horwitz
On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Alright, here is what i did, and the results. 1) deleted everything from my ~/.m2/repository 2) ran the command exactly like you 3) Receive many "warnings" regarding archetype-resources/core/pom.xml 4) cd modular-struts 5) mvn install -N 6) "BU

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Alright, here is what i did, and the results. 1) deleted everything from my ~/.m2/repository 2) ran the command exactly like you 3) Receive many "warnings" regarding archetype-resources/core/pom.xml 4) cd modular-struts 5) mvn install -N 6) "BUILD SUCCESSFUL" 7) edit pom.xml > change MySQL Root

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Matt, Yes, I am using the modular archetype. I i did 'cd core' then 'mvn hibernate3:hbm2ddl' and it errored with the following: 'The dialect was not set. Set the property hibernate.dialect' In the /project/core/pom.xml there is not a hibernate.d

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Matt, Yes, I am using the modular archetype. I i did 'cd core' then 'mvn hibernate3:hbm2ddl' and it errored with the following: 'The dialect was not set. Set the property hibernate.dialect' In the /project/core/pom.xml there is not a hibernate.dialect but it is defined in /project/pom.xml file. I

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
If you used the basic-struts archetype to create your project, that's quite strange. Did you do this after we released 2.0-m2? If you're using the modular archetype, it should be in core/src/main/resources. You can also create the file manually - it's pretty simple: http://hibernate.sourceforge

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
The hibernate.cfg.xml in src/main/resources , is actually missing. Is there a way I can get mvn to generate this? Matt Raible-3 wrote: > > On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: >> >> Hrm... actually no, instead it errors saying "No hibernate.cfg.xml >> configuration provided. Annot

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Hrm... actually no, instead it errors saying "No hibernate.cfg.xml configuration provided. Annotated classes/packages is only configurable via hibernate.cfg.xml" There should be a hibernate.cfg.xml in src/main/resources. FYI, i manually ran

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Hrm... actually no, instead it errors saying "No hibernate.cfg.xml configuration provided. Annotated classes/packages is only configurable via hibernate.cfg.xml" FYI, i manually ran the SQL script to populate the tables, and ran "mvn jetty:run-war" then it started reporting that the jetty plugin

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread Matt Raible
If you run "mvn hibernate3:hbm2ddl", does it create the tables? Matt On 1/20/07, jarmstrong <[EMAIL PROTECTED]> wrote: Matt, It appears i am having a similiar issue and I think it has something to do with the version of MySQL I am running. (MySQL 5.0.21-community-nt) Apparently it is creating

Re: [appfuse-user] Problem creating Basic-struts2

2007-01-20 Thread jarmstrong
Matt, It appears i am having a similiar issue and I think it has something to do with the version of MySQL I am running. (MySQL 5.0.21-community-nt) Apparently it is creating the database schema , but is failing when trying to add any tables. Now I also noticed that this mySQL install also does

Re: [appfuse-user] accesing bean in service layer

2007-01-20 Thread Michael Horwitz
Perhaps if you post the code of your service bean class we could help? On 1/20/07, jmowla <[EMAIL PROTECTED]> wrote: Mike i do that way, but applicationContext is still null, i'm just confused. any more advice? thanks Michael Horwitz wrote: > > One approach would be to declare your service l

Re: [appfuse-user] accesing bean in service layer

2007-01-20 Thread jmowla
Mike i do that way, but applicationContext is still null, i'm just confused. any more advice? thanks Michael Horwitz wrote: > > One approach would be to declare your service layer been to be application > context aware: implements ApplicationContextAware. Spring will > automatically > pass in t

Re: [appfuse-user] accesing bean in servcie layer

2007-01-20 Thread Michael Horwitz
One approach would be to declare your service layer been to be application context aware: implements ApplicationContextAware. Spring will automatically pass in the application context to any bean that implements this interface. Mike On 1/20/07, jmowla <[EMAIL PROTECTED]> wrote: hi all i'm usi

Re: [appfuse-user] OT - Image Gallery

2007-01-20 Thread Larry Ger
Hi, Ive recently been working with images, but not displaying a gallery yet. My approach was to store the imags on the File system and reference them in the database. I wrote some code to manage the synch between database and file system. The most frustrating part was the ability to manage mul

Re: [appfuse-user] Warnings with StringUtuil Base64...

2007-01-20 Thread André Faria
The issue link is http://issues.appfuse.org/browse/APF-583 Thank's Matt... Sorry, I posted in i18n insted Security, and I didnt know how to change... André Faria Matt Raible escreveu: You could use Base64 from Commons Codec instead. http://jakarta.apache.org/commons/codec/apidocs/org/apache

[appfuse-user] accesing bean in servcie layer

2007-01-20 Thread jmowla
hi all i'm using appfuse 1.9.4 (springmvc+spirng+hibernate) and want to get a bean programatically by using 'getBean()' method in simple java class in service layer. how can i get a valid ApplicationContext class? or how can i do that ( except wiring ) thanks in advanced -- View this message in c