[JBoss Portal] - exclud user-role from
by Fuchs
Hello!
Iam using JBoss Portal 2.7 downloaded version, but without upgrade.
The problem is that the "Dashboard" is allowed for all users.
I want to forbit the users to access the "Dashboard".
Thats why i gave the "jboss-portal.sar/.../default-object.xml" a "security-constraint" in the dashboard section.
| <deployment>
| <if-exists>keep</if-exists>
| <context>
| <context-name>dashboard</context-name>
| <security-constraint>
| <policy-permission>
| <action-name>viewrecursive</action-name>
| <role-name>Admin</role-name>
| </policy-permission>
| </security-constraint>
| <properties>
| ...
|
But it doesnt seem to be the right way.
I havent valideted against the dtd, so it could be on the wrong position?
Someone knows what i could do?
(excuse may bad english.)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217178#4217178
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217178
17 years, 1 month
[JBoss Tools (users)] - Re: Hibernate Configurations problem
by asookazian
what does this mean?
| eclipse.buildId=M20090107-0800
| java.version=1.5.0_17
| java.vendor=Sun Microsystems Inc.
| BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
| Command-line arguments: -os win32 -ws win32 -arch x86
|
|
| Error
| Wed Mar 11 13:51:46 PDT 2009
| An exception occurred during console notification
|
| org.eclipse.swt.SWTException: Device is disposed
| at org.eclipse.swt.SWT.error(SWT.java:3777)
| at org.eclipse.swt.SWT.error(SWT.java:3695)
| at org.eclipse.swt.SWT.error(SWT.java:3666)
| at org.eclipse.swt.widgets.Display.error(Display.java:1180)
| at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
| at org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
| at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
| at org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
| at org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
| at org.eclipse.ui.console.ConsolePlugin.stop(ConsolePlugin.java:175)
| at org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
| at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
| at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
| at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
| at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
| at org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
| at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
| at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:576)
| at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:424)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
| 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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
| at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
| at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217177#4217177
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217177
17 years, 1 month
[JBoss Messaging] - Re: Problem using JBoss Messaging and JTS
by lrgalego
Hi folks, I'm having the same problem described in this post,
I decided to list everything that I do, so anyone who wants to help could reproduce my error.
1 -
I follow this article: http://www.jboss.org/community/docs/DOC-13179
and installed jts in my jboss 5.0.1.GA unsing the build.xml and ant that exists into the docs/examples/jts directory.
2-
changed the sucker passord into the deploy/messaging/messaging-jboss-beans.xml
3-
descomment the sucker password into the deploy/messaging/messaging-service.xml and set it the same as in the file deploy/messaging/messaging-jboss-beans.xml
4-
I implemented the follow MDB:
| @MessageDriven(activationConfig = {
| @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),
| @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
| @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/myQueue") })
| public class MyMdb implements MessageDrivenBean, MessageListener {
|
| public void onMessage(Message message) {
| System.out.println("Message received");
| }
|
| public void ejbRemove() throws EJBException {
| }
|
| public void setMessageDrivenContext(MessageDrivenContext ctx)
| throws EJBException {
| }
| }
|
5-
Create a destination entry for my queue:
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=myQueue" xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">
| jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice
| </depends>
| <attribute name="SecurityConfig">
| <security>
| <role name="guest" read="true" write="true"/>
| </security>
| </attribute>
| </mbean>
|
6- Deployed a ear file with the mdb.
7- Then I obtain the same stacktrace that debs show to us.
I also tried to change the deploy/messaging/messaging-jboss-beans.xml changing the definition of the application policy to
| <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
| <module-option name="usersProperties">props/messaging-users.properties</module-option>
| <module-option name="rolesProperties">props/messaging-roles.properties</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
But the problem was the same.
Talking in the transactions forum
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=152050
a side effect of the JBossTS was listed(JBTM-466).
So what I did...
I decoreted the class org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore and made the username and the password be setted by a user present in the properties that I defined to be used in the application-policy.
The JMS works without the error message and the message seen's to be received ok.
But the first time that I received a message the follow stack trace is displayed
| 2009-03-11 14:08:36,771 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] (WorkManager(2)-3) Unexpected error delivering message delegator->JBossMessage[20263588915314688]:PERSISTENT, deliveryId=0
| java.lang.NullPointerException
| at org.jboss.ejb3.security.SecurityActions$14.run(SecurityActions.java:415)
| at org.jboss.ejb3.security.SecurityActions$14.run(SecurityActions.java:412)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.ejb3.security.SecurityActions.popRunAs(SecurityActions.java:410)
| at org.jboss.ejb3.security.RunAsSecurityInterceptorv2.invoke(RunAsSecurityInterceptorv2.java:99)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:262)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:270)
| at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:140)
| at $Proxy189.onMessage(Unknown Source)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178)
| at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
| at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_12144849.invoke(SessionAspect_z_handleRun_12144849.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
| at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
| at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:234)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
|
So I think that this solution is really ugly. And maybe can create some unexpected errors.
Can anyone help me with this? Thanks for the attention.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217175#4217175
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217175
17 years, 1 month
[EJB/JBoss] - Socket Timeout with EJB2 on JBoss v4.0.5GA?
by klester
JBoss 5 seems to support timing out sockets if an EJB method takes too long. This is done via adding a "timeout" parameter to the the connector configuration in the ejb3.deployer/META-INF/jboss-service.xml.
Is there an equivalent to this with EJB2? We have noticed that our clients sometimes hang while calling a remote EJB method, and we would like to add a timeout so that the clients will give up after a set amount of time. I have modified my jboss-bean.deployer/META-INF/jboss-service.xml file to include a connector that times out similar to the EJB3 version, but it does not work.
My modified jboss-service.xml is below:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <server>
|
| <!--
| The JBoss Bean Deployer
| -->
| <mbean code="org.jboss.kernel.deployment.jboss.JBossBeanDeployer"
| name="jboss.bean:service=JBossBeanDeployer">
|
| <attribute name="Extension">.beans</attribute>
| <attribute name="MetaDataURL">META-INF/jboss-beans.xml</attribute>
| </mbean>
|
| <mbean code="org.jboss.remoting.transport.Connector"
| xmbean-dd="org/jboss/remoting/transport/Connector.xml"
| name="jboss.remoting:type=Connector,transport=socket3873,handler=ejb2Deployer">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="InvokerLocator">socket://0.0.0.0:3873/?timeout=30000</attribute>
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
|
| </server>
Is it even possible to time out remote ejb calls in EJB2 the same as can be done with EJB3? If so, does anyone see what I am missing/doing wrong?
Thanks in advance
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217174#4217174
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217174
17 years, 1 month
[JBoss Tools (users)] - Re: AS tools nightly build does not work with eclipse 3.4.2
by jackxxwu
it could be dependency problems. i tried the nightly build update site.
http://download.jboss.org/jbosstools/updates/nightly/trunk/
but the update did not work:
An error occurred while collecting items to be installed
No repository found containing: org.jboss.tools.jmx.core/osgi.bundle/1.0.0.GA-R200903031330-H8
No repository found containing: org.jboss.tools.jmx.ui/osgi.bundle/1.0.0.GA-R200903031330-H8
the server view actually shows up now. but the linkage between server and archive is broken. i can't publish a archive to the server. i just don't see any link in the UI to do that.
there are many error messages in the log. i can see this file in my install directory. org.eclipse.jdt.apt.pluggable.core_1.0.101.R34x_v20081108-1950.jar
but apparently eclipse can't.
anyway, i am giving up. will check back once you guys release 3.0GA. please make sure the basic function works before adding too much features. thanks.
!SESSION 2009-03-11 13:35:09.834 -----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.5.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -debug -clean
!ENTRY org.eclipse.osgi 2 0 2009-03-11 13:35:24.522
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-11 13:35:24.522
!MESSAGE Bundle reference:file:plugins\org.eclipse.jdt.apt.pluggable.core_1.0.101.R34x_v20081108-1950.jar [125] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-11 13:35:24.522
!MESSAGE Bundle reference:file:plugins\org.eclipse.jdt.compiler.apt_1.0.101.R34x_v20090114-1205.jar [127] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-11 13:35:24.522
!MESSAGE Bundle reference:file:plugins\org.eclipse.jdt.compiler.tool_1.0.100.v_894_R34x.jar [128] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-03-11 13:35:24.522
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 13:35:31.662
!MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
!ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 13:35:31.662
!MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
!ENTRY org.eclipse.osgi 2 0 2009-03-11 13:37:42.116
!MESSAGE While loading class "org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$JSPResourceVisitor", thread "Thread[Worker-1,5,main]" timed out waiting (5000ms) for thread "Thread[Worker-13,5,main]" to finish starting bundle "reference:file:plugins\org.eclipse.jst.jsp.core_1.2.121.v200901290830.jar [194]". To avoid deadlock, thread "Thread[Worker-1,5,main]" is proceeding but "org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$JSPResourceVisitor" may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins\org.eclipse.jst.jsp.core_1.2.121.v200901290830.jar" by thread "Worker-13".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:263)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager.getVisitor(JSPIndexManager.java:506)
at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$JSPResourceChangeListener.resourceChanged(JSPIndexManager.java:677)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at org.eclipse.core.internal.resources.Synchronizer.setSyncInfo(Synchronizer.java:258)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache$SyncInfoSynchronizedAccessor.internalSetCachedSyncBytes(SynchronizerSyncInfoCache.java:225)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.setCachedSyncBytes(SynchronizerSyncInfoCache.java:149)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.addStatus(SynchronizerSyncInfoCache.java:73)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:123)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:93)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.setStatuses(StatusCacheManager.java:237)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.basicGetStatus(StatusCacheManager.java:217)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:188)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:136)
at org.tigris.subversion.subclipse.core.resources.LocalResource.getStatus(LocalResource.java:208)
at org.tigris.subversion.subclipse.core.resources.LocalResource.isIgnored(LocalResource.java:116)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.isSupervised(SVNWorkspaceSubscriber.java:124)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.getSyncInfo(SVNWorkspaceSubscriber.java:173)
at org.eclipse.team.core.subscribers.Subscriber.getDiff(Subscriber.java:370)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager.getDiff(SubscriberChangeSetManager.java:302)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.handleChange(SubscriberChangeSetManager.java:183)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.doDispatchEvents(SubscriberChangeSetManager.java:80)
at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 43 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:263)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager.getVisitor(JSPIndexManager.java:506)
at org.eclipse.jst.jsp.core.internal.java.search.JSPIndexManager$JSPResourceChangeListener.resourceChanged(JSPIndexManager.java:677)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at org.eclipse.core.internal.resources.Synchronizer.setSyncInfo(Synchronizer.java:258)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache$SyncInfoSynchronizedAccessor.internalSetCachedSyncBytes(SynchronizerSyncInfoCache.java:225)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.setCachedSyncBytes(SynchronizerSyncInfoCache.java:149)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.addStatus(SynchronizerSyncInfoCache.java:73)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:123)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:93)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.setStatuses(StatusCacheManager.java:237)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.basicGetStatus(StatusCacheManager.java:217)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:188)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:136)
at org.tigris.subversion.subclipse.core.resources.LocalResource.getStatus(LocalResource.java:208)
at org.tigris.subversion.subclipse.core.resources.LocalResource.isIgnored(LocalResource.java:116)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.isSupervised(SVNWorkspaceSubscriber.java:124)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.getSyncInfo(SVNWorkspaceSubscriber.java:173)
at org.eclipse.team.core.subscribers.Subscriber.getDiff(Subscriber.java:370)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager.getDiff(SubscriberChangeSetManager.java:302)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.handleChange(SubscriberChangeSetManager.java:183)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.doDispatchEvents(SubscriberChangeSetManager.java:80)
at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.osgi 2 0 2009-03-11 13:37:47.132
!MESSAGE While loading class "org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentProperties", thread "Thread[Worker-1,5,main]" timed out waiting (5000ms) for thread "Thread[Worker-13,5,main]" to finish starting bundle "reference:file:plugins\org.eclipse.jst.jsp.core_1.2.121.v200901290830.jar [194]". To avoid deadlock, thread "Thread[Worker-1,5,main]" is proceeding but "org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentProperties" may not be fully initialized.
!STACK 0
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins\org.eclipse.jst.jsp.core_1.2.121.v200901290830.jar" by thread "Worker-13".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:263)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.processPreferences(JSPFContentPropertiesManager.java:177)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.processEntryChanges(JSPFContentPropertiesManager.java:149)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.resourceChanged(JSPFContentPropertiesManager.java:231)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at org.eclipse.core.internal.resources.Synchronizer.setSyncInfo(Synchronizer.java:258)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache$SyncInfoSynchronizedAccessor.internalSetCachedSyncBytes(SynchronizerSyncInfoCache.java:225)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.setCachedSyncBytes(SynchronizerSyncInfoCache.java:149)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.addStatus(SynchronizerSyncInfoCache.java:73)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:123)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:93)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.setStatuses(StatusCacheManager.java:237)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.basicGetStatus(StatusCacheManager.java:217)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:188)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:136)
at org.tigris.subversion.subclipse.core.resources.LocalResource.getStatus(LocalResource.java:208)
at org.tigris.subversion.subclipse.core.resources.LocalResource.isIgnored(LocalResource.java:116)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.isSupervised(SVNWorkspaceSubscriber.java:124)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.getSyncInfo(SVNWorkspaceSubscriber.java:173)
at org.eclipse.team.core.subscribers.Subscriber.getDiff(Subscriber.java:370)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager.getDiff(SubscriberChangeSetManager.java:302)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.handleChange(SubscriberChangeSetManager.java:183)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.doDispatchEvents(SubscriberChangeSetManager.java:80)
at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 44 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1144)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:263)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:370)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.processPreferences(JSPFContentPropertiesManager.java:177)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.processEntryChanges(JSPFContentPropertiesManager.java:149)
at org.eclipse.jst.jsp.core.internal.contentproperties.JSPFContentPropertiesManager$ResourceChangeListener.resourceChanged(JSPFContentPropertiesManager.java:231)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:288)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:282)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at org.eclipse.core.internal.resources.Synchronizer.setSyncInfo(Synchronizer.java:258)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache$SyncInfoSynchronizedAccessor.internalSetCachedSyncBytes(SynchronizerSyncInfoCache.java:225)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.setCachedSyncBytes(SynchronizerSyncInfoCache.java:149)
at org.tigris.subversion.subclipse.core.status.SynchronizerSyncInfoCache.addStatus(SynchronizerSyncInfoCache.java:73)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:123)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.updateCache(StatusCacheManager.java:93)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.setStatuses(StatusCacheManager.java:237)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.basicGetStatus(StatusCacheManager.java:217)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:188)
at org.tigris.subversion.subclipse.core.status.StatusCacheManager.getStatus(StatusCacheManager.java:136)
at org.tigris.subversion.subclipse.core.resources.LocalResource.getStatus(LocalResource.java:208)
at org.tigris.subversion.subclipse.core.resources.LocalResource.isIgnored(LocalResource.java:116)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.isSupervised(SVNWorkspaceSubscriber.java:124)
at org.tigris.subversion.subclipse.core.sync.SVNWorkspaceSubscriber.getSyncInfo(SVNWorkspaceSubscriber.java:173)
at org.eclipse.team.core.subscribers.Subscriber.getDiff(Subscriber.java:370)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager.getDiff(SubscriberChangeSetManager.java:302)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.handleChange(SubscriberChangeSetManager.java:183)
at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.doDispatchEvents(SubscriberChangeSetManager.java:80)
at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217171#4217171
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217171
17 years, 1 month
[JBoss Tools (users)] - Re: Hibernate Configurations problem
by asookazian
Ok, so now these are the errors I'm getting with the booking project:
eclipse.buildId=M20090107-0800
| java.version=1.5.0_17
| java.vendor=Sun Microsystems Inc.
| BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
| Command-line arguments: -os win32 -ws win32 -arch x86
|
|
| Error
| Wed Mar 11 13:32:20 PDT 2009
| org.hibernate.exception.JDBCConnectionException: Getting database metadata
|
| org.hibernate.exception.JDBCConnectionException: Getting database metadata
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
| at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:64)
| at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
| at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
| at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
| at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
| at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:114)
| at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
| at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:105)
| at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:61)
| at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
| at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| Caused by: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@b14f5d0b[file =C:\java\jbdevstudio-2.0.0.CR2\jboss-eap\jboss-as\server\default\data\hypersonic.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: java.io.IOException: The process cannot access the file because another process has locked a portion of the file : C:\java\jbdevstudio-2.0.0.CR2\jboss-eap\jboss-as\server\default\data\hypersonic.lck
| at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
| at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
| at org.hsqldb.jdbcDriver.connect(Unknown Source)
| at org.hibernate.console.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:40)
| at java.sql.DriverManager.getConnection(DriverManager.java:525)
| at java.sql.DriverManager.getConnection(DriverManager.java:140)
| at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
| at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:122)
| at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:61)
| ... 11 more
|
Previously, I had started the HSQL manager from the web console after I started JBoss AS from the IDE. Subsequently, I restarted JBDS, JBoss is not running. I still am getting that lock error. I have no clue what is locking it as I have only one JVM running (java.exe) as per my windows task mgr.
NOTE: The hibernate-console.properties did not exist when I imported the booking project as a java project. It created a blank hibernate.properties for me so then I had to go copy the contents and tweak settings from my other project. This properties file should not be blank, at minimum it should prompt the user to fill out a form in a wizard or copy it from somewhere. I was getting "Could not locate TransactionManager" error but now that's fixed.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217168#4217168
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217168
17 years, 1 month