[JBoss Messaging] - Re: Machine with Two LAN Card -Not able to receive message
by Craig2007
Hello Everybody
It seems i have not pasted the actual exception in the previous post.
Below is the Configuration Details of that machine(With TWO LAN Cards)
i got the below output after executing ifconfig in SUSE Linux
starahdsat:/opt/test # ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:DB:2F:24:F9
inet addr:10.0.18.101 Bcast:10.0.18.255 Mask:255.255.255.0
inet6 addr: fe80::219:dbff:fe2f:24f9/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:7876 errors:0 dropped:0 overruns:0 frame:0
TX packets:15737 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:516182 (504.0 Kb) TX bytes:23280180 (22.2 Mb)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:80:C8:04:6E:39
inet addr:172.19.6.7 Bcast:172.19.6.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fe04:6e39/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9697 errors:0 dropped:0 overruns:0 frame:0
TX packets:1598 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:860343 (840.1 Kb) TX bytes:250335 (244.4 Kb)
Interrupt:10 Base address:0xbc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:373 errors:0 dropped:0 overruns:0 frame:0
TX packets:373 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42085 (41.0 Kb) TX bytes:42085 (41.0 Kb)
Let me post the exception .
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=15 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=24 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=12 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=31 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=56 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=16 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=18 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=32 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=20 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=18 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=32 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=24 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=28 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=5 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=32 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=3 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=cause
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Throwable field=cause<<-reading Object
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading circular definition reference=3
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=detailMessage
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Throwable field=detailMessage<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=60 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[1]=java.lang.Exception
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Exception
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[2]=org.jboss.aop.DispatcherConnectException
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.DispatcherConnectException
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[3]=org.jboss.aop.NotFoundInDispatcherException
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.NotFoundInDispatcherException
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=oid
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.NotFoundInDispatcherException field=oid<<-reading Object
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=isException
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=sessionId
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.remoting.InvocationResponse field=sessionId<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=34 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0
ERROR 2007-Apr-09 03:20:17 Caught Exception:
org.jboss.aop.NotFoundInDispatcherException: Object with oid: -2147483646 was not found in the Dispatcher
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:85)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:127)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:1008)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:857)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:541)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:172)
at org.jboss.remoting.Client.invoke(Client.java:589)
at org.jboss.remoting.Client.invoke(Client.java:581)
at org.jboss.jms.client.delegate.DelegateSupport.invoke(DelegateSupport.java:111)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateSessionDelegate(StateCreationAspect.java:101)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect1.invoke(StateCreationAspect1.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ConnectionAspect.handleCreateSessionDelegate(ConnectionAspect.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:130)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
at org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:255)
at org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
at com.tcs.retail.framework.messaging.core.consumer.MsgConsumer.consumeProcess(MsgConsumer.java:144)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.createConsumer(MessageReceiver.java:201)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.activateNormalConsumers(MessageReceiver.java:97)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.receive(MessageReceiver.java:45)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.main(MessageReceiver.java:280)
ERROR 2007-Apr-09 03:20:17 MsgConsumer : Exception Occured
Exception Cause --> org.jboss.jms.client.container.ExceptionInterceptor(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.container.ClientLogInterceptor(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.JBossConnection(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.JBossConnection(org.jboss.jms.util.MessagingJMSException: Caught exception)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035856#4035856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035856
19 years
[JBoss Seam] - page action not called when login-required=
by rlhr
hello,
I try to achieve the following behavior. When a user want to see his account, he will be directed an account page that depends on certain user information.
The account page is in the restricted area that requires login.
So when the user click on a "View account" link, I'd like to go first to the login page and then have the accountAction.outcome method called (This methods return string representing the outcome).
I have the following pages configuration
| <pages login-view-id="/public/login.xhtml">
|
| <page view-id="/restricted/*" login-required="true"/>
|
| <page view-id="/account.xhtml" action="#{accountAction.outcome}" login-required="true" />
|
| ...
| </pages>
|
The user access the account page by clicking on the following link:
| <h:outputLink value="account.xhtml">View Account</h:outputLink>
|
When clicking on that link, I get the login page, I can login properly but the action method is never called (so I don't go to the account page, but remain in the login page).
If I remove the login-required attribute, then the action is called properly (of course, there is no login in that case).
Is it possible to use both attributes "action" and "login-required" together?
If not, what would be a way to achieve this behavior?
Regards,
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035852#4035852
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035852
19 years
[Installation, Configuration & Deployment] - Re: JBoss hot deploy?
by jiangshachina
With the instruction below,
http://wiki.jboss.org/wiki/Wiki.jsp?page=HotDeployment
I find that I just need to modify some files (e.g. web.xml), JBoss would re-deploy the service.
Can I add jsp, class, ..., to the list on the matter?
Namely, when I modify jsp, class, ..., files, JBoss also can re-deploy service.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035851#4035851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035851
19 years
[JBossWS] - Re: WS-Security and certificate password
by PeterJ
I have a patch. It works. I could simply apply the patch in Subversion, but I would prefer to place the patch into JIRA and have someone on the JBossWS team apply the patch (especially since I changed the xsd file, not sure if that requires a new version number or what). But JIRA doesn't like me, no matter whether I use Firefox or IE. When I log in, I can see the list of projects in the left column, but in the right column, where I should see things such as my assigned JIRA tasks, I instead see this exception:
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- java.lang.NullPointerException at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchCount(LuceneSearchProvider.java:87) at com.atlassian.jira.portal.portlets.SavedFiltersPortlet.getCountsForFilter(SavedFiltersPortlet.java:52) at sun.reflect.GeneratedMethodAccessor832.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97) at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:67) at com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25) at org.apache.jsp.secure.views.dashboard_jsp._jspService(dashboard_jsp.java:1035) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:253) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) 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.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495) 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)
And if I go straight to this particular JIRA issue I am informed that I would have more options available if I first logged in.
Help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035849#4035849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035849
19 years
[JBoss jBPM] - Re: SessionFactory creation
by iantimothy
Hello. The SessionFactory would are referring to is part of Hibernate. You can read up on the Hibernate site how to create a SessionFactory.
For example, you could put the hibernate.cfg.xml file at the root of your classpath.
Then to get a SessionFactory, you can use this line of code:
SessionFactory sf = new Configuration().configure().buildSessionFactory();
There is also another way to get a SessionFactory.
In your jbpm.cfg.xml, there should be this line
<service name="persistence"
| factory="org.jbpm.persistence.db.DbPersistenceServiceFactory"/>
If there isn't, add it in between <jbpm-context></jbpm-context>
Add jbpm.cfg.xml to the root of your classpath.
You could then create a class with the a static field. i.e.:
private static final JbpmConfiguration jbpmConfiguration;
you can use a static initalizer in this class to create the JbpmConfiguration object.i.e.:
static {
| try {
| jbpmConfiguration = JbpmConfiguration.getInstance();
| } catch (Throwable ex) {
| throw new ExceptionInInitializerError(ex);
| }
| }
and write a static method to get this object.i.e.:
public static JbpmConfiguration getJbpmConfiguration() {
| return jbpmConfiguration;
| }
You could call this class something like JbpmUtil
You could use a listener to create an instance of this object when your application starts.
>From then on, when you need a SessionFactory, you can use these lines of code:
JbpmConfiguration jbpmConfig = JbpmUtil.getJbpmConfiguration();
| JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
| SessionFactory sessionFactory = jbpmContext.getSessionFactory();
Hopefully this helps. This is the way it worked for me to integrate jbpm, hibernate and my own application.
Hopefully some of the seniors can add to this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035848#4035848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035848
19 years