Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

HTTP SPI working for us?

RE: WSS4JInInterceptor more lax in enforcing actions when encountering message containing a SOAP Fault
(69 lines)
2.2.10 next week?
(11 lines)
Jul 29, 2010
Glen Mazza
Glen Mazza
Team, Jitendra Kotamaraju of the Metro team recently created[1] a
JAXWS-Grizzly-HTTP SPI[2] (Service Provider Interface, I guess) that
allows
for a programmatic change of the underlying servlet container used for the
Endpoint class (Grizzly instead of Jetty in our case.)  

I haven't tested it on CXF 2.3, but he claims this should work on any
JAX-WS
2.2 runtime.  Is this portion (the HTTP SPI) of JAX-WS 2.2 already
finished
in the upcoming CXF 2.3, i.e., this should work for us?

Thanks,
Glen

[1]
http://weblogs.java.net/blog/jitu/arc...ax-ws-22-http-spi
[2]
https://jax-ws-commons.dev.java.net/g...ttpspi/index.html




Reply
Tags: teamclassendpoint
Messages in this thread
HTTP SPI working for us?
reply Re: HTTP SPI working for us?
(46 lines) Jul 29, 2010 21:04
reply Re: HTTP SPI working for us?
(55 lines) Jul 30, 2010 22:41
reply Re: HTTP SPI working for us?
(81 lines) Aug 11, 2010 11:17
reply Re: HTTP SPI working for us?
(62 lines) Aug 11, 2010 13:33
Similar Threads
DO NOT REPLY New: keep-alive is not working for tomcat with HTTP/1.1 when Connection header is not
https://issues.apache.org/bugzilla/show_bug.cgi?id=49431

           Summary: keep-alive is not working for tomcat with HTTP/1.1
                    when Connection header is not present
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: Manager application
        AssignedTo: d### @tomcat.apache.org
        ReportedBy: vinodsrid### @gmail.com


Created an attachment (id=25590)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25590)
The snoop behaviour when apache xmlrpc http client is used

I have configured the server.xml to have the following configuration

 <Connector port="11030" protocol="HTTP/1.1" 
               connectionTimeout="60000" maxThreads="150" 
               maxKeepAliveRequests="-1"
               redirectPort="11033" />


Using apache xmlrpc client scenario

Created: (DOSGI-72) DOSGI not working with HTTP Service
DOSGI not working with HTTP Service

svn commit: r956374 - in /httpd/httpd/trunk: modules/http/http_filters.c modules/http/http_request.c
Author: sf
Date: Sun Jun 20 16:17:23 2010
New Revision: 956374

URL: http://svn.apache.org/viewvc?rev=956374&view=rev
Log:
More trace logging

Modified:
    httpd/httpd/trunk/modules/http/http_filters.c
    httpd/httpd/trunk/modules/http/http_request.c
    httpd/httpd/trunk/server/request.c

Modified: httpd/httpd/trunk/modules/http/http_filters.c
URL:
http://svn.apache.org/viewvc/httpd/ht...374&view=diff

Working C example?
Hi, looking in the  http://activemq.apache.org/c-integration.html C
cross-client  implementations  
http://svn.apache.org/repos/asf/activemq/sandbox/openwire-c/ OpenWire  and

http://svn.stomp.codehaus.org/browse/stomp/trunk/c/ STOMP  C
implementations, I see only prototype code, which project would be most
easy
to get running though?

Does anyone have a working example or experience building one of the
prototype C implementations (possibly with brief build/run
instructions)???

It would be GREATLY appreciated! I need to get a JMS consumer/producer
going
using C, like yesterday!!




trying to ban IPs using htaccess - not working
I'm trying to ban certain IPs from visiting my site, so that they 
instead see a message saying "Your IP has been banned, email me if 
you think this is an error."  I've *almost* got it working -- when 
people visit URLs like
http://209.160.28.154/index.html
or
http://209.160.28.154/foo-does-not-exist
they see the "banned IP" message.  However, the problem is that if 
you try to access the front page:
http://209.160.28.154/
from a banned IP address, you see the "Apache Test Page for CentOS" 
page, instead of seeing the "banned IP" message.  Anybody recognize 
this problem or have an idea of what could be causing it?

In my httpd.conf file, I changed "AllowOverride None" to 
"AllowOverride All" in both the default <Directory /> tag and inside

the <Directory "/var/www/html"> tag -- I placed a modified copy of 
httpd.conf at:
http://209.160.28.154/httpd.conf
and in /var/www/html I placed a .htaccess file containing these lines:
 >>>
ErrorDocument 403 /banned_ip.php
order deny,allow
deny from 71.112.32.149
 >>>
and restarted the server.  (The page 
http://209.160.28.154/banned_ip.php shows the message you're supposed 
to see when connecting from a banned IP.  71.112.32.149 is my home 
machine IP which I've "banned" for testing purposes.)

So like I said, that almost works, where 
http://209.160.28.154/index.html gives the right error message, but 
http://209.160.28.154/ does not.  Any idea how to change is to that 
all URLs under http://209.160.28.154/ will give the "banned IP" 
message if connecting from a banned IP?

	-Bennett



Caching not working
Hi,

I have got a proxy running using ATS. The sole entry in remap.config is -

map http://localhost:8080/ http://localhost:8282/

However caching does not take place. Every query i make is redirected to
the
origin server. The contents of storage.config is -

/usr/local/trafficserver/cache 134217728

A cache.db file in that location exists. But, the value of the cache size
-
proxy.process.cache.bytes_total is shown as 0. What do I need to do to
make
caching work?

Thanks,
Pranav.


Re: anyone working on BCEL ?
On 24/05/2010, Mark Thomas <mar### @apache.org> wrote:
 On 24/05/2010 22:34, sebb wrote:
  > Is anyone working on - or wanting to work on - BCEL at present?


 Try the Jakarta dev list. BCEL isn't a commons component.

Duh -sorry!

  Mark


  >
  > I know that Findbugs are keen to get away from using their
patched version.
  >
  > I can do some tidying up of test cases and basic warnings if
that would help.
  >
  > There seem to have been a lot of fixes since 5.2, so it would
be good
  > to get a new release out.
  >

 > 
FileUpload not working
Hi guys,

I'm using the Apache Commons FileUpload lib and I'm getting this strange
behaviour in just one of my servers. All others work perfectly.

servletfileupload.parseRequest(request) always returns an empty list.

But if I check for:

ServletFileUpload.isMultipartContent(request)

This returns true. So, the list should not be empty.

I'm really stuck here. Any ideas?

Thanks,
Fernando




SSL Not working on tomcat 5.5.29
Hi All,

I am working on upgrading tomcat from 5.5.28 to 5.5.29 for one of the
applications. I see that the website renders and works fine in 5.5.29 on
port 8080 (non SSL) but with  SSL (port 8443) the website doesnot run at
all. When I try to see what's going on in Fiddle, I see 502 error. Also
nothing is written to the log flies. It is as if tomcat is not even
running
in port 8443.

Under tomcat 5.5.28, the site renders fine with SSL and non SSL.

Is there something I could be missing?

Regards,
Kareem




Group by is not working with Filter
Hello Everyone,

I am trying to execute below mentioned script, but it is throwing error.
Script is:

A = load 'ex_groupby' USING PigStorage(',') as (a1:int,a2:int,a3:int);
G1 = GROUP A by (a1,a2);
describe G1;
*D = Filter G1 by group.$0 > 1;*
dump D;

Error is :

java.lang.ClassCastException: java.lang.Integer cannot be cast to
org.apache.pig.data.Tuple
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POProject.getNext(POProject.java:389)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:276)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POProject.getNext(POProject.java:138)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POProject.getNext(POProject.java:276)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.GreaterThanExpr.getNext(GreaterThanExpr.java:72)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POFilter.getNext(POFilter.java:148)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:276)
        at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLocalRearrange.getNext(POLocalRearrange.java:259)
        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.runPipeline(PigMapBase.java:236)
        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:231)
        at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:53)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)

Any help would be appreciated.

Thanks,
Swati


Job working with CouchDB in Bristol, UK
Hi All,
	Sorry for the slightly spammy nature of this email. We've got some  
funding to do a project with some colleagues in Geography. They have  
some clever landslide modelling software that is used in St. Lucia and  
they would like to run it at higher scales (e.g. run 1000 simulations  
of a slope instead of 1) and they've teamed up with us to do that (the  
Bristol particle physics group is heavily involved in computing for  
the LHC, so this is small fry ;)). They're looking at about 5TB data/ 
year, so nothing too hairy. If they get other funding from the World  
Bank this could balloon significantly.

One of the requirements is that the simulation results can be  
replicated from Bristol to St. Lucia, and on to engineers mobile  
devices, since when a tropical storm hits they often loose network  
connection to the outside world, and it's at these times that the  
simulations are most useful. To me CouchDB (and/or geocouch) is the  
perfect fit for this, and some initial work agrees.

If this sounds interesting to you get in touch with me off list, or go  
to http://www.bris.ac.uk/boris/jobs/feeds/ads?ID=88530. The job advert  
is below.
Cheers
Simon

Postdoctoral Research Assistant: Grid Computing for Landslide Modelling
£29,853 - £33,600

This project will establish large-scale resource provisioning and
sophisticated data mining for landslide modelling for use in risk  
reduction.
It will couple Grid software, developed for the Large Hadron Collider,  
with
proven, cutting-edge software in the field of slope hydrology and
geotechnics.

You will develop the current proof of principle system. The new system  
will
include the following features: transparent use of large scale computing
resources; secure, transparent storage and access to data and  
appropriate
authentication and authorisation mechanisms with auditing, accounting  
and
charging mechanisms.

You will have experience of the Python scripting language, as well as
experience of Grid or Cloud computing. You will also have good  
knowledge of
metadata management and proven ability to deliver sustainable software  
in an
agile development environment.

The project will be carried out as a partnership between Particle  
Physicists
in the University of Bristol Department of Physics, and academics  
within the
School of Geographical Sciences.

If successful, you may be appointed either on a fixed term or a  
permanent
contract depending on the extent of your previous relevant research
experience. Further information can be found at
www.bristol.ac.uk/personnel/ftc/

For informal enquiries please contact Professor N.H Brook on (0117)  
954 6877
or e-mail: n.b### @bristol.ac.uk
Further details and application form can be found at
www.bristol.ac.uk/jobs
Alternatively you can e-mail recru### @bristol.ac.uk or telephone  
0117 954
6947, quoting reference number 15582.
The closing date for applications is 9.00am, Tuesday 24 August 2010.
Interviews date: week commencing Monday 6 September 2010.

Augeas working inconsistently
I’ve got this define.

    define sudoentry ($user, $host = "ALL", $command = "ALL", $tag =
false, $runas = "ALL") {
      $sudo_changes = $tag ? {
        false => [
          "set spec[user = '$user']/user $user",
          "set spec[user = '$user']/host_group/host $host",
          "set spec[user = '$user']/host_group/command '$command'",
          "remove spec[user = '$user']/host_group/command/tag",
          "set spec[user = '$user']/host_group/command/runas_user $runas",
        ],
        # this isn't a real tag, but a sneaky hack to remove entries
        DELETE => "remove spec[user = '$user']",
        default => [
          "set spec[user = '$user']/user $user",
          "set spec[user = '$user']/host_group/host $host",
          "set spec[user = '$user']/host_group/command '$command'",
          "set spec[user = '$user']/host_group/command/tag $tag",
          "set spec[user = '$user']/host_group/command/runas_user $runas",
        ],
      }
      augeas { "sudo-$user":
        context => "/files/etc/sudoers",
        changes => $sudo_changes,
      }
    }

And I see the following.

If the entry isn’t in `sudoers` at all, this will add it:

    sudoentry { "rob":
      user => "rmcbroom”,
    }

If the entry is already there, this will add the “tag” to it:

    sudoentry { "rob":
      user => "rmcbroom",
      tag => "NOPASSWD",
    }

But if the user doesn’t exist and you try to add the entry with
“tag” set to something, it fails:

    err: //Sudoentry[rob]/Augeas[sudo-rmcbroom]/returns: change from
need_to_run to 0 failed: Save failed with return code false

Any guesses? Am I missing something?

(I realize with the define as written, there are potential uniqueness
problems for users with multiple entries, etc. It’s a work in progress.)







How to enable HTTPS when SSL is working ?
I am using ActiveMQ 5.3.2 embedded into my Spring based application. My
goal
is to configure ActiveMQ in order to be able to commnicate with it in
HTTPS
(requests and responses encapsulated in HTTPS).
The SSL part is done: i have a client test application connection with SSL
to activemq, and the communication is OK with certs on both sides.
When adding the HTTPS connector to activemq configuration, and trying with
my client app to connect using https://localhost:myport, it doesn't work
and
i get the following error:

handling exception: javax.net.ssl.SSLException: Unrecognized SSL message,
plaintext connection?

What could make my HTTPS connnection fails, although the SSL comuncation
seems ok ?

Thanks a lot if you have any clue, that's a very important bug for me
right
now. Thanks a lot for any help.

Max



tomcat /manager not working
I downloaded tomcat 5.5.29 and tried to access an application
http://<IP of Tomcat server>:8080/manager
which the doc says
http://tomcat.apache.org/tomcat-5.5-d...v/deployment.html
that it is included and deployed by default it did not showed me any
thing did I miss any thing.




Desperate for working AMQ-cpp for VS2005
I am having a terrible time with amq-cpp 3.2.x on VS2005. I used MPC to 
generate the missing VS 2005 files and everything rebuilt ok but there are

still problems:

in Debug mode my app fails to link with the error fatal error LNK1106: 
invalid file or disk full

in Release mode it linked but blew up with a core dump as soon as it tried

to use AMQ (not sure which call).

I think there may be still something wrong with my build env but I do not 
know what. I note that I have to link with the APR libraries. I thought 
these were C libraries so I took prebuilts from sourceforge. Do I need to 
do my own build of these as well. I am wondering if the C++ macros I am 
forced to use also have to be enabled here. They are:

  macros += WIN32
  macros += _WINDOWS
  macros += NOMINMAX

  macros += _SECURE_SCL_THROWS=1
  macros += _SECURE_SCL=1
  macros += _CRT_SECURE_NO_DEPRECATE
  macros += _CRT_NONSTDC_NO_DEPRECATE
  macros += _MBCS

  macros += _VC80_UPGRADE=0x0600

I assumed I wouldn't need these since the APR is coded in C. However, I 
now remember that VS does not provide a separate C compiler. One has to 
run C code through the C++ compiler so maybe these macros might have an 
effect.

I would really appreciate a release of AMQ-cpp with VS files for VS2005.

Regards,

Andrew Marlow


Puppet_Augeas: Working Examlples
Hello Puppeteers;

for those of us who are still suffering in the darkness of
Puppet_Augeas,
I put  a couple of working examples here:

http://projects.puppetlabs.com/projec...iki/Puppet_Augeas

and those of us who are no longer in the dark, please add there your
working examples - for enlightenment, you know :-)

Thank you;

Andrei





redeliveryPolicy not working for ActiveMQ 5.3.2
Hi,

I have set up redelivery policy in Spring for ActiveMQ but it seems like
it
doesn't work when I tested it.  The rolledback transaction still caused
the
message to be redelivered using the default settings e.g.
initialRedeliveryDelay=1000 and so on.  Does this actually ever worked or
is
there something wrong with my setup?

<bean id="xaConnectionFactory"
class="org.apache.activemq.ActiveMQXAConnectionFactory">
	<property name="brokerURL" value="tcp://localhost:61616"/>
	<property name="userName" value=""/>
	<property name="password" value=""/>
	<property name="redeliveryPolicy" ref="redeliveryPolicy" />
</bean>
	
<bean id="redeliveryPolicy"
class="org.apache.activemq.RedeliveryPolicy">
	<property name="maximumRedeliveries" value="6"/>
	<property name="initialRedeliveryDelay" value="5000"/>
	<property name="useCollisionAvoidance" value="true"/>
	<property name="useExponentialBackOff" value="true"/>
	<property name="backOffMultiplier" value="2"/>
</bean>

Thanks.




Trying to get Ant + JUnit working peaceably
Hello,

I'm attempting to learn Java at present and needed to add some
automation around my build and test cycle.  Coming from Ruby, I've got
a real test-first design discipline.

When I attempted to make a <junit> task call, I started getting this
error (I can hear eyes rolling...).


BUILD FAILED
/Users/stharms/java_card/build.xml:38: Problem: failed to create task
or type junit
Cause: the class
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/local/apache-ant-1.8.0/lib
        -/Users/stharms/.ant/lib
        -a directory added on the command line with the -lib argument

OK, I'm open to trying to step through the directions.

Most searches and archives suggested that it was paramount to make
sure that the junit library was in $ANTDIR/lib.

In this directory I have both:

junit-3.8.2.jar : retrieved with ant -f fetch.xml -Ddest=system
junit-4.9-SNAPSHOT-20100512-0041.jar : built from github

I then thought, OK let's go with the instructions strictly, what's in
the lib/optional subdir.  Nothing!  OK, so I used the fetch.xml task
to pull the jars into optional.

Re-try, same error.

OK, IRC.  A kind soul there pointed out that on his debian system this
class file was part of optionals.jar that "just worked" as part of
using apt-get ant-optionals.  Hm, regrettably that answer isn't
portable to my platform.

So, I'm stuck.  Can anyone help me get around this low point.  I'm
excited to start programming Java, but I've wound up programming Ant
most of the day -- not a bad thing, just not the shiny app I had
dreamt of :)

Thanks in advance, mysterious guru with the answer,

Steven


email not working in Cocoon 2.1.11 (I think)
Hi there,

I have a standard Java Mail demo example (attached) that when I run from 
the command line sends email correctly (using sendmail at the MTA).

However when I include it in a Cocoon application, and call it with the 
flow script it gives one the impression that it is sending email, but 
actually fails silently.
(I have the correct libs mail.jar and activation.jar in the 
application's lib directory.)

It used to work (I think) in Cocoon 2.1.6

Could there be any conflict that one is aware of with the new libs in 
2.1.11?

Paul