[JBoss Tools (users)] - Re: MyEclipse & JBoss Tools
by klob
"max.andersen(a)jboss.com" wrote : please - what *exact* error message did you get ? Which duplicates ? What nullpointers ? stacktraces ? Logs ?
MyEclipse uses it own executable which pops up a problems occurred dialog box which says "Duplicate Errors", but I don't see anything in the Eclipse log.
At the top of the window when doing the install it says "WTP JAVA EE (MYECLIPSE INCOMPATIBLE) - ECLIPSE PLATFORM
But after re-installing again, it seems that many more things work, including the JBoss Tools. I just did a few quick tests. This time I used http://download.jboss.org/jbosstools/updates/development as the site.xml.
Exception stack trace:
==============================================
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at org.jboss.tools.jst.jsp.outline.ValueHelper.updateFacelets(ValueHelper.java:314)
at org.jboss.tools.jst.jsp.outline.ValueHelper.init(ValueHelper.java:109)
at org.jboss.tools.jst.jsp.outline.ValueHelper.(ValueHelper.java:81)
at org.jboss.tools.jst.jsp.outline.JSPPropertySourceAdapter.(JSPPropertySourceAdapter.java:66)
at org.jboss.tools.jst.jsp.outline.JSPPropertySheetConfiguration$JSPPropertySourceProvider0.getPropertySource(JSPPropertySheetConfiguration.java:56)
at org.eclipse.ui.views.properties.PropertySheetEntry.getPropertySource(PropertySheetEntry.java:470)
at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:752)
at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:974)
at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:473)
at org.eclipse.wst.sse.ui.internal.properties.ConfigurablePropertySheetPage.selectionChanged(ConfigurablePropertySheetPage.java:166)
at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:71)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider$2.run(JSPMultiPageSelectionProvider.java:144)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider.fireSelectionChanged(JSPMultiPageSelectionProvider.java:142)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider.firePostSelectionChanged(JSPMultiPageSelectionProvider.java:131)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor$1.handlePostSelectionChanged(JSPMultiPageEditor.java:306)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor$1$1.selectionChanged(JSPMultiPageEditor.java:289)
at org.eclipse.wst.sse.ui.StructuredTextEditor$6.run(StructuredTextEditor.java:910)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:908)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:966)
at org.eclipse.wst.sse.ui.StructuredTextEditor$5.selectionChanged(StructuredTextEditor.java:889)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2546)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2498)
at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2477)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:3745)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:2967)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
==============================================
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118404#4118404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118404
18 years, 3 months
[JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
by gus888
"jacob.orshalick" wrote : "gus888" wrote : Question 1 : I tried different outjection scopes: EVENT, PAGE and CONVERSATION, and only the CONVERSATION scope works (outjected data were displayed on web). When I used EVENT and PAGE scopes, no data were displayed on web page. I don't know why?
|
| What is the rest of the scenario? How are these values getting populated? Are you executing an action then redirecting?
|
Hi Jacob, thank you for your reply.
I follow Seam wiki pagination sample: manage bean is stateless bean, outject a event or page scope page, but I don't know why I didn't get results back to page. Only after I used conversation outjection, I can got results displayed on page. However, when I try to click a link on the page, the results on the page disappear immediately. I really feel frustrated.
"jacob.orshalick" wrote :
| "gus888" wrote : Question 2 : When I clicked h:commandLinks of individual email and phone, the whole page data disappeared. Anybody can explain why? Thank you in advance.
|
| Have you started a long-running conversation? Data outjected to conversation scope will be outjected to the temporary conversation which is destroyed at the end of the request if you don't promote the conversation to long-running. I did not use a long-running conversation. I use stateless bean to outject a temporary conversation. Is it correct? Thank you very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118391#4118391
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118391
18 years, 3 months
[Beginners Corner] - JBOSS JSTL <sql:dataSource> issue
by WE-energies2
I have seen many posting on this issue, but none of them solved my issue.
I can not get <sql:dataSource> tag to connect to my data Source file.
I am now thinking my app/server is setup wrong.
I can get the JSP to work if I do not use the datasource file.
I have that option commented out in the sample code below.
Here is the quick sample JSP .
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
| <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
|
|
| <sql:setDataSource dataSource="OracleDS" />
| <!-- driver="oracle.jdbc.driver.OracleDriver"
| url="jdbc:Oracle:thin:@pxxxyyyzzzz:1521:pedcd50k" user="xxxxxx"
| password="yyyyyyy" />
| -->
| <sql:query var="data" >
| select * from coll_active_campaigns
| </sql:query>
|
| <html>
| <head>
| <title></title>
| </head>
|
| <body>
| <br />
| <form>
| <table align="left" cellspacing=2 cellpadding=3 border="1" width="627"
| height="203">
| <c:forEach var="camp" items="${data.rows}">
| <tr>
| <td>
| ${camp.schedule_id}
| </td>
| <td>
| ${camp.campaign_id}
| </td>
| <td>
| ${camp.cd_campaign}
| </td>
| <td>
| ${camp.campaign}
| </td>
| <br />
| </tr>
| </c:forEach>
| </table>
| </form>
| <br />
|
| </body>
| </html>
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>OracleDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@pxxxxxyyyyzzzzz:1521:pedcd50k</connection-url>
|
| <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
| <user-name>xxxxxxx</user-name>
| <password>yyyyy</password>
| <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
| <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
| <!-- Checks the Oracle error codes and messages for fatal errors -->
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| <!-- sql to call when connection is created
| <new-connection-sql>some arbitrary sql</new-connection-sql>
| -->
|
| <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
| <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
| -->
|
| </local-tx-datasource>
|
| </datasources>
|
|
I get this error from JBoss:
10:43:00,131 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:
Is there something I am missing in the setup?
The datasource file seems to be ok, it deploy correctly on startup.
10:42:38,696 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
I am using JBoss 4.0.5, Oracle 10.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118388#4118388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118388
18 years, 3 months