Best unofficial Apache Server developers community |
| |||||
| Aug 25, 2010 | |||||
|
Jim |
|
||||
| Tags: | |||||
Similar Threads
JAX-RS not working
Hi
I am unable to deploy JAX-RS and JAX-WS web services in Tomcat/JBoss.
I believe there is something wrong with the beans.xml file.
<jaxws:endpoint id="hello" implementor="#helloRest"
address="/Hello"/>
<jaxrs:server id="helloRest" address="/HelloRest">
<jaxrs:serviceBeans >
<ref bean="helloBean" />
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="helloBean" class="com.bn.ws.service.HelloRest" />
In the <jaxws:endpoint> If I replace implementor="#helloRest" with
implementorClass="com.bn.ws.service.HelloRest" it starts working.
But I am not sure the same equivalent for <jaxrs:server>.
Any help please ?
-Attari
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!!
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. > >
Is FarmWarDeployer is working?
Hi, This is my first mail and If is not the correct palce then do inform me. I am using Tomcat7.0.0 and working on Linux/Debian machine. I am configuring the Tomcat for the Session object persistance. I have created two instances of tomcat7 in the same machine. First time I am using FarmWarDeployer. I only knows that using this we can deploy our application in one node in the tomcat cluster rather than diploying in all the nodes. Then after some reading what I did is : I created /tmp/war-deploy , /tmp/war-app , /tmp/war-listen and /war-temp directories. I started the tomcat. Here is the portion of the catalina.out file. 6 Aug, 2010 12:46:37 PM org.apache.catalina.ha.deploy.FarmWarDeployer start INFO: Cluster deployment is watching /tmp/war-listen/ for changes. 6 Aug, 2010 12:46:37 PM org.apache.catalina.ha.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. I understood that FarmWarDeployer started to work. Now the following message is in the catalina.out in every 20 sec. INFO: check cluster wars at /tmp/war-listen 6 Aug, 2010 12:53:23 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen 6 Aug, 2010 12:53:43 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen 6 Aug, 2010 12:54:03 PM org.apache.catalina.ha.deploy.WarWatcher check Now when I copy my webapplication in the /war-deploy , /tmp/war-app , then there is no changes in the catalina.out log file. But when I copy my application in /tmp/war-listen/ directory following message appears in the log file : 6 Aug, 2010 1:01:56 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen 6 Aug, 2010 1:01:56 PM org.apache.catalina.ha.deploy.FarmWarDeployer fileModified INFO: Installing webapp[/sessionReplication2] from /tmp/war-deploy/sessionReplication2.war 6 Aug, 2010 1:01:56 PM org.apache.catalina.ha.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app /sessionReplication2 6 Aug, 2010 1:02:16 PM org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /tmp/war-listen What is happening and what I am lacking to work FarmWarDeployer. Thanks
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.
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
HTTP SPI working for us?
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
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
working toward a release
Hi, I've been working to overhaul the build system to phase out the custom JavaScript build script in favor of Ant. I'm currently writing a blog post about the full process leading up to this, but suffice it to say that I now have an Ant script working that has most of the functionality of the original build script. A big advantage to using Ant instead of the custom build script is that it is now possible to create two important release artifacts: 1. A minimized JavaScript file which contains all of the JavaScript modules in scxml-js 2. A class file and JAR version of scxml-js that can be run standalone on the JVM The first artifact means that only one JavaScript file will need to be downloaded to a web page for scxml-js to compile SCXML documents on the fly, while the second artifact means that the user will only need to download a single JAR file in order to run scxml-js from the command line. Using ant also means that it will be possible to integrate the building of these artifacts with the test code that is already in place, so the built artifacts will be tested to ensure their robustness. Once this is complete, I think it should be technically feasible to roll out a (super pre-alpha) release suitable for end users, comprised of these two artifacts. What I'm wondering is whether there is anything I need to do (in terms of licensing, etc.) in order to publish a release? Let me know what you think. Thanks, Jake
Tomcat 6 64 bit and IIS 7 64 bit integration not working
Hi All I'm having troubles integrating IIS 7 64bit with Tomcat 6 64bit on a Window 7 OS. I'm also using 64bit isap_redirect.dll. The tomcat logs have no info in regards to the IIS connection. The IIS server returns an HTTP 500.0 - Internal Server error. With the following detailed error message Module IsapiFilterModule Notification AuthenticateRequest Handler chemalert Error Code 0x80070001 Requested URL http://localhost:80/chemalert Physical Path C:\CA-Intranet\Tomcat\webapps\chemalert Logon Method Anonymous Logon User Anonymous Any suggestions please? Thanks Twinkle
Fallback configuration not working
In my ivy.xml I have: defaultconfmapping="default->@,sources(),javadoc()" and below a dependency: <dependency org="org.springframework" name="spring" rev="2.5.6" conf="default"/> I am getting this error: [NOT FOUND ] org.springframework#spring;2.5.6!spring.jar(javadoc) (554ms) ==== central: tried http://repo1.maven.org/maven2/org/spr...2.5.6-javadoc.jar :::::::::::::::::::::::::::::::::::::::::::::: :: FAILED DOWNLOADS :: :: ^ see resolution messages for details ^ :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.springframework#spring;2.5.6!spring.jar(javadoc) :::::::::::::::::::::::::::::::::::::::::::::: I would expect the javadoc dependency to be ignored since it does not exist. Regards, Panayiotis
Working example MyBatis 3.0 web application
http://mybatis.googlecode.com/svn/sub-projects/contact_manager The development stack is stripes+guice+mybatis+hsqldb+junit4+mockito. It's using a couple of new features: - package level configuration by convention available in the programmatic config API - and the new SqlSessionManager (available in the current snapshot and will be in the next release) Feel free to check it out and build the war file. Only have to drop it into any container and you are good to go. We have changed it from pgSql to an in memory DB (hsqldb) to make life even easier. More to come! When I get a chance I will add a few more simple table to show joins and other common features. MyBatis Team
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
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
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.
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
Basic authentication not working
Server version: Apache/2.2.16 (Unix) - running on Ubuntu 10.04 I am trying to protect a directory using basic authentication and the user is being continuously prompted for the password but it is never accepted - Apache logs message similar to below:- [Tue Aug 24 11:23:14 2010] [error] [client xx.xx.xx.xx] user username: authentication failure for "/path/to/script.php": Password Mismatch, referer: http://www.example.com/path/to/index.php .htaccess directives are below:- AuthUserFile /path/to/.htpasswd AuthType Basic AuthName "Restricted Area" Require valid-user These are the checks I have done:- 1) Ensured the password is correctly stored in /path/to/.htpasswd (tried with both crypt and MD5 encryption) 2) Both .htaccess and .htpasswd have read perms for the web process (files owned by root with -rw-r-r- permissions) 3) All directories above the location of the .htpasswd and .htaccess files have 755 permissions i.e. drwxr-x-rx 4) This is the list of modules loaded by Apache:- Loaded Modules: core_module (static) authn_file_module (static) authn_default_module (static) authz_host_module (static) authz_groupfile_module (static) authz_user_module (static) authz_default_module (static) auth_basic_module (static) include_module (static) filter_module (static) deflate_module (static) log_config_module (static) env_module (static) setenvif_module (static) version_module (static) mpm_prefork_module (static) http_module (static) mime_module (static) status_module (static) autoindex_module (static) asis_module (static) cgi_module (static) negotiation_module (static) dir_module (static) actions_module (static) userdir_module (static) alias_module (static) rewrite_module (static) so_module (static) php5_module (shared) Syntax OK Anybody have any ideas/suggestions? Many thanks in advance Rich
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
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.
how do i get working card #
Aug 13, 2010 Customized 404 is not working Aug 9, 2010 ServerAlias doesn't seem to be working Aug 6, 2010 Mod rewrite not working? Aug 23, 2010 rewrite is not working at all Jul 14, 2010 flash not working in friendly url Jul 7, 2010 RewriteLog not working (apparently) Aug 17, 2010 Halp! I created working code! Aug 15, 2010 Kerberos working on the command line, not via apache Jun 4, 2010 Local Apache Stop Working Suddenly (Windows) Jul 26, 2010 | |||||
(50 lines) Aug 25, 2010 21:00
(74 lines) Aug 25, 2010 23:03
(84 lines) Aug 26, 2010 07:30
(142 lines) Aug 26, 2010 10:37
(157 lines) Aug 27, 2010 17:31
(191 lines) Aug 29, 2010 18:28
(210 lines) Aug 30, 2010 09:23
(239 lines) Aug 30, 2010 10:06
(255 lines) Aug 31, 2010 00:52
(300 lines) Sep 1, 2010 00:58
(12 lines) Sep 1, 2010 07:28
(39 lines) Sep 1, 2010 09:40
(291 lines) Sep 1, 2010 09:41
(358 lines) Sep 1, 2010 15:44