Problems with scaffolding
by Mario Marques Junior
I used forge to create an entity in my project, and I have to do changes
to work properly.
In view.xhtml, I put the Save button inside <c:if test="rendered
condition"> (removing the rendered condtion from the <h:commandButton>),
also send parameter edit=false to the Cancel button.
In PersistenceUtil.java, I put getEntityManager().joinTransaction(); on
delete() and save().
I want to know if I should add other configuration so that I can stick
with the default code generated or if I have to do this changes for
every scaffolding.
Forge 1.0.0.Alpha3
JBossAS 6
Hibernate
Thanks,
Mario Marques Junior
13 years, 7 months
Problem with Alpha3
by Paul Keogh
Hi,
Downloaded Alpha3 and followed the example using HIbernate and JBAS 6.
The index URL worked fine but when I went to look at the entity I had
created I got the exception below.
Any suggestions ?
Thanks,
20:05:04,766 INFO
[org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
[6.0.0.Final "Neo"] Started in 1m:24s:747ms
20:07:30,085 WARNING
[javax.enterprise.resource.webcontainer.jsf.context] JSF1091: No mime
type could be found for file favicon.ico. To resolve this, add a
mime-type mapping to the applications web.xml.
20:07:30,087 WARNING
[javax.enterprise.resource.webcontainer.jsf.context] JSF1091: No mime
type could be found for file favicon.ico. To resolve this, add a
mime-type mapping to the applications web.xml.
20:07:30,089 WARNING
[javax.enterprise.resource.webcontainer.jsf.application] JSF1015:
Request path '/faces/index.xhtml' begins with one or more occurrences
of the FacesServlet prefix path mapping '/faces'.
20:08:27,860 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/webtext-1.0.0-SNAPSHOT].[FacesServlet]]
Servlet.service() for servlet FacesServlet threw exception:
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(Unknown Source) [:1.6.0_24]
at javax.faces.event.SystemEvent.<init>(SystemEvent.java:67) [:2.0.3-]
at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:69)
[:2.0.3-]
at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:69)
[:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:256)
[:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:245)
[:2.0.3-]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
[:2.0.3-]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
[:2.0.3-]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
[:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
[:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
[:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
[:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0_24]
13 years, 7 months
Re: [forge-users] faq?
by Lincoln Baxter, III
Unfortunately the database reverse-engineering plugin is still under
development. We actually have it working, but the plugin was never released
or updated for Alpha3. Actually, I think Max has things mostly done, if
you're interested you might be able to get it working pretty easily using
the plugin writing section of the guide:
http://docs.jboss.org/forge/1.0.0.Alpha3/reference/en-US/html_single/#for...
Max, what would you say it would take to get this working on Alpha3? Is
Hibernate-tools in maven yet?
~Lincoln
On Thu, Apr 7, 2011 at 10:46 AM, brian <brianx(a)vt.edu> wrote:
> Lincoln,
>
> Is there a how-to for the case where I have an existing
> database/entities?
>
> I think what I'd like to do is either (a) gen entities from my database
> or (b) update my existing entities with EJB3/JB6 annotations... then gen
> the front-end.
>
>
> On Thu, 2011-04-07 at 10:26 -0400, Lincoln Baxter, III wrote:
> > Hi Brian,
> >
> > If you get stuck, try pressing <TAB> or press <ENTER> and you will be
> > prompted for the missing arguments, with a list of available options.
> >
> > In this case, however, just type:
> >
> > persistence setup --provider HIBERNATE --container JBOSS_AS6
> > Hope this helps!
> >
> > ~Lincoln
> >
> > On Thu, Apr 7, 2011 at 10:18 AM, brian <brianx(a)vt.edu> wrote:
> > Hi folks I'm just getting started using
> >
> http://docs.jboss.org/forge/1.0.0.Alpha3/reference/en-US/html_single/#for...
> >
> > and step 4, the persistence, is a little vague to me
> > syntactically: how
> > about an example, say using Hib and JB6?
> >
> > I'm sure there's a FAQ, and this question is possibly on it.
> > Can
> > someone point me at it?
> >
> > Thanks in advance. Looking forward to using Forge!
> > -Brian
> >
> >
> >
> > _______________________________________________
> > forge-users mailing list
> > forge-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/forge-users
> >
> >
> >
> > --
> > Lincoln Baxter, III
> > http://ocpsoft.com
> > http://scrumshark.com
> > "Keep it Simple"
>
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months