Re: [Resin-interest] pb with cxf / soap

2010-07-21 Thread Daniel López
I'm not sure how many jars/MB we are using with CXF as the same 
application is proof of concept for many other things and consumes 54 
jars/55MB :).
I chose CXF because we wanted to use some of it features that Axis did 
not have and I understood it was supposed to be Axis replacement, but 
that was a long time ago, so there is ample evidence that it has not 
happened ;).
Fortunately for me, we haven't needed to use that in production yet, so 
with a bit more of luck, when we have to, things will be a little bit 
clearer (haha fat chance :) ).

Good luck,
D.

El 21/07/2010 9:28, Mattias Jiderhamn escribió:
 I recently created a proof-of-concept service with CXF under Resin 4.
 Needed 12 jars/9,5 MB. Less than yours, but still a lot more than Axis
 1.4. I'm hoping there was something I had misunderstood...

 For production we're sticking with Axis 1.4. Where we cannot use
 Hessian, that is ;-)

 /Mattias

 Riccardo Cohen wrote (2010-07-20 20:21):
 I still think that 29Mb/66jars is too much when you need only soap.
 Axis 2 is also very heavy, axis 1.4 is 2Mb only :) ... bad choice
 probably because too old.



 Daniel López wrote:

 Hi there,

 Not sure if it helps, but I have an application that exposes a SOAP
 interface using CXF 2.1.9 and I just tested it to work under Resin 3.1.5
 and it fails under Resin 4.0.7 with a weird error.

 It's just a proof-of-concept application that I have, so I can't tell
 how well the combination really works, but at least I know those
 versions can work together.

 S!
 D.


 El 20/07/2010 8:29, Riccardo Cohen escribió:

 Thanks a lot Scott for your answer. This is the result:


 That looks like an error in the XML parser. You might try changing
 the javax.xml.stream.XMLInputFactory property to
 com.sun.xml.internal.stream.XMLInputFactoryImpl.

 When I add

 system-property
 javax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl/

in the conf of the webapp, the client seems to like it, and launches
 the request, but now the server has an err500 :

 javax.xml.stream.FactoryConfigurationError at
 javax.xml.stream.FactoryLoader.newClass(FactoryLoader.java:138) at
 javax.xml.stream.FactoryLoader.newInstance(FactoryLoader.java:76) at
 javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:157)

 at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:143)

 at
 org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:167)

 Also, you should avoid 3.2.x. Those are very old 4.0.x beta
 releases.

 I know but when I tried version 4.0.8 it claimed that it needs java
 1.6 which is not available on my macosx leopard intel 32bits :) (I've
 just bought snow leopard and may move to 4 soon)


 Is there any other very simple way to do soap client/server with
 Resin ? (my customer needs soap, if not I would have used
 hessian...)



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] pb with cxf / soap

2010-07-21 Thread Riccardo Cohen
I found some people using org.codehaus.stax2.XMLInputFactory2 or 
com.sun.xml.stream.ZephyrParserFactory, and tried it, it gave the same 
error. As I don't see these libraries is in the libs, this suggests that 
FactoryConfigurationError could also mean class not found ?

I tried to download jwsdp from sun site and copied all jars in lib, but 
it did not change.

I'll try in resin v4 because it seems easyer...
Thanks



Scott Ferguson wrote:
   
 In this case, though, it just looks like we need to find the right 
 classname for the XMLInputFactory, since it looks like the one I gave 
 isn't right for the JDK.
 
 -- Scott
 
 Daniel López wrote:
   
 Hi there,

 Not sure if it helps, but I have an application that exposes a SOAP
 interface using CXF 2.1.9 and I just tested it to work under Resin 3.1.5 
 and it fails under Resin 4.0.7 with a weird error.

 It's just a proof-of-concept application that I have, so I can't tell 
 how well the combination really works, but at least I know those 
 versions can work together.

 S!
 D.


 El 20/07/2010 8:29, Riccardo Cohen escribió:
 
 Thanks a lot Scott for your answer. This is the result:

   
 That looks like an error in the XML parser. You might try changing
 the javax.xml.stream.XMLInputFactory property to
 com.sun.xml.internal.stream.XMLInputFactoryImpl.
 
 When I add

 system-property
 javax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl/

  in the conf of the webapp, the client seems to like it, and launches
 the request, but now the server has an err500 :

 javax.xml.stream.FactoryConfigurationError at
 javax.xml.stream.FactoryLoader.newClass(FactoryLoader.java:138) at
 javax.xml.stream.FactoryLoader.newInstance(FactoryLoader.java:76) at
 javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:157)


   
 at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:143)
 
 at
 org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:167)



   
 Also, you should avoid 3.2.x. Those are very old 4.0.x beta
 releases.
 
 I know but when I tried version 4.0.8 it claimed that it needs java
 1.6 which is not available on my macosx leopard intel 32bits :) (I've
 just bought snow leopard and may move to 4 soon)


 Is there any other very simple way to do soap client/server with
 Resin ? (my customer needs soap, if not I would have used
 hessian...)


 Thanks
   
 
   
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Firewall Question

2010-07-21 Thread Aaron Freeman
Just wondering if anybody has ever worked through a scenario where you 
could automatically firewall off an IP address that requested a 
poisoned URL?

There is an attacker continuously scanning all of our servers for a 
specific URL, but from several different IPs.  It would be nice to be 
able to automatically firewall them off.

Has anybody done anything like that before?

Thanks,

Aaron


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Firewall Question

2010-07-21 Thread Jon Stevens
Having run very very large porn sites for a number of years, I've seen
all sorts of automated 'attacks' like that. If you don't have anything
responding to those url's, then you don't have any problems. =)

Anyway, why bother? Just ignore it. I'm sure you have better things to
do with your time than play whack-a-mole.

jon

On Wed, Jul 21, 2010 at 7:14 AM, Aaron Freeman aaron.free...@layerz.com wrote:
 Just wondering if anybody has ever worked through a scenario where you
 could automatically firewall off an IP address that requested a
 poisoned URL?

 There is an attacker continuously scanning all of our servers for a
 specific URL, but from several different IPs.  It would be nice to be
 able to automatically firewall them off.

 Has anybody done anything like that before?

 Thanks,

 Aaron


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] starting with v4 .. why is it so hard

2010-07-21 Thread Riccardo Cohen
I try my very little application with v4.0.8 on linux. I changed the 
resin.xml for the new version, and I have problems with datasource

I read http://caucho.com/resin-4.0/examples/db-jdbc/index.xtp and 
http://caucho.com/resin-4.0/examples/db-jdbc-ioc/index.xtp and none work.

with Named or Name

Adlservice.java:16:
cannot find symbol
symbol  : class Name
location: package com.caucho.config
import com.caucho.config.Name;
 ^

same with javax.webbeans.In:

Adlservice.java:15:
package javax.webbeans does not exist
import javax.webbeans.In;

Even the http://wiki.caucho.com/Mysql did not help
Is there any downloadable sample that work with v4.0.8 ?

Thanks

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] starting with v4 .. why is it so hard

2010-07-21 Thread Scott Ferguson
Riccardo Cohen wrote:
 I try my very little application with v4.0.8 on linux. I changed the 
 resin.xml for the new version, and I have problems with datasource
   
Thanks. Those pages are now updated.

-- Scott
 I read http://caucho.com/resin-4.0/examples/db-jdbc/index.xtp and 
 http://caucho.com/resin-4.0/examples/db-jdbc-ioc/index.xtp and none work.

 with Named or Name

 Adlservice.java:16:
 cannot find symbol
 symbol  : class Name
 location: package com.caucho.config
 import com.caucho.config.Name;
  ^

 same with javax.webbeans.In:

 Adlservice.java:15:
 package javax.webbeans does not exist
 import javax.webbeans.In;

 Even the http://wiki.caucho.com/Mysql did not help
 Is there any downloadable sample that work with v4.0.8 ?

 Thanks

   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Firewall Question

2010-07-21 Thread Aaron Freeman
Jon,

Right, so far that's been our tact.  This one particular attack is a bit 
annoying because it's inflating our logs.

I was just curious if this was a capability within Resin.  We wouldn't 
take the time to write a custom tag or anything like that to stop it.

Aaron


On 7/21/2010 10:27 AM, Jon Stevens wrote:
 Having run very very large porn sites for a number of years, I've seen
 all sorts of automated 'attacks' like that. If you don't have anything
 responding to those url's, then you don't have any problems. =)

 Anyway, why bother? Just ignore it. I'm sure you have better things to
 do with your time than play whack-a-mole.

 jon

 On Wed, Jul 21, 2010 at 7:14 AM, Aaron Freemanaaron.free...@layerz.com  
 wrote:

 Just wondering if anybody has ever worked through a scenario where you
 could automatically firewall off an IP address that requested a
 poisoned URL?

 There is an attacker continuously scanning all of our servers for a
 specific URL, but from several different IPs.  It would be nice to be
 able to automatically firewall them off.

 Has anybody done anything like that before?

 Thanks,

 Aaron


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

  

 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest






___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Firewall Question

2010-07-21 Thread Jon Stevens
Disk space is cheap and your logs auto rotate. Hopefully you use a
tool like 'grep' (aka: Splunk) to get the important bits (aka: stack
traces) out of your logs.

jon


On Wed, Jul 21, 2010 at 12:47 PM, Aaron Freeman
aaron.free...@layerz.com wrote:
 Jon,

 Right, so far that's been our tact.  This one particular attack is a bit
 annoying because it's inflating our logs.

 I was just curious if this was a capability within Resin.  We wouldn't
 take the time to write a custom tag or anything like that to stop it.

 Aaron


 On 7/21/2010 10:27 AM, Jon Stevens wrote:
 Having run very very large porn sites for a number of years, I've seen
 all sorts of automated 'attacks' like that. If you don't have anything
 responding to those url's, then you don't have any problems. =)

 Anyway, why bother? Just ignore it. I'm sure you have better things to
 do with your time than play whack-a-mole.

 jon

 On Wed, Jul 21, 2010 at 7:14 AM, Aaron Freemanaaron.free...@layerz.com  
 wrote:

 Just wondering if anybody has ever worked through a scenario where you
 could automatically firewall off an IP address that requested a
 poisoned URL?

 There is an attacker continuously scanning all of our servers for a
 specific URL, but from several different IPs.  It would be nice to be
 able to automatically firewall them off.

 Has anybody done anything like that before?

 Thanks,

 Aaron


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest






 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest