Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-05-04 Thread tibi
it seems that mvn is not using the java opts. after: mvn clean jetty:run when i look with ps auxwf i get this: tibi 16477 20.4 15.1 288240 155488 pts/1 Sl 10:30 0:18 | \_ /etc/java-config-2/current-system-vm/bin/java -classpath /home/tibi/progs/maven-2.0.4/core/boot/classworlds

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-05-04 Thread Matt Raible
You might try setting your MAVEN_OPTS environment variable. Matt On 5/4/07, tibi <[EMAIL PROTECTED]> wrote: it seems that mvn is not using the java opts. after: mvn clean jetty:run when i look with ps auxwf i get this: tibi 16477 20.4 15.1 288240 155488 pts/1 Sl 10:30 0:18 | \_

[appfuse-user] using hibernate example

2007-05-04 Thread tibi
i have two question about http://appfuse.org/display/APF/Using+Hibernate one is in application context is should enter this: but the constructor is: public PersonDaoHibernate() { super(Person.class); } so i gues the contructor argument is not ne

Re: [appfuse-user] mvn jetty:run => OutOfMemoryError: PermGen space

2007-05-04 Thread tibi
you are fast and correct... thanks tibi Matt Raible wrote: You might try setting your MAVEN_OPTS environment variable. Matt On 5/4/07, tibi <[EMAIL PROTECTED]> wrote: it seems that mvn is not using the java opts. after: mvn clean jetty:run when i look with ps auxwf i get this: tibi 1647

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
mmm ganging names to end with manager is not working. in my dao i have @Transactional(readOnly = false) but that is not working either. help needed... thanks tibi tibi wrote: i have two question about http://appfuse.org/display/APF/Using+Hibernate one is in application context is should ent

Re: [appfuse-user] using hibernate example

2007-05-04 Thread Michael Horwitz
On 5/4/07, tibi <[EMAIL PROTECTED]> wrote: i have two question about http://appfuse.org/display/APF/Using+Hibernate one is in application context is should enter this: but the constructor is: public PersonDaoHibernate() { super(Person.class); } The tutori

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
not require a constructor argument. The correct configuration snippet for such a case is included at the end of the tutorial. ok missed that sory It all depends on how you access your DAO from your web pages. Normally you only access your DAO through a manager class, which is where the trans

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
in my daoHibernate class and interface i put: @Transactional(readOnly=false) but still the same error... tibi tibi wrote: not require a constructor argument. The correct configuration snippet for such a case is included at the end of the tutorial. ok missed that sory It all depends on how y

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
ok i will need to make a manager like this http://appfuse.org/display/APF/Services and simply expose all my methods from my doa to the manager ?! tibi tibi wrote: in my daoHibernate class and interface i put: @Transactional(readOnly=false) but still the same error... tibi tibi wrote: not

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
ok i made my EventSpanManager which exposes all the dao methods. in my action i now have GenericManager eventSpanManager; still get the same error... tibi tibi wrote: ok i will need to make a manager like this http://appfuse.org/display/APF/Services and simply expose all my methods from m

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
ok i still have this error. i'm i bit lost where to look. this is my situation. when i use the generalmanager all was fine now i want to make my own dao so i made a dao interface and implemented it. i made a manager interface and implemented it and i change my applicationcontext like this:

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
the strange thing is that i get the error message. but the data gets inserted into the db tibi tibi wrote: ok i still have this error. i'm i bit lost where to look. this is my situation. when i use the generalmanager all was fine now i want to make my own dao so i made a dao interface and

Re: [appfuse-user] using hibernate example

2007-05-04 Thread Michael Horwitz
Could provide a stack trace so we can try and help you? Mike. On 5/4/07, tibi <[EMAIL PROTECTED]> wrote: the strange thing is that i get the error message. but the data gets inserted into the db tibi tibi wrote: > ok i still have this error. i'm i bit lost where to look. > this is my sit

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
offcourse: cdoe-- log.debug("start saving id:" + eventSpan.getId()); try { eventSpanManager.save(eventSpan); } catch (Exception e) { log.debug("error:", e); } ---log- [topnet] DEB

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
check: package nl.topticketline.topnet.service; import java.util.List; import nl.topticketline.topnet.dao.EventSpanDao; import nl.topticketline.topnet.model.EventSpan; import org.appfuse.service.impl.GenericManagerImpl; public class EventSpanManagerImpl extends GenericManagerImplLong> impleme

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
basic archetype i have run mvn install (but long time ago) en always use clean tibi Michael Horwitz wrote: O.K. Next check: Are you using a modular or a basic archetype? If modular have you run mvn install at the top level? Have you tried running mvn clean to clean everything down? Mike On

[appfuse-user] Data Access Failure

2007-05-04 Thread Sutapa Dutta
Hi, I get the following error dont know what is happening? Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. My code is PersonManagerImpl public class PersonManagerI

[appfuse-user] Data Access Failure

2007-05-04 Thread Sutapa Dutta
Hi, I get the following error dont know what is happening? Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. My code is PersonManagerImpl public class PersonManagerI

Re: [appfuse-user] Data Access Failure

2007-05-04 Thread tibi
hee check out my discussion have the same problem: title: using hibernate example tibi Sutapa Dutta wrote: Hi, I get the following error dont know what is happening? Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or rem

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
maybe off road... when i run in debug and follow the flow i end up here: ==> there is the invocationTargetEcveption thrown... AopUtils public static Object invokeJoinpointUsingReflection(Object target, Method method, Object[] args) throws Throwable { // Use reflection to inv

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread Thomas Ramapuram
Matt, For your projects what do you do? I have used all three. Just wanted to know which path will be the least painful to maintain in the future. Regards, Thomas Matt Raible wrote: Here's an issue for the datepicker - feel free to re-open it or add to it if there's things we can improve. htt

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread Thomas Ramapuram
Hi David, The url http://localhost:8080/struts/dojo/dojo.js seems to be invalid. All the others seem to be ok. eg. http://localhost:8080/struts/CommonFunctions.js http://localhost:8080/struts/ajax/dojoRequire.js http://localhost:8080/struts/simple/dojoRequire.js Picked this up from firebug.:

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread Thomas Ramapuram
After removing the staicFilter altogether I seem to be getting dojo.js but now there are a whole lot of dependecies failing eg. http://localhost:8080/struts/dojostruts/widget/Bind.js http://localhost:8080/struts/dojostruts/__package__.js looks like the baseRelativePath: "/struts/dojo", shoul

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
i will check in the mean time: i'm looking at this: protected void checkWriteOperationAllowed(Session session) throws InvalidDataAccessApiUsageException { if (isCheckWriteOperations() && getFlushMode() != FLUSH_EAGER && session.getFlushMode().lessThan(FlushMode.COMMIT))

Re: [appfuse-user] using hibernate example

2007-05-04 Thread tibi
contextConfigLocation classpath*:/applicationContext-resources.xml classpath*:/applicationContext-dao.xml classpath*:/applicationContext-service.xml classpath*:/applicationContext.xml /WEB-INF/applicationContext*.xml

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread J. David Mendoza
My guess is that sitemesh is you have a problem with sitemesh... Just add the action url that shows this page to the decorators.xml to make sure /testAction.aspx /struts/dojo/* /resources/* Thomas Ramapuram wrote: After removing the staicFilter altogether I seem to

[appfuse-user] problem with downloading a pdf within appfuse

2007-05-04 Thread Haotian Sun
Hello girls/guys, I followed this post(http://wiki.apache.org/struts/StrutsFileDownload) to implement a download action within my application based on Appfuse 1.9.4 with Struts favor. The download action works fine and I can download a pdf file to my disk but the pdf is broken by adding the h

[appfuse-user] downloading a pdf within appfuse

2007-05-04 Thread Haotian Sun
Hello girls/guys, I followed this post(http://wiki.apache.org/struts/StrutsFileDownload) to implement a download action within my application based on Appfuse 1.9.4 with Struts favor. The download action works fine and I can download a pdf file to my disk but the pdf is broken by adding the h

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread Thomas Ramapuram
What I guessed is right it is a problem with struts /template/simple/head.ftl Just override it create head.ftl in webapp/template/simple and paste the text below. Works just fine. Only thing. The css does not render the calendar too well. // Dojo configuration djConfig = {

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread Thomas Ramapuram
Actually you do not need to change your extensions or remove static filters. Just change static filters from /scripts/dojo/* to /struts/dojo/* Add /struts/dojo/* to decorators.xml add a file called head.ftl in src/main/webapps/template/simple with the contents given below ===

Re: [appfuse-user] Recomended Pratice (Struts2 Dojo)

2007-05-04 Thread J. David Mendoza
Michael Horwitz posted a solution a while back (here it is): Michael Horwitz wrote: > I inlcuded this in a separate css style file to overide the typo.css > styling (no need to comment out anything in typo.css): > > /** > * Overide the settings from typo.css to make sure the Dojo calendar > drop

Re: [appfuse-user] mod_jk and j_security_check

2007-05-04 Thread rfisk
OK. I finally got this to work, thanks to your help. But it sure was a pain in the arse. The little startup I'm involved in is working on several appfuse based projects and the purpose here is to lower deployment/hosting costs. Installing a new instance of tomcat on a new host every time we want

Re: [appfuse-user] downloading a pdf within appfuse

2007-05-04 Thread Haotian Sun
Firstly, sorry for the duplicate post. Well, I solved the problem by playing with sitemesh for a couple of hours. And finally find out that I need to exclude the action path from the decorators.xml. Sitemesh is good but obvious I need to watch out it in the future :) Best wishes, Haotian Su

Re: [appfuse-user] downloading a pdf within appfuse

2007-05-04 Thread Matt Raible
Thanks for posting the solution back to this list! Matt On 5/4/07, Haotian Sun <[EMAIL PROTECTED]> wrote: Firstly, sorry for the duplicate post. Well, I solved the problem by playing with sitemesh for a couple of hours. And finally find out that I need to exclude the action path from the decor

Re: [appfuse-user] problem with downloading a pdf within appfuse

2007-05-04 Thread Nathan Anderson
SiteMesh is the filter you are looking for. There is a sitemesh.xml file that configures which URI's to decorate or which to exclude from decoration. Nathan - Original Message - From: "Haotian Sun" <[EMAIL PROTECTED]> To: "appfuse-user" Sent: Friday, May 4, 2007 7:52:53 AM (GMT-0800

Re: [appfuse-user] Data Access Failure

2007-05-04 Thread tibi
did you find a solution?? tibi tibi wrote: hee check out my discussion have the same problem: title: using hibernate example tibi Sutapa Dutta wrote: Hi, I get the following error dont know what is happening? Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Tur

Re: [appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-04 Thread Pramod Mahadev
Changed my pom.xml to use the plugin suggested. However, still did not work. Interestingly enough, when I turn on the debug option, I see the following message Configuring mojo 'org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile' --> [DEBUG] (s) argumentFileName = builddef.lst [DEBUG]