[JBoss Tools] - org.eclipse.core.runtime.CoreException: Text editor does not have a document provider
by nimo stephan
nimo stephan [http://community.jboss.org/people/nimo22] created the discussion
"org.eclipse.core.runtime.CoreException: Text editor does not have a document provider"
To view the discussion, visit: http://community.jboss.org/message/636633#636633
--------------------------------------------------------------
when opening the hql-editor, I get the following stacktrace:
org.eclipse.core.runtime.CoreException: Text editor does not have a document provider
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4210)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
at org.hibernate.eclipse.console.AbstractQueryEditor.doSetInput(AbstractQueryEditor.java:175)
at org.hibernate.eclipse.hqleditor.HQLEditor.doSetInput(HQLEditor.java:244)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.hibernate.eclipse.console.HibernateConsolePlugin.openScratchHQLEditor(HibernateConsolePlugin.java:483)
at org.hibernate.eclipse.console.actions.HQLScratchpadAction.openQueryEditor(HQLScratchpadAction.java:47)
at org.hibernate.eclipse.console.actions.OpenQueryEditorAction.doRun(OpenQueryEditorAction.java:37)
at org.hibernate.eclipse.console.actions.OpenQueryEditorAction.runWithEvent(OpenQueryEditorAction.java:24)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
It this a known bug?
I am using JBT 3.4 m4. Eclipse 64bit, Win7, Java7.
Hibernate Tools for Eclipse
Version: 3.4.0.v20111022-0922-H35-M4
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636633#636633]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Portal] - LdapExtLoginModule + multiple baseCtxDN
by Mia Axelsson
Mia Axelsson [http://community.jboss.org/people/max68] created the discussion
"LdapExtLoginModule + multiple baseCtxDN"
To view the discussion, visit: http://community.jboss.org/message/636631#636631
--------------------------------------------------------------
Hi!
I´m using e-directory and our tree has 2 Organization (O) and i want to use booth in baseCtxDN or in some other way.
How can i do that? I can get the users in O=org1 to login but not from O=org2. If i change baseCtxDN to O=org2 the users in org2 can login.
I have tried to use 2 baseCtxDN, dose´t work. I have used baseCtxDN T=treename, does´t work. I have used blanc baseCtxDN, don´t work. I have tried no baseCtxDN, don´t work.
I tried to use double <login-module code> in same <application-policy name>, don´t work. I used 2 <application-policy name = "jmx-console">, dont work. Anybody knows?
My login-config.xml looks something like this.
<application-policy name = "jmx-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldaps://xxx:636/</module-option>
<module-option name="java.naming.security.authentication">simple </module-option>
<!-- Rebind as a user with search priviledges for the role queries -->
<module-option name="java.naming.security.principal">cn=xxx,ou=xxx,o=org1</module-option>
<module-option name="java.naming.security.credentials"></module-option>
<module-option name="baseCtxDN">o=Org1</module-option>
<module-option name="baseFilter">(cn={0})</module-option>
<module-option name="rolesCtxDN">ou=xxx,ou=xxx,ou=xxx,o=org1</module-option>
<module-option name="uidAttributeID">member</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
<module-option name="java.naming.security.protocol">ssl</module-option>
<module-option name="allowEmptyPasswords">false</module-option>
</login-module>
</authentication>
</application-policy>
Many Thanks!!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636631#636631]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[Beginner's Corner] - jboss driver block
by Derek Vinyard
Derek Vinyard [http://community.jboss.org/people/derekvinyard] created the discussion
"jboss driver block"
To view the discussion, visit: http://community.jboss.org/message/636288#636288
--------------------------------------------------------------
Hi guys,
I am using JBoss 4.0.2 (and am not in a position to upgrade) to run a Java+Hibernate+Struts+SQL Server 2008 application. Originally it was SQL Server 2005 for which I had a driver sqljdbc.jar, after a while a new server for 2008 was added so the driver was also updated to sqljdbc4.jar. Things worked perfectly for years, I could connect to both servers with the new driver without any problem, just the necessary changes in ds.xml. However for a couple of weeks JBoss get's blocked when using the newer driver whatever DB server I try to connect. Since then I have survived using the older driver and only connecting to the 2005 SQL server but I need access to the 2008 server also.
There are no errors in the logs, here's an excerpt:
| 19:48:09.798 INFO [ | org.hibernate.util.NamingHelper] JNDI InitialContext properties:{} |
19:48:09.798 INFO [ org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:comp/env/jdbc/t2br6
| 19:48:09.798 DEBUG [ | org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807 |
| 19:48:09.798 DEBUG [ | org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1321120539798, new next: 1321120539798 |
19:48:09.798 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=****, password=--hidden--}
19:48:09.798 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Checking driver for URL: jdbc:sqlserver://1.1.2.2:1433;DatabaseName=ABC
19:48:09.798 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver already registered for url: jdbc:sqlserver://1.1.2.2:1433;DatabaseName=ABC
| 19:55:39.785 DEBUG [ | org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 |
| 20:03:09.742 DEBUG [ | org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 |
It just doesn't do anything after the message "Driver already registered".
The datasource file looks like this:
<datasources>
<local-tx-datasource>
<jndi-name>t2br6</jndi-name>
<connection-url>jdbc:sqlserver://1.1.2.1:1433;DatabaseName=ABC</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>ABC</user-name>
<password>***</password>
<min-pool-size>3</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<prepared-statement-cache-size>1000</prepared-statement-cache-size>
<set-tx-query-timeout/>
<query-timeout>300</query-timeout>
<new-connection-sql>SET ANSI_WARNINGS OFF;SET LOCK_TIMEOUT 60000;SET CONCAT_NULL_YIELDS_NULL OFF;</new-connection-sql>
<check-valid-connection-sql>SELECT 'check valid cnn hib'</check-valid-connection-sql>
<track-statements>false</track-statements>
</local-tx-datasource>
<no-tx-datasource>
<jndi-name>t2br6_plain_jdbc</jndi-name>
<connection-url>jdbc:sqlserver://1.1.2.2:1433;DatabaseName=ABC</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>ABC</user-name>
<password>***</password>
<min-pool-size>3</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<prepared-statement-cache-size>1000</prepared-statement-cache-size>
<set-tx-query-timeout/>
<query-timeout>300</query-timeout>
<new-connection-sql>SET ANSI_WARNINGS OFF;SET LOCK_TIMEOUT 60000;SET CONCAT_NULL_YIELDS_NULL OFF;</new-connection-sql>
<check-valid-connection-sql>SELECT 'check valid cnn jdbc'</check-valid-connection-sql>
<track-statements>false</track-statements>
</no-tx-datasource>
</datasources>.
Since the problem appeared I have a new computer, fresh jboss installation, fresh Eclipse installation, new everything (except maybe the same internal IP). I don't know where and how to look for the problem. I can't think of no change that could cause this problem. Can you help?
Regards,
Derek
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636288#636288]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - New to JBPM5, trying to integrate with web application
by Michal Kowalski
Michal Kowalski [http://community.jboss.org/people/rufjan] created the discussion
"New to JBPM5, trying to integrate with web application"
To view the discussion, visit: http://community.jboss.org/message/636561#636561
--------------------------------------------------------------
Hi all, I'm new to JBPM5 and I would like to create a sample web application which will allow to invoke tasks in my simple process.
For the presentation layer I would like to use simple forms in Struts. The question is how to integrate them with jbpm?
As I understand jbpm, first thing I should do is to create my process using BPMN eclipse plugin - I think I can make it. Then as an output I will have my xml file representing process. The next step is to create KnowledgeBase in web application.
* Should I create KnowledgeBase as a singleton that will be available from every Action/Servlet? I think that creating KnowledgeBase is time consuming so there should be only one instance. What Action/Servlet does, is only creating StatefulKnowledgeSession per action request and then manipulation process using session. Am I right?
But there is one more question.
* I see that jbpm comes with admin console which helps in process maintenance. How should I make it available when integrating with struts web app? This feature is nice to have :) .
Is my approach right? Or I should create standalone jbpm sever somehow?
Thank you for any information!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636561#636561]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JNDI and Naming] - How to call an remote interface in ear from stand-alone sar (MBean)
by busters
busters [http://community.jboss.org/people/busters] created the discussion
"How to call an remote interface in ear from stand-alone sar (MBean)"
To view the discussion, visit: http://community.jboss.org/message/636569#636569
--------------------------------------------------------------
Hi,
hello everyone, I am new here and already have a question to this annoying circumstance. I thought it's a simple task, but it already took me days by now.
I have a complete and fine working ear (including jar, war, all you need for this).
On the other hand I made a very simple SAR (implementing an interface ending to "MBean", start(), stop(), etc.) The jboss-service.xml is located in the META-INF Folder.
Both files are deployed without any errors, when I put them into the deploy folder, and I can find my MBean (from SAR) in JMX Console.
The MBean contains a test method for calling a remote interface provided by the ear (in the including jar).
I tried to use a JNDI lookup to get access to the interface, the way i found in several postings and turorials. I copied the string for the lookup from the global JNDI namespace, and tried variations of this but it never ever worked.
Always get something like this:
<javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + BaseClassLoader...>
A problem I see, I am not sure about the correct <depends> tag in the jboss-service.mxl. At the moment it looks like this: "<depends>jboss.j2ee:ear=PGN_AS_ear.ear,jar=PGN_AS.jar,name=ApplicationBean,service=EJB3</depends>" That's the String I can find via the JMX Console.
For the JDNI lookup I use "PGN_AS_ear/ApplicationBean/remote-....pgn.as.business.application.facade.ApplicationRI" (global JNDI namespace).
Note: When I do this lookup from a simple "main" class it is all working fine. I even just need a more simple way for this:
ApplicationRI appBeanRI = (ApplicationRI) ctx.lookup("ApplicationBean");
I don't know what to try else. Is this even the right way to create such a connection ?
Things I am not sure about:
- classpath codebase tag for jboss-service.xml
- really correct string for the lookup
- correct <depends> tag in jboss-service.xml
Thank in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636569#636569]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Tools] - Problem Starting JBoss AS with JBoss Tools
by Stephen Wick
Stephen Wick [http://community.jboss.org/people/swick] created the discussion
"Problem Starting JBoss AS with JBoss Tools"
To view the discussion, visit: http://community.jboss.org/message/636493#636493
--------------------------------------------------------------
I am using...
Eclipse Indigo for J2EE SR1 (20110916-0149) Win32
JBossAS Tools Plugin v2.2.0v20110729-2006-H221-Final
Windows Vista SP2
JBoss EAP 4.3 by Redhat
I have created a JBoss Runtime in Eclipse to start up the "all" server.
JBoss starts just fine, I can log into it with a web browser on port 8080, but after 450 seconds I get an error message from Eclipse stating that Eclipse could not start the JBoss server. I am using the "Web Poller", and it seems to be configured correctly.
I changes to the Timeout Poller and the JMX Poller with the same result. I even set up the admin user in jmx-console-users.properties, and verified that I can log into the JMX Console as admin via the web browser.
What am I missing?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636493#636493]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years