[JBoss Seam] - s:selectDate not properly rendered inside a rich:panel
by rmemoria
I don't know if this question should be post here or in the new RichFaces forum... anyway...
I've included richFaces 3 in my not so old app using SEAM 1.2patch1.
I have a page with the following code
<rich:panel>
| ..
| ..
| <h:inputText id="dtini" value="" required="true">
| <s:convertDateTime pattern="dd/MM/yyyy"/>
| </h:inputText>
| <s:selectDate for="dtini">
| <h:graphicImage url="../resources/dtpick.gif" style="margin-left:5px"/>
| </s:selectDate>
| ..
| ..
| </rich:panel>
But the content inside the s:selectDate is not rendered. If I remove the rich:panel tag it is rendered correctly.
bellow is a piece of the HTML rendered (where the reference to dtpick.gif should be inside the span tag but it's empty).
//--></script><span onclick="__selectDate('main:dtend', 'main:dtend');"></span>
I may remove the rich:panel tags but the page looks pretty better with them :)
Any tip?
Best,
Ricardo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025662#4025662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025662
19Â years, 1Â month
[JBossWS] - Soap client side MessageFactory NoSuchMethod exception
by monowai
I'm using Jboss 4.05 with WS 1.20ga
I have a service that appears to be deploying successfully and I can see it quite clearly from my http://localhost:8080/jbossws url. After using wsconsume to produce the client side objects (from the WSDL created by wsprovide), I get the following when I try to run my unit test:
javax.xml.ws.WebServiceException: java.lang.NoSuchMethodError: javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
| at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:296)
| at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
| at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
| at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
| at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
| at $Proxy15.getAssetChanges(Unknown Source)
| at myco.tests.TestAssetWS.testWS(TestAssetWS.java:38)
My first thoughts ran to SAAJ version compatibility beging as that appears to be where this stuff is going on. I've tried placing the jwsdp-2.0 version ahead of jboss-saaj.jar and the other way round but the same error.
FWIW, my invocation code looks like this:
| AssetService service = new AssetService(new URL("http://chma_mikehpc:8080/ws?wsdl"), new QName("http://myco.com/integration/asset/theasset", "TheAssetData"));
| Asset port = service.getPort(Asset.class);
| TheAssetData result = port.getAssetChanges(99);
| assertNotNull (result);
|
The exception is being thrown during port.getAssetChanges()
I'm sure this is going to be a simple classpath issue, but, where to next! Pointers anyone?
tia
m
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025661#4025661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025661
19Â years, 1Â month
[EJB 3.0] - Problem Starting EJB3StandaloneBootstrap
by safarje
Hi,
Trying out the tutorial (simple-tutorial), I can't seem to make it work in the simplest case. If someone has some clue as to how to progress, I'd appreciate.
I run this with jdk1.5.0-10 and I have jboss-ejb3-all, hibernate-all, thirdparty-all, jcainflow and jms-ra in that order in my classpath.
Best Regards,
Jean
It fails at the first line of main, EJB3StandaloneBootstrap.boot(null) which eventually fails in line 373:
deployments.add(0, deployer.deploy(bootstrap));
The exception stack is:
ERROR 06-03 22:36:41,437 (Util.java:run:517) -Failed to create schema loader.
java.lang.ClassCastException: org.apache.xerces.dom.DOMXSImplementationSourceImpl
at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:144)
at org.jboss.xb.binding.Util$5.run(Util.java:512)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.xb.binding.Util.getXSImplementation(Util.java:488)
at org.jboss.xb.binding.Util.loadSchema(Util.java:387)
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:162)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:138)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)
at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85)
at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:373)
at org.jboss.tutorial.simple.Main.main(Main.java:38)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025659#4025659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025659
19Â years, 1Â month
[JBoss Seam] - Remember Me Exception
by PatrickMadden
Hi, I have a strange null pointer exception when trying to implement the Remember Me functionality.
It seems to be a null pointer exception in org.jboss.seam.core.Selector.setCookieValue(Selector:77). I've looked at the code and it appears that the response object is null which to me is strange.
Below is the method in Seam that is "causing" the problem.
I'm using Seam 1.2 patched and IceFaces 1.5.3
| /**
| * Set the cookie
| */
| protected void setCookieValue(String value)
| {
| if ( isCookieEnabled() )
| {
| HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();
| Cookie cookie = new Cookie( getCookieName(), value );
| cookie.setMaxAge( getCookieMaxAge() );
| response.addCookie(cookie); /* NPE IS RIGHT HERE */
| }
| }
|
I have no idea why the response would be null at this point in time. My login works fine and authenticates correctly. Only dumps if I have the remember me check box selected.
For completeness I'll list the full stack trace here:
| 22:21:11,867 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception
| javax.faces.FacesException: Error calling action method of component with id _id32:_id56
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.renderCycle(BlockingServlet.java:438)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.receiveUpdates(BlockingServlet.java:426)
| at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:279)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 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)
| Caused by: javax.faces.el.EvaluationException: /login.xhtml @59,93 action="#{identity.login}": java.lang.NullPointerException
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| ... 29 more
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.core.Selector.setCookieValue(Selector.java:77)
| at org.jboss.seam.security.Identity.postAuthenticate(Identity.java:284)
| at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedIdentity.java:70)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:250)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:242)
| at org.jboss.seam.security.Identity.login(Identity.java:172)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| ... 30 more
|
And here is my login form:
| <h:form>
|
| <div class="dialog">
| <div class="entry">
| <div class="label">
| <h:outputText value="#{messages['login.name']}" />
| </div>
| <div class="input">
| <h:inputText id="username" value="#{identity.username}"/>
| </div>
| </div>
| <div class="entry">
| <div class="label">
| <h:outputText value="#{messages['login.password']}" />
| </div>
| <div class="input">
| <h:inputSecret id="password" value="#{identity.password}"/>
| </div>
| </div>
| <div class="entry">
| <div class="label">
| <h:outputText value="#{messages['login.rememberMe']}" />
| </div>
| <div class="input">
| <h:selectBooleanCheckbox id="rememberMe" value="#{identity.rememberMe}"/>
| </div>
| </div>
| <div class="entry">
| <div>
| <h:graphicImage value="/seam/resource/captcha?#{captcha.id}"/>
| </div>
| <div class="label">
| <h:outputLabel for="verifyCaptcha">Enter the above letters</h:outputLabel>
| </div>
| <div class="input">
| <h:inputText id="verifyCaptcha" value="#{captcha.response}" required="true"/>
| </div>
| <div class="errors"><h:message for="verifyCaptcha"/></div>
| </div>
| </div>
|
| <div class="actionButtons">
| <h:commandButton value="#{messages['login.login']}" action="#{identity.login}"/>
| </div>
|
| <div class="actionButtons">
| <s:link view="/registerUser.xhtml" value="#{messages['registerUser.new']}" />
| </div>
|
| </h:form>
|
Any help is greatly appreciated,
PVM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025658#4025658
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025658
19Â years, 1Â month
[JBoss Seam] - HibernateException: Missing sequence or table
by cparham
Hello:
I'm trying to deploy a Seam app that uses an entity bean to persist data. For some reason, when I deploy, I get the following exception:
| 21:50:52,274 INFO [DatabaseMetadata] table not found: FRAMEWK.RECORD_SEQ
| 21:50:52,461 INFO [DatabaseMetadata] table not found: RECORD_SEQ
| 21:50:52,461 WARN [ServiceController] Problem starting service persistence.units:ear=testEnroll.ear,jar=testEnroll.jar,unitName=testEnroll
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing sequence or table: FRAMEWK.RECORD_SEQ
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| ...
|
This is how I've annotated the primary key in my entity:
| @Id
| @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RECORD_SEQ")
| @SequenceGenerator(name="RECORD_SEQ", allocationSize=1, sequenceName="RECORD_SEQ")
| public Long getRecord_Id() {
| return record_Id;
| }
|
I know the sequence exists because I can execute the following and get a value back:
| SELECT FRAMEWK.RECORD_SEQ.NEXTVAL FROM DUAL;
|
Does anyone know what the problem is?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025657#4025657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025657
19Â years, 1Â month