Best unofficial Apache Server developers community |
| |||||
| Jul 15, 2010 | |||||
|
Obele, Azubuko |
|
||||
Similar Threads
Curl giving “Invalid UTF-8 JSON” error from CouchDb although JSON is fine? Any ideas?
Hi there, this is probably a real noob problem but I am experiencing an issue where whenever I try to create a document on CouchDB using curl, I get an "Invalid UTF-8 JSON" error. The example I am trying to use is actually from O'Reilly's book "CouchDB: The Definitive Guide" and I am pretty sure that I have tried it before and got it to work. Here's the command: |curl-X PUT http://username:pass### @127.0.0.1:59...e54cc05947f18c8af -d '{"title":"There is Nothing Left to Lose","artist":"Foo Fighters"}' | The database albums exists and the username and password are correct. I have checked this with JSONLint and the JSON is valid and I am at a loss ... presumably there is an issue with the CouchDB server itself but it appears to be running correctly ... any ideas? This is driving me nuts! I am running CouchDB 0.11 on Windows 7. curl is installed and working correctly as far as I can tell. Sofa is working correctly and I can create documents via Sofa with no issues. Thanks, Andrew
Jettison/CXF/XMLBeans
I'm running into a problem in CXF marshalling a JSON response document
using the XMLBeansJSONProvider and Jettison. It seems to be related to the
Woodstox STAX implementation.
It looks like the MappedXMLStreamWriter expects a START_DOCUMENT event
that never occurs, as this line causes a NullPointerException:
public void writeEndElement() throws XMLStreamException {
if (stack.isEmpty()) throw new XMLStreamException("Too many
closing tags.");
à current = stack.pop().withProperty(current);
}
Since it looks like a problem with this STAX implementation, is there 1)
a recommended STAX implementation to use?, and 2) a way to configure this
in CXF?
Thanks,
Nate
Overriding ant <copy> task
Hi :
Im trying to modify the <copy> task so that if a token seen in the
file being copied, is undefined in teh <filterset>, the build will
fail..
( It will also list all teh undefined tokens encountered against the
corresponding file name )
1. Was there an way to do this without writing java code ?
2. I have already made the changes required in teh ant source code.
But I cant figure out how to execute my code.
I created a jar file with just the changed class files, and did a
<taskdef> with this jar file.
But none of my files got executed.
Since my class files were packaged just like teh original ant
classfiles, it appeard that ant ignored them completely thinking that
those class files have already been loaded.
Is there a way around it so that class files seen inside my jar file
will be picked up first and the remaining files will be resolved from
the original ant classloader
Thanks
--sony
Files being changed and packaged inside antfix.jar
apache-ant-1.8.1/src/main/org/apache/tools/ant/taskdefs/Copy.java
apache-ant-1.8.1/src/main/org/apache/tools/ant/types/FilterSet.java
apache-ant-1.8.1/src/main/org/apache/tools/ant/types/FilterSetCollection.java
apache-ant-1.8.1/src/main/org/apache/tools/ant/util/ResourceUtils.java
<taskdef name="copy2" classname="org.apache.tools.ant.taskdefs.Copy"
classpath="/path/to/antfix.jar"/>
Doesnt work :
<target name="try">
<copy2 file="srcfile" toFile="destfile">
<filterset begintoken="@" endtoken="#">
<filter token="TOK1" value="VAL1"/>
<filter token="TOK2" value="VAL2"/>
</filterset>
</copy2>
</target>
Glassfish overriding Tomcat 6.0.24 installation?
Hey guys (and gals). Interesting enough, I installed the Jave EE 5 JDK for windows. I then installed Tomcat 6.0.24, when I navigate to htp://localhost:8080 (which should be the default of Tomcat) I am getting the glassfish junk. How can I remove the glassfish? I don't believe that there is an option to not install glassfish. Any help would be greatly appreciated. - Josh
Overriding the Configuration class while simultaneously using XML config mapper files
This is a multi-part message in MIME format. Is it possible to override the configuration class and also use XML files? The SqlSessionFactoryBuilder class only allows you to pass in the Configuration instance when you aren't also passing in a Reader instance. The config DTD doesn't support specifying the Configuration class to use, so it seems you can either use XML to configure an instance of the standard Configuration class *or* you can use your own subclass of Configuration without using XML - but you can't use your own subclass with XML. Given the limits to Java annotations as discussed elsewhere, it seems necessary to be able to use XML config files while overriding the Configuration class.
Created: (SLING-1606) Please expose and org.apache.jackrabbit.core.security.* to allow overriding of
Please expose and org.apache.jackrabbit.core.security.* to allow overriding of UserManager interface and use of Authentication
Problem invoking a provider
Hi all, I have implemented a Provider for my web service but the request doesn't pass into my provider. To declare my provider I only have added there 2 lines before my class: @javax.xml.ws.WebServiceProvider(portName="HelloWorldSoapBinding", serviceName="HelloWorld") @javax.xml.ws.ServiceMode(value = javax.xml.ws.Service.Mode.MESSAGE) Is there no other thing to do? thanks a lot, Fabian.
How can I set concurrent policy for a provider?
I setup a provider service in activeMQ and want to offer 1000 requests at the same time. How can I set the thread policy for this provider?
question about package provider on Solaris
Hello,
Here is how I am trying to make sure sudo is installed on my solaris
boxes:
package {'sudo':
ensure => 'installed',
provider => 'blastwave',
adminfile => '/usr/local/etc/adminfile',
}
The package is installed, but every time puppetd executes, I get this:
notice: //base_server/Package[sudo]/ensure: created
It seems like the package provider is not seeing that sudo is already
installed….
How can I fix that?
Both my puppetmaster and puppetd are 0.25.5
Thanks,
Don
x-net] Creating a provider based on OpenSSL
Hi all, I'm currently investigating the possibility of implementing a JSSE provider wrapping OpenSSL. This has a couple of obvious advantages: - The onus of code maintenance and bug fixing in a security sensitive area is moved outside of Harmony. - New protocols can be integrated into the Harmony provider with minimal effort (updating dependencies rather than implementing them ourselves). Really I'm sending this mail as a heads up, but would be interested to know if anyone has any experience/opinions in this area. In particular, I'd be interested in ideas on: - the best way to setup OpenSSL as a dependency - precompile the libraries and make them available for download or compile them at build time on the user's machine. - how to tie in the Java x-net APIs to the OpenSSL APIs. Any comments/suggestions welcome. Regards, Oliver
Changing operation in ServiceMix CXF consumer --> provider
Hi,
When routing from ServiceMix CXF-BC consumer to ServiceMix CXF-BC
provider, need to call a different operation of CXF provider web service.
The application uses ServiceMix and Camel JBI component. Camel is used for
routing purpose only. The route is
CXF BC consumer ----> Camel ----> CXF BC provider
For example
operation: {http://example.org}hello
changed to
operation: {http://example.org}greet
I tried to set operation as a header in camel route but is not working.
<route>
<from uri="jbi:service:http://example.org/helloRouteBuilder"/>
<setHeader headerName="operationName">
<constant>greet</constant>
</setHeader>
<to uri="jbi:service:http://example.org/greetingService"/>
</route>
I know that this syntax is for Camel CXF endpoints. Will it work for
ServiceMix CXF components?
Anto
Created: (CAMEL-2906) ValueBuilder should provider the DSL for Predicate
ValueBuilder should provider the DSL for Predicate
Re: SPI-Fly and provider-configuration file names that are different than the abstract service clas
David, Have you had chance to take a look at the changes mentioned in ARIES-353? I can rename the main SPI-Fly project to something else than spi-fly-core/org.apache.aries.spifly.core and send updated pom.xml files if you like :). Thanks, Bartek 2010/7/8 Bartosz Kowalewski <kowalewski### @gmail.com>: Hi David, I've just created ARIES-353. It covers initial changes to be applied to to the SPI-Fly project structure. These changes transform SPI-Fly into a multi-module project. Once these changes are in SVN, I'll start contributing itests and other improvements. Thanks, Bartek 2010/6/29 David Bosschaert <david.bo### @gmail.com>: > Hi Bartek, > > On 25 June 2010 22:32, Bartosz Kowalewski <kowalewsk### @gmail.com> wrote: >> Hi David, >> >> I managed to make Eclipse Aspects/Weaving work inside a Pax Exam test. >> I can contribute this simple project with integration tests (of course >> after applying some clean-up) if you find it useful. I think that >> SPI-Fly requires a change in project structure anyway - it needs a >> parent project and a second subproject - spifly-itests. > > That would be greatly appreciated! > >> Some more comments on the SPI-Fly + AOP topic: >> 1. My understanding is that there's no single uniform mechanism for >> supporting AspectJ load-time weaving that would work in all OSGi >> containers. Due to the specifics of the OSGi world, container-specific >> mechanism are required. Am I right? For Equinox it's Equinox >> Aspects/Weaving and there's no such mechanism for Felix. This seems to >> be a really important disadvantage of using LTW in SPI-Fly. > > Yes - there is currently no general mechanism to support load-time > weaving in OSGi but this is something being worked on in the OSGi > Alliance so I expect that it will be possible in a standardized way in > the future. > >> 2. The problem with adding aspects to bundles is still unresolved. I'm >> not sure if there's a clean solution for adding aspects to consumer >> bundles (or bundles that provide the API). Of course some ugly >> solutions can be applied (like my original headache causing fragment >> based one), but these are more intrusive that we might wish. > > Yes, this is still an open question. Maybe something for the AspectJ > mailing list. I will post there. > >> 3. I started implementing support for SPI-Consumer and SPI-Provider >> headers that contain some data helpful whne running the aspect, i.e. >> api name and provider name/version for the Provider header, and some >> mechanism to define consumer constraints/hints in the SPI-Consumer >> header that would help the aspect that will tweak the thread context >> classloader to make decisions about providers. These mechanisms are >> similar to the ones that you described in one of your e-mails. >> However, I feel that we should first solve #1 and #2 above and only >> then it makes sense to continue with the implementation. > > cool stuff - looking forward to your contributions :) > > Best regards, > > David >
Created: (CAMEL-2989) provider an API to query available endpoints on a component
provider an API to query available endpoints on a component
Updated: (DERBY-4745) Custom Authentication Provider : ClassNotFoundException
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
EDAH-TALLY updated DERBY-4745:
Closed: (DERBY-4745) Custom Authentication Provider : ClassNotFoundException
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
Knut Anders Hatlen closed DERBY-4745.
Commented: (DERBY-4745) Custom Authentication Provider : ClassNotFoundException
[
https://issues.apache.org/jira/browse...1#action_12889811
]
Knut Anders Hatlen commented on DERBY-4745:
Created: (FELIX-2490) OBR repository provider should use lastModified value in xml and/or URL Connec
OBR repository provider should use lastModified value in xml and/or URL Connection lastModified to check whether to update cached index file
Updated: (DERBY-4745) Custom Authentication Provider : ClassNotFoundException
[
https://issues.apache.org/jira/browse...nels:all-tabpanel
]
EDAH-TALLY updated DERBY-4745:
| |||||
(48 lines) Jul 15, 2010 16:28
(59 lines) Jul 15, 2010 16:42