[JBossWS] - Re: webservice <transport-guarantee> CONFIDENTIAL does not w
by thomas.diesler@jboss.com
The above does not seem to be true.
When you deploy an EJB endpoint with
| <port-component>
| <port-component-name>Myname</port-component-name>
| <port-component-uri>/hello/myservice</port-componenturi>
| <transport-guarantee>CONFIDENTIAL</transport-guarantee>
| </port-component>
|
jbossws generates a web.xml (have a look at the "Server Temp Dir") that uses <transport-guarantee>CONFIDENTIAL</transport-guarantee>
>From then onwards, your endpoint behaves like any other webapp that uses CONFIDENTIAL.
anonymous wrote :
| At last, make sure that your WSDL files point to the right url. Otherwise your webservice client may be redirected to the unsecure HTTP access method.
|
This is indeed misleading. It should read
anonymous wrote :
| At last, make sure that the endpoint address in your WSDL file uses a secure protocol.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967862#3967862
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967862
19 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - Need help porting HSQL database created with EJB 3
by knaveofhearts
I have created a number of EJB 3.0 entities with JBoss 4.0.4 using HSQLDB, along with some stateless session beans and clients exercising those entities. Everything works fine using HSQLDB.
My plan has been to do most of the class development with HSQLDB with a persistence.xml file that has hibernate.hbm2ddl.auto set to create-drop, then save the database to a more permanent form by swapping out the HSQL persistence.xml and JCA files for ones using another database, such as Firebird or PostgreSQL. The idea is to not have to create the schema directly using SQL.
Firebird has a FBManager, accessed through the firebird-ds file, that allows you to create-drop, as with HSQLDB. In principle, I ought to be able to have the schema created for me automatically using the 2 swaps mentioned above. However, I have run into the following problem, which appears in the JBoss app server log when I try to deploy the jar file for the application:
Precision must be from 1 to 18 ... [SchemaExport] Unsuccessful: create table AbstractAcct (id integer not null, balance numeric(19,2), primary key (id)) The "balance" variable is declared to be a BigDecimal in the Java code. The JBoss CMP file (standardjbosscmp-jdbc.xml) has no explicit mapping for java.math.BigDecimal for Firebird (although BigDecimal is mapped to various things for some other data sources). Suggestions about how to fix this problem?
The problem with PostgreSQL is that there does not appear to be any way to dynamically create the database from the annotated entity classes. Am I wrong about this?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967861#3967861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967861
19 years, 8 months
[JBoss Seam] - Argh! Attribute access
by texan
I have some attributes on my session bean, accessible via the local interface with getters and setters.
For example:
public int getPageSize();
| public void setPageSize(int size);
I tried moving these to an Outjected named bean (session scope) and I got "NumberFormatException" when rendering the JSF component in my facelet:
@Out private TableDataList page;
<h:inputText id="pageSize" value="#{page.pageSize}" />
I then tried making the "page" bean accessible via getters and setters on the session bean:
public TableDataList getPage();
and changed the JSF code to:
<h:inputText id="pageSize" value="#{alertSession.page.pageSize}" />
Ack - still getting the NumberFormatException. There is literally no difference in the getPageSize() and setPageSize() methods on the session bean vs the page bean. Any ideas?
Here's the stack trace:
|
| [/coERROR {STDERR} LoggerStream.write - Aug 28, 2006 10:21:28 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/Alerts.xhtml]
| javax.el.ELException: /Alerts.xhtml: For input string: "pageSize"
| at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50)
| at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.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: java.lang.NumberFormatException: For input string: "pageSize"
| at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
| at java.lang.Integer.parseInt(Integer.java:447)
| at java.lang.Integer.parseInt(Integer.java:497)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:138)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
| at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
| at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
| ... 28 more
| de]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967860#3967860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967860
19 years, 8 months
[JBoss Portal] - Using JBoss Portal 2.4 with SQL Server 2005
by shah_117
Hi All,
I recently downloaded the production release of JBoss Portal 2.4. I want to configure it to use the SQL Server 2005 database instance that I have running on a different system rather than the default Hypersonic database. But I cant seem to get it to work. When I execute run.bat, it gives me a bunch of run time errors and I cant access the JBoss portal page.
This is what I have done so far: (please excuse the verbosity...):
I followed the instructions in the Reference guide to set up the sql server datasource (modified the portal-sqlserver-ds.xml file, created a database - PortalDS, created a user, granted the user db_owner permission on the PortalDS database). Next I downloaded the jTDS jdbc driver for Sql Server 2005 (version 1.2) & copied the jar file (jtds-1.2.jar) to the JBOSS_HOME/server/default/lib/ directory. Next I removed the portal-hssqldb-ds.xml file from the JBOSS_HOME/server/default/deploy directory & copied the modified portal-sqlserver-ds.xml file there. Now when I execute the run.bat file, I get a lot of run time errors & the portal doesnt start.
Please advise. Any help in this regard will be greatly appreciated.
TIA,
Shahnaz.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967859#3967859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967859
19 years, 8 months