[JBoss Web Services] - Re: Disable DTD declaration
by Louis Kwan
Louis Kwan [http://community.jboss.org/people/bamball] created the discussion
"Re: Disable DTD declaration"
To view the discussion, visit: http://community.jboss.org/message/560681#560681
--------------------------------------------------------------
I have the exact same problem. The flow goes:
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(ln: 447)
org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(ln: 275)
At this point the ServiceLoader will find the impl class for EnvelopeBuilder, which is "org.jboss.ws.core.soap.EnvelopeBuilderDOM". This class uses "org.jboss.wsf.common.DOMUtils" to parse the SOAP envelope, which has this: (ln: 95)
String[] resolvers = { "org.jboss.ws.core.utils.JBossWSEntityResolver", "org.jboss.util.xml.JBossEntityResolver" };
I can't see how this can be easily configured as the "org.jboss.wsf.common.DOMUtils" class has hard-coded the EntityResolvers to be "org.jboss.ws.core.utils.JBossWSEntityResolver" or "org.jboss.util.xml.JBossEntityResolver" (which the latter would be used if both are available). Both of these would read an inputSource when entities are defined. (e.g. read a file)
After a fair bit of digging I think either you:
(1) implement filters to block / filter ENTITY requests on the way in.
(2) Define your own "org.jboss.ws.core.soap.EnvelopeBuilder" impl class, which can be done by overriding "META-INF/services/org.jboss.ws.core.soap.EnvelopeBuilder" file in "jbossws-core.jar", in which you can specify your own DOMUtils with a custom EntityResolver.
Hope this helps.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/560681#560681]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[JBoss Messaging] - javax.jms.IllegalStateException: The durable subscription is already in use.
by Dipendra Chauhan
Dipendra Chauhan [http://community.jboss.org/people/dchauhan] created the discussion
"javax.jms.IllegalStateException: The durable subscription is already in use."
To view the discussion, visit: http://community.jboss.org/message/561078#561078
--------------------------------------------------------------
Hi,
I am getting the following exception.
What could be the proposed solution to resolve this issue?
-------------------------------------------------------
2010-08-11 20:13:52.558,DBG,COM, Server,ionRecreator,Attempting to recreate topic subscriber session.,
2010-08-11 20:13:52.558,DBG,COM, Server,ionRecreator,Created topic subscriber session.,
2010-08-11 20:13:52.573,ERR,COM, Server,ionRecreator,SessionRecreator->run(): Error recreating session.,
2010-08-11 20:13:52.573,ERR,COM, Server,ionRecreator,The durable subscription is already in use. DurableSubscription[clientId=ID:1 selector=((DEST_ID = 000) OR (DEST_ID IS NULL)) AND ( location LIKE % 000,% )]
*javax.jms.IllegalStateException: The durable subscription is already in use*. DurableSubscription[clientId=ID:1 selector=((DEST_ID = 000) OR (DEST_ID IS NULL)) AND ( location LIKE % 000,% )]
at org.jboss.mq.server.JMSTopic.addSubscriber(JMSTopic.java:93)
at org.jboss.mq.server.ClientConsumer.addSubscription(ClientConsumer.java:156)
at org.jboss.mq.server.JMSDestinationManager.subscribe(JMSDestinationManager.java:596)
at org.jboss.mq.server.JMSServerInterceptorSupport.subscribe(JMSServerInterceptorSupport.java:171)
at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:157)
at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:643)
at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:177)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:188)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
at java.lang.Thread.run(Thread.java:619)
-------------------------------------------------------------
Thanks,
Dipendra
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/561078#561078]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months