[Installation, Configuration & Deployment] - Re: mysql connection refused
by rgjawanda
Here is my datasource binding with no exceptions.
13:24:40,333 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDSL to JNDI name 'java:MySqlDSL'
13:24:41,641 INFO
Here is the actual exception
13:17:18,695 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2569)
at com.mysql.jdbc.Connection.(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:151)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998577#3998577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998577
19 years, 3 months
[JBoss Seam] - actions on items from (framework) entity-query ?
by bengt_mansson
Hi
I have an entity bean but I try to do without a session bean to manage it. Instead I use the framework to define an entity-query that I use in a table. Getting and displaying the members works fine, but I cannot call the methods.
<ui:repeat value="#{myquery.resultList}" var="a">
| <tr>
| <td><h:outputText value="#{a.number}" /></td>
| <td>
| <s:link action="#{a.show}" value="show" rendered="#{!a.visible}" />
| <s:link action="#{a.hide}" value="hide" rendered="#{a.visible}" />
| </td>
| </tr>
| </ui:repeat>
| The link will get the correct text (show or hide) depending on the value of the member visible but the actions will not work.
I guess this is not the proper way to do this, but I'm sure you understand what I try to do.
Can anyone tell me a better approach?
/Bengt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998566#3998566
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998566
19 years, 3 months
[JBoss Seam] - Seam portlet with Facelet support
by zeroconf
Hi,
I'm quite new to seam but I need to know if it is possible to do a big project using seam and jboss portal.
I'am playing arround with the seam portal example.
But I don't understand why the following things don't appear in this example like in the "normal" booking example:
- no Facelets support, all views have a .jsp file suffix
- the web.xml file looks quit different
Some more questions:
- how can debugging be enabled in portlet mode ?
- is it possible to use the s:link jsf tag ?
The seam documentation gives me the impression that it should be straight forward to switch a "normal" seam application to a portlet based seam application by just altering the following line in faces-config.xml
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.{Transactional}SeamPhaseListener</phase-listener>
| </lifecycle>
|
to
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.{Transactional}SeamPortletPhaseListener</phase-listener>
| </lifecycle>
|
Is there anybody how has experience with developing portlets using seam and might supply me with a small sample seam portlet beside the one wich come with the example from the seam package (including Facelets support)?
I really need to know if it's worth doing further research to prove if seam is ready to build larger portlet applications or if JSR-168 support in seam just means - JSR-168 is supported but it will be quite painfull or impossible to build larger projects.
Please don't take me wrong at this point - I don't want to complain about seam - I just need some more information. As far as I know about seam - I love the elegant way seam supports - and so I'd really appreciate using seam in my next portal project. But the problem with projects - there always is a deadline and I don't want to get stuck in the middle if someone is out there knowing more about seam and jboss portal to let me know that it wouldn't be a good idea to use seam - at least not at the current stage of seam.
Regards
zeroconf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998564#3998564
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998564
19 years, 3 months