[JBoss Seam] - Re: OneToMany does not load
by MikeDougherty
Thanks for the reply petemuir. I sort of expected it to be a Hibernate issue. But I am unclear as to where Seam leaves off and Hibernate takes over, so I figured I'd start here.
The "show sql" Hibernate option is on in seam-gen projects by defaut, but I need to look at the SQL a little closer next time. After looking though the SQL, I realized that
| @OneToMany(cascade=ALL, mappedBy="id", fetch=EAGER)
| public List<Store> getStores() {
| return stores;
| }
|
Should have actually been...
| @OneToMany(cascade=ALL, mappedBy="district", fetch=EAGER)
| public List<Store> getStores() {
| return stores;
| }
|
The "mappedBy" attribute should point to the property in the Store object which will contain the mapped District object.
Anyway, thanks again for the response.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019101#4019101
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019101
19Â years, 2Â months
[Performance Tuning] - Re: JBoss Performance Tuning
by jerrynolan
You can also use jmap with the -heap option to check your permgen.
It will give you a listing of different areas of the jvm memory footprint, permgen is at the bottom. It's a quick way to take a look.
You run it with jmap -heap <jboss jvm pid>
For instance:
/usr/jdk1.5/bin/jmap -heap 7302
| ...
| Perm Generation:
| capacity = 134217728 (128.0MB)
| used = 79881104 (76.18055725097656MB)
| free = 54336624 (51.81944274902344MB)
| 59.51606035232544% used
|
On this box min and max permgen is set to 128M. If you don't have them both set to the same value (aka pre-allocated), jmap will tell you what value was being used when you ran the command - the value will be "capacity".
In my case, someone had set the box to 300M for permgen. Checking with jmap -heap over a weeks period made me realize that 128M was enough for this box.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019100#4019100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019100
19Â years, 2Â months
[JBossWS] - configure jUDDI
by saschwen
Hey,
Has anyone been able to configure the jboss jUDDI. I've been trying to get it going for a few days now and I can not connect and query/publish to it.
I guess the first problem is authentication. I've tried the username jboss with no password and I get the following exception. I can't figure out how to authenticate with it.
I'm using UDDI Browser to connect to it.
| 2007-02-19 18:10:48,238 ERROR [org.apache.juddi.function.SaveBusinessFunction] E_authTokenRequired (10120) An invalid authentication token was passed to an API call that requires authentication. authToken:
| 2007-02-19 18:10:48,238 ERROR [org.jboss.jaxr.juddi.JUDDIServlet] RegistryException::
| E_authTokenRequired (10120) An invalid authentication token was passed to an API call that requires authentication. authToken:
| at org.apache.juddi.function.AbstractFunction.getPublisher(AbstractFunction.java:71)
| at org.apache.juddi.function.SaveBusinessFunction.execute(SaveBusinessFunction.java:96)
| at org.apache.juddi.registry.RegistryEngine.execute(RegistryEngine.java:194)
| at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:158)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 2007-02-19 18:10:48,278 ERROR [org.jboss.jaxr.juddi.JUDDIServlet] A serious error has occured while assembling the SOAP Fault.
| java.lang.IllegalArgumentException: Invalid faultCode: Client
| at org.jboss.ws.soap.SOAPFaultImpl.setFaultCode(SOAPFaultImpl.java:219)
| at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:262)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
Can anyone help?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019076#4019076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019076
19Â years, 2Â months