Re: Jumpstart 6.10 Installation
Hi Adam, Trust me, the thing you think is missing isn’t needed. Eclipse builds the project on-the-fly and the collapser copies the classes to collapsed/ on-the-fly. The “artefact” in this case is an “collapsed EAR”, which is the collapsed/ directory. See http://openejb.apache.org/collapsed-ear.html . When you run RunJetty it uses Jetty as the server and OpenEJB becomes the JEE provider because it’s on the classpath. OpenEJB is running “embedded” in Jetty. This makes for a great, responsive development environment. Later, when you want to run JumpStart outside Eclipse, in a separate app server or a web server with an embedded app server, see http://jumpstart.doublenegative.com.au/jumpstart6.10/tips.html#OTHER_SERVERS . HTH, Geoff > On 27 Oct 2015, at 12:57 am, Adam X wrote: > > Hi Geoff, > > It seems to me that the documentation on running jumpstart locally > completely misses entire section on setting up and deploying JEE server > such and OpenEJB. All it talks about is downloading OpenEJB but there is > nothing about which build to invoke to build which artifact, and where and > how to deploy it. > > I admit I'm struggling a bit with this non-standard project setup (missing > Maven) but I think I'm getting close :) > > I'm on Linux Mint and yes, using Eclipse (Mars). > > Adam > > On Sun, Oct 25, 2015 at 6:59 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >> I’m guessing that you had a hiccup, perhaps permissions problems, along >> the way. Try this: >> >> - Delete directory [openejb]/data/hsqldb. >> - Go back to the step "Start JumpStart”. This step recreates the database >> because of the system property -Dhibernate.hbm2ddl.auto=update . >> - Do the next steps. >> >> I’ll add this info to the instructions. >> >> Geoff >> >>> On 25 Oct 2015, at 10:42 am, Geoff Callender < >> geoff.callender.jumpst...@gmail.com> wrote: >>> >>> Hi Adam, >>> >>> The second issue is because PersonFinderServiceLocal has not been built. >> You’ll find the cause of that early in the log, which will probably be a >> database mapping problem, most likely an inability to map the Person entity >> to the PERSON table. So its cause is probably the same as the first issue. >>> >>> As for the first issue, I’ll get back to you on that after I have >> recreated your situation. What operating system are you on? Linux? Are you >> using Eclipse? >>> >>> Geoff >>> On 25 Oct 2015, at 1:00 am, Adam X wrote: Hello, I am trying to get jumpstart running locally. I got it to the point it builds and boots without errors, but I have two issues I don't seem to >> be able to resolve:\ * First * Populating openejb HSQL database. Executing data_util > repopulate_database_prompted results in the following error: Buildfile: /home/mrazjava/workspace/jumpstart/data_util.xml check-properties: interpret-database-type: gracefully-check-database-available: gracefully-check-database-available-if-hsqldb-files: gracefully-check-database-available-if-hsqldb-server: repopulate-database-prompted: repopulate-database: [copy] Copying 1 file to /home/mrazjava/workspace/jumpstart interpret-database-type: gracefully-check-database-available: gracefully-check-database-available-if-hsqldb-files: gracefully-check-database-available-if-hsqldb-server: run-prepared-script: [java] SEVERE SQL Error at '/home/mrazjava/workspace/jumpstart/null886400076sql' line 7: [java] "delete from Person" [java] user lacks privilege or object not found: PERSON [java] org.hsqldb.cmdline.SqlTool$SqlToolException BUILD FAILED /home/mrazjava/workspace/jumpstart/data_util.xml:47: The following error occurred while executing this line: /home/mrazjava/workspace/jumpstart/data_util.xml:58: The following error occurred while executing this line: /home/mrazjava/workspace/jumpstart/data_util.xml:62: Java returned: 3 Total time: 4 seconds Note that the build does see my openejb data directory (/opt/openejb/apache-openejb-4.5.1/data/hsqldb) because it did create >> these files: hsqldb.log hsqldb.properties hsqldb.script * Second * When I navigate to localhost:8080/jumpstart I either expected success >> or a db related error such as database not found, but instead I'm getting >> jndi lookup error. There is nothing in the installation manual that covers >> how to setup JNDI in openejb, so I'm lost here as well. Caused by: >> jumpstart.business.commons.exception.SystemUnavailableException: The system is temporarily unavailable. Symptom: JNDI lookup failed for "PersonFinderServiceLocal". Is ejb server not started? Has the ejb.provider property been specified correctly at >> jumpstart.business.commons.jndi.JNDIObjectLocator.lookup(
Re: Passing parent layout's object to nested page
For now I am using this strategy: @InjectComponent private LayoutM myLayoutComponent; and it works well. Tomorrow I will be probably redesigning the app a little bit, so I will give you my feedback about the Environment in the next few days. 2015-10-23 18:23 GMT+02:00 Thiago H de Paula Figueiredo : > On Fri, 23 Oct 2015 12:28:09 -0200, g kuczera wrote: > > For now I tried the last approach, (InjectContainer), but it throws >> Caused by: java.lang.NullPointerException >> at >> >> org.apache.tapestry5.internal.transform.InjectContainerWorker$1$1.get(InjectContainerWorker.java:80) >> It looks like it's not the proper way in my case. Trying other ways. >> PS: Just wandering, if the container worker gets null, then it probably >> means, that there is no container at all (for my current page, in which I >> put the annotation). >> > > You got it right. :) This will only work on components, not in pages, > because pages don't have a container (parent). It would work from the > Layout component to access the page on which it's used, for example. > > Have you tried the Environment? > > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Jumpstart 6.10 Installation
Hi Geoff, It seems to me that the documentation on running jumpstart locally completely misses entire section on setting up and deploying JEE server such and OpenEJB. All it talks about is downloading OpenEJB but there is nothing about which build to invoke to build which artifact, and where and how to deploy it. I admit I'm struggling a bit with this non-standard project setup (missing Maven) but I think I'm getting close :) I'm on Linux Mint and yes, using Eclipse (Mars). Adam On Sun, Oct 25, 2015 at 6:59 AM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > I’m guessing that you had a hiccup, perhaps permissions problems, along > the way. Try this: > > - Delete directory [openejb]/data/hsqldb. > - Go back to the step "Start JumpStart”. This step recreates the database > because of the system property -Dhibernate.hbm2ddl.auto=update . > - Do the next steps. > > I’ll add this info to the instructions. > > Geoff > > > On 25 Oct 2015, at 10:42 am, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > > > > Hi Adam, > > > > The second issue is because PersonFinderServiceLocal has not been built. > You’ll find the cause of that early in the log, which will probably be a > database mapping problem, most likely an inability to map the Person entity > to the PERSON table. So its cause is probably the same as the first issue. > > > > As for the first issue, I’ll get back to you on that after I have > recreated your situation. What operating system are you on? Linux? Are you > using Eclipse? > > > > Geoff > > > >> On 25 Oct 2015, at 1:00 am, Adam X wrote: > >> > >> Hello, > >> > >> I am trying to get jumpstart running locally. I got it to the point it > >> builds and boots without errors, but I have two issues I don't seem to > be > >> able to resolve:\ > >> > >> * First * > >> > >> Populating openejb HSQL database. Executing data_util > > >> repopulate_database_prompted results in the following error: > >> > >> Buildfile: /home/mrazjava/workspace/jumpstart/data_util.xml > >> check-properties: > >> interpret-database-type: > >> gracefully-check-database-available: > >> gracefully-check-database-available-if-hsqldb-files: > >> gracefully-check-database-available-if-hsqldb-server: > >> repopulate-database-prompted: > >> repopulate-database: > >>[copy] Copying 1 file to /home/mrazjava/workspace/jumpstart > >> interpret-database-type: > >> gracefully-check-database-available: > >> gracefully-check-database-available-if-hsqldb-files: > >> gracefully-check-database-available-if-hsqldb-server: > >> run-prepared-script: > >>[java] SEVERE SQL Error at > >> '/home/mrazjava/workspace/jumpstart/null886400076sql' line 7: > >>[java] "delete from Person" > >>[java] user lacks privilege or object not found: PERSON > >>[java] org.hsqldb.cmdline.SqlTool$SqlToolException > >> > >> BUILD FAILED > >> /home/mrazjava/workspace/jumpstart/data_util.xml:47: The following error > >> occurred while executing this line: > >> /home/mrazjava/workspace/jumpstart/data_util.xml:58: The following error > >> occurred while executing this line: > >> /home/mrazjava/workspace/jumpstart/data_util.xml:62: Java returned: 3 > >> > >> Total time: 4 seconds > >> > >> Note that the build does see my openejb data directory > >> (/opt/openejb/apache-openejb-4.5.1/data/hsqldb) because it did create > these > >> files: > >> hsqldb.log > >> hsqldb.properties > >> hsqldb.script > >> > >> * Second * > >> > >> When I navigate to localhost:8080/jumpstart I either expected success > or a > >> db related error such as database not found, but instead I'm getting > jndi > >> lookup error. There is nothing in the installation manual that covers > how > >> to setup JNDI in openejb, so I'm lost here as well. > >> > >> Caused by: > jumpstart.business.commons.exception.SystemUnavailableException: > >> The system is temporarily unavailable. Symptom: JNDI lookup failed for > >> "PersonFinderServiceLocal". Is ejb server not started? Has the > >> ejb.provider property been specified correctly > >> at > >> > jumpstart.business.commons.jndi.JNDIObjectLocator.lookup(JNDIObjectLocator.java:64) > >> at > >> > jumpstart.business.commons.jndi.JNDIObjectLocator.getJNDIObject(JNDIObjectLocator.java:43) > >> at > >> > jumpstart.client.BusinessServicesLocator.getService(BusinessServicesLocator.java:79) > >> at > >> > jumpstart.web.services.EJBAnnotationWorker.transform(EJBAnnotationWorker.java:53) > >> at $ComponentClassTransformWorker2_dc3341da4a2.transform(Unknown > Source) > >> at $ComponentClassTransformWorker2_dc3341da4ad.transform(Unknown > Source) > >> at $ComponentClassTransformWorker2_dc3341da4a0.transform(Unknown > Source) > >> at > >> > org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$3.run(ComponentInstantiatorSourceImpl.java:326) > >> at > >> > org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:51) > >> at > >> > org.apache.tapestry5.ioc.intern
Re: Component parameter becoming null
On Fri, 23 Oct 2015 14:33:32 -0200, Casey Link wrote: Do you mean the "container" variable in the loop? Yes! That might explain it, as every iteration through the loop the value changes. Is there a way to suspend the dual-binding nature, or pass a copy of the value? No. Don't reuse parameter fields as variables. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.4-beta-35] No more td css class from t:datagrid
Hi, idem for the class css, become with T5.4-beta-35 this is a problem for me, because all tr and td css has to be changed Thomas Le 23/10/2015 12:37, TNO a écrit : Hi, with T5.3, using a t:dataGrid, for each td, there is a css class from property name : 13 oct. 2014 but whith T5.4-beta-35, no more css class but a data-grid-property attribute ! 13 oct. 2014 Why the td css class from t:dataGrid was removed ? Best regards, Thomas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org