[Resin-interest] Debian install still broken in 4.0.30

2012-08-25 Thread Alex Sharaz
 And installing 4.0.30 over previous release still barfs at the fact that 
the resin user already exists.
Rgds
Alex

-
sip:924110...@sip.callwithus.com
**
To view the terms under which this email is 
distributed, please go to 
http://www2.hull.ac.uk/legal/disclaimer.aspx
**___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Using JA-SIG's Central Authentication Service (CAS) with resin

2010-04-29 Thread Alex Sharaz
Hi,

I'm looking to use CAS with resin 4.0.x. Anyone done this already? If so,
some pointers to useful docn would be appreciated 
Rgs
Alex



smime.p7s
Description: S/MIME cryptographic signature
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Problems finding jar files in orbeonweb application

2009-03-09 Thread Alex Sharaz
Thanks
For this,
I could have sworn that the app-default.xml was in there. Then again
maybe it slipped out when i moved over to using a watchdog configuration
supporting multiple VMS
I'll check
alex

-Original Message-
From: resin-interest-boun...@caucho.com
[mailto:resin-interest-boun...@caucho.com] On Behalf Of Emil Ong
Sent: 09 March 2009 17:19
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Problems finding jar files in orbeonweb
application

Hi Alex,

It sounds like your app-default.xml is not getting included in your
resin.conf, which has those classloaders by default.  You can either
import it as is done in the default resin.conf (which is probably best)
or add the class loaders to a web-app-default in resin.conf.

Take care,
Emil

On Sun, Mar 08, 2009 at 02:20:58PM -, Alex Sharaz wrote:
 
 I've been running orbeon xforms for a while now on one of my resin
servers.
 while I haven't had any problems with it, ther's a bit of
configuration that i
 have to do every time i install a new release and i'd really like to
avoid
 doing it.
 
 when the orbeon war is unpacked you end up with
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/
 2001/XMLSchema-instance
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://j
 ava.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 --
display-nameOrbeon Forms
3.7.0beta1+.200902170313/display-name
description
Orbeon Forms is an open source forms solution that
handles the
 complexity of forms typical of the
enterprise or government. It is delivered to standard
web
 browsers (including Internet Explorer,
Firefox, Safari and Opera) thanks to XForms and Ajax
technology,
 with no need for client-side software
or plugins. Orbeon Forms allows you to build fully
interactive
 forms with features that include
as-you-type validation, optional and repeated sections,
always
 up-to-date error summaries, PDF output,
full internationalization, and controls like
auto-completion,
 tabs, dialogs, trees and menus.
/description
 
 
 
 
 Now if i try and access the orbeon xforms applications i get error
messages
 about not finding any of the orbeon classes located in
WEB-INF/lib/*.jar and
 WEB-INF/lib/private/*.jar
 
 The solution is to do:-
 
 web-app
 !-- web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://
 www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation=http://java.sun.com/xml
 /ns/j2ee http://j
 ava.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 --
display-nameOrbeon Forms
3.7.0beta1+.200902170313/display-name
description
Orbeon Forms is an open source forms solution that
handles the
 complexity of forms typical of the
enterprise or government. It is delivered to standard
web
 browsers (including Internet Explorer,
Firefox, Safari and Opera) thanks to XForms and Ajax
technology,
 with no need for client-side software
or plugins. Orbeon Forms allows you to build fully
interactive
 forms with features that include
as-you-type validation, optional and repeated sections,
always
 up-to-date error summaries, PDF output,
full internationalization, and controls like
auto-completion,
 tabs, dialogs, trees and menus.
/description
 
 class-loader
library-loader path='WEB-INF/lib'/
library-loader path='WEB-INF/lib/private'/
library-loader path='/var/web/ext-webapp'/
compiling-loader path='WEB-INF/classes'/
  /class-loader
 
  .. rest of war file
 
 So I know i can't use the class-loader statement if I've got
version=2.4
 web-app argument. Silly question, how do in persuade orbeon that its
jar
 files are in WEB-INF/lib etc?
 
 Alex
 



*
 To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html


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



Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300
mailto:e...@caucho.com
http://blog.caucho.com/

Caucho: Reliable Open Source
-- Resin: application server
-- Quercus: PHP in Java
-- Java CanDI: contexts and dependency injection


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest*
To view the terms under which

[Resin-interest] Problems finding jar files in orbeon web application

2009-03-08 Thread Alex Sharaz

I've been running orbeon xforms for a while now on one of my resin servers. 
while I haven't had any problems with it, ther's a bit of configuration that i 
have to do every time i install a new release and i'd really like to avoid 
doing it.

when the orbeon war is unpacked you end up with

web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://j
ava.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 --
   display-nameOrbeon Forms
   3.7.0beta1+.200902170313/display-name
   description
   Orbeon Forms is an open source forms solution that handles the 
complexity of forms typical of the
   enterprise or government. It is delivered to standard web 
browsers (including Internet Explorer,
   Firefox, Safari and Opera) thanks to XForms and Ajax technology, 
with no need for client-side software
   or plugins. Orbeon Forms allows you to build fully interactive 
forms with features that include
   as-you-type validation, optional and repeated sections, always 
up-to-date error summaries, PDF output,
   full internationalization, and controls like auto-completion, 
tabs, dialogs, trees and menus.
   /description




Now if i try and access the orbeon xforms applications i get error messages 
about not finding any of the orbeon classes located in WEB-INF/lib/*.jar and 
WEB-INF/lib/private/*.jar

The solution is to do:-

web-app
!-- web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://j
ava.sun.com/xml/ns/j2ee/web-app_2_4.xsd version=2.4 --
   display-nameOrbeon Forms
   3.7.0beta1+.200902170313/display-name
   description
   Orbeon Forms is an open source forms solution that handles the 
complexity of forms typical of the
   enterprise or government. It is delivered to standard web 
browsers (including Internet Explorer,
   Firefox, Safari and Opera) thanks to XForms and Ajax technology, 
with no need for client-side software
   or plugins. Orbeon Forms allows you to build fully interactive 
forms with features that include
   as-you-type validation, optional and repeated sections, always 
up-to-date error summaries, PDF output,
   full internationalization, and controls like auto-completion, 
tabs, dialogs, trees and menus.
   /description

class-loader
   library-loader path='WEB-INF/lib'/
   library-loader path='WEB-INF/lib/private'/
   library-loader path='/var/web/ext-webapp'/
   compiling-loader path='WEB-INF/classes'/
 /class-loader

 .. rest of war file

So I know i can't use the class-loader statement if I've got version=2.4 
web-app argument. Silly question, how do in persuade orbeon that its jar 
files are in WEB-INF/lib etc?

Alex
*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] logging host alias requests

2008-09-18 Thread Alex Sharaz
Hi,
I've got a number of dynamic hosts configured on a single server, some
of which provide the same service. E.g.

www.config.hull.ac.uk/scache.jsp provides a web browser auto proxy
config file for use by our users.

I then changed the url to be slb-config. to reflect the fact that
we're going through a hardware server load balancer. Needless to say our
helpdesk know better and stll put in www.config .. At the moment
I've got 2 dynamic hosts defined for this service. Just to keep both
running.

I've just added a host-aliaswww.config.hull.ac.uk/host-alias
statement to the slb-config dynamic host and deleted the other (dynamic)
server ( trying to reduce the number of identical files I've got to
change). Everything *seems* to be working but in the logs it doesn't
show which host name was used by the user to access the scache.jsp file.

I've tried changing the access log format variable definition in my
host.xml file to display the URI (%U) but it doesn't seem to make a
difference. I'm running 3.1.7a BTW

Alex

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.6

2008-05-07 Thread Alex Sharaz
Scott,
Just upgraded  1 test server to 3.1.6. Am using a watchdog conf file with
the following in it

watchdog id=commswiki
  resin-conf/var/web/conf/commswiki.conf/resin-conf
  !-- resin-root/var/web/resin-root --
  open-port address=150.237.47.46 port=80/
  jvm-arg-Xmx256m/jvm-arg

Had to comment out the resin-root... Config entry as it generated an error
when I started it 
Alex

On 06/05/2008 23:32, Scott Ferguson [EMAIL PROTECTED] wrote:

 Resin 3.1.6 is now available.  The 3.1.x tree is now the stable
 version and will contain only bug fixes.  New development will go into
 the 3.2.x tree.
 
 The release notes are at http://caucho.com/resin/changes/resin-3.1.6.xtp
 The detailed changelog is at http://caucho.com/resin/changes/changes.xtp
 
 1. Resin JSF
 
 Resin's JSF implementation has been promoted to the 3.1.6 release.
 The JSF implementation includes a large number of bug fixes and
 compatibility testing.  Resin's JSF includes to important
 enhancements: direct JSP implementation and Hessian serialization,
 both of which improve performance and reduce session size.
 
 2. Quercus (PHP)
 
 A large number of bug fixes are included in the Quercus release.
 We've moved our focus to a killer app strategy, where the first
 priority of Quercus is keeping up to date with new killer app
 versions.  The killer apps are currently:
 
Mediawiki 1.12 (wikipedia)
Drupal 6.0
phpBB3
Typo3
Wordpress 2.5.1
 
 3. HMTP (Hessian Message Transport Protocol)
 
http://caucho.com/resin/doc/hmtp.xtp
 
 HMTP is all about putting the interactive in RIA (rich interactive
 applications.)  It's a high-performance, bidirectional, asynchronous
 messaging system based on Hessian and XMPP (Jabber IM).   The current
 implementations are in Java and Flash.
 
 The underlying model is a Brokered Agent Messaging (bam), which is the
 XMPP model.  Essentially, it's a hub-and-spoke messaging model with
 dynamic services.  Agents are things like a chat login, or a chat room
 nickname, or a game's player.
 
 We think HMTP is the next step in web interactivity, leapfrogging over
 the interim Ajax/Comet techniques.
 
 
 4. scheduled-task
 
http://caucho.com/resin/doc/resources.xtp
 
 scheduled-task is a nice convenience bean for scheduling cron jobs.
 The full cron syntax is supported.  scheduled-task can start Runnable
 beans automatically, or invoke an EL method expression, or execute a
 URL (convenient for PHP cron scripts.)
 
 5. administration/reliability
 
http://caucho.com/resin/doc/resin-admin.xtp
 
 For Resin-Pro, the administration task now checks CPU usage every 60
 seconds, either logging the results, or logging a thread dump if the
 cpu is excessive.  It's possible to configure the admin to restart
 Resin if the CPU usage it too high as wel.
 
 6. logging
 
http://caucho.com/resin/doc/config-log.xtp
 
 We've cleaned up the logging a bit, making it easier to configure
 custom logging Handlers and Formatting tools.  In addition, we've
 split out log-handler as a separate configuration item, which
 configures the log handlers directly.  logger configures the
 Loggers.  (The older log is now discouraged since it combines both
 and is a bit confusing.)
 
 The logging has some new handlers: event:, jms:, and hmtp: which
 lets you publish logging messages to WebBeans events, JMS, and HMTP
 respectively.
 
 share and enjoy!
 
 -- Scott
 
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*


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


[Resin-interest] Problem with clusterping...

2008-02-14 Thread Alex Sharaz
Just tried to set up a ping config to email myseld as per this example
off the web site and get 

 

/var/web/conf/resin.conf:169: 'mail-to' is an unknown property of
'com.caucho.server.admin.PingThread'.

 

Example on web page is:-

 

 

resin xmlns=http://caucho.com/ns/resin;

   xmlns:resin=http://caucho.com/ns/resin/core;

  ...

  cluster id=web-tier

ping resin:type=com.caucho.server.admin.PingMailer

  urlhttp://localhost:8080/index.jsp/url

  urlhttp://localhost:8080/webapp/index.jsp/url

 

  mail-to[EMAIL PROTECTED]/mail-to

  mail-from[EMAIL PROTECTED]/mail-from

  mail-subjectResin ping has failed for server
${'${'}server.name}/mail-subject

/ping

...

  /server

/resin

 

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] p.s. ping config problem am running 3.1.s080211

2008-02-14 Thread Alex Sharaz
 

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Small problem with quercus

2008-02-01 Thread Alex Sharaz
I'm running 3 resin servers in a hardware load balanced configuration
that are configured to also run some quercus php apps and a number of
virtual hosts

In our halls of residence I've set up a restricted network our students
connect to by default. In order to gain access to the internet they
have to do a few things, ( apply windows updates, configure their
machine for 802.1x authentication etc..). If a user is on this
restricted network our dhcp server hands out the IP address associated
with a dns redirector program. This prog will either pass dns requests
to our real dns servers or hand back a fixed ip address. I've got it
configured so that it resolves any requests for  windows update related
sites and hands back the load balanced ip address of my resin cluster.

When used in conjunction with a few firewall rules it means that
whatever http/s host the client machine tries to access gets redirected
to the default-server I've got configured in resin. What the user sees
is a web page saying you are connected to a restricted network 
etc..

This all works just fine, except for the fact that I'm now seeing lots
of log entries of the form shown below. The file not found iis correct,
its not on our server because of the dns redirector.

Any way of sending back a valid Not Found code instead of this?
Suppose talking the quercus config out of resin-web.xml and putting it
into the webapp would cut things down a bit. Any other way?


Alex


javax.servlet.ServletException: java.io.FileNotFoundException:
/usr/web/default-server/VeohTV/campaignServer.php
[00:22:42.144]  at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:29
6)
[00:22:42.144]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[00:22:42.144]  at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:106)
[00:22:42.144]  at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
207)
[00:22:42.144]  at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:173)
[00:22:42.144]  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:229)
[00:22:42.144]  at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[00:22:42.144]  at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
[00:22:42.144]  at
com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[00:22:42.144]  at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[00:22:42.144]  at java.lang.Thread.run()V(Unknown Source)
[00:22:42.144] Caused by: java.io.FileNotFoundException:
/usr/web/default-server/VeohTV/campaignServer.php
[00:22:42.144]  at
com.caucho.vfs.JniFilePathImpl.openReadImpl(JniFilePathImpl.java:338)
[00:22:42.144]  at com.caucho.vfs.Path.openRead(Path.java:934)
[00:22:42.144]  at
com.caucho.quercus.parser.QuercusParser.parse(QuercusParser.java:284)
[00:22:42.144]  at
com.caucho.quercus.page.PageManager.parse(PageManager.java:201)
[00:22:42.144]  at
com.caucho.quercus.page.PageManager.parse(PageManager.java:180)
[00:22:42.144]  at com.caucho.quercus.Quercus.parse(Quercus.java:546)
[00:22:42.144]  at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:21
7)*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Small problem with quercus

2008-02-01 Thread Alex Sharaz
Ah! 
o.k. i'm running 3.0.25 on these servers.

i'll use the workaround until I upgrade the boxes. 
Alex


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sam
Sent: 01 February 2008 14:40
To: resin-interest@caucho.com
Subject: Re: [Resin-interest] Small problem with quercus

  [ ... ]

 Any way of sending back a valid Not Found code instead of this?
 Suppose talking the quercus config out of resin-web.xml and putting it
 into the webapp would cut things down a bit. Any other way?

 javax.servlet.ServletException: java.io.FileNotFoundException:
 /usr/web/default-server/VeohTV/campaignServer.php

That issue was fixed in 3.1.2:
http://bugs.caucho.com/view.php?id=1952

As a workaround, you can use rewrite-dispatch and not-found to match
the requests
and send a 404:
http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#not-found

-- Sam



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] new snapshot available

2008-01-14 Thread Alex Sharaz

When i try and make the 080111 snapshot I get 

make: *** No rule to make target `Makefile.am', needed by `Makefile.in'.  Stop.

Alex

-Original Message-
From: [EMAIL PROTECTED] on behalf of Scott Ferguson
Sent: Fri 11/01/2008 22:08
To: General Discussion for the Resin application server
Subject: [Resin-interest] new snapshot available
 
A new snapshot is available.  We've just finished week 4 of the 8- 
week release cycle for 3.1.5, so there's another 4 weeks to go.

The snapshot is still a bit unstable do to the configuration changes,  
but a number of people have been asking for it to check on some bug  
fixes.

The snapshot is also available using maven2 at http://caucho.com/m2- 
snapshot.  There's a wiki page at http://wiki.caucho.com/Maven2.

Also, the snapshot includes the struts2 integration with Resin's IoC  
injection.  The wiki page is at http://wiki.caucho.com/Struts2.

-- Scott


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

winmail.dat*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Problems with resin and orbeon xforms

2008-01-10 Thread Alex Sharaz
I'm running orbeon xforms 3.6 over resin 3.1.x and up till recently
everything was working just fine. I then upgraded resin from 3.1.4 to
3.1.s071222 as there were some quercus fixes that i wanted to make use
of.

After moving to the snapshot version 

 


Cannot find any provider supporting PBEWithMD5AndDES*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Problems with resin and orbeon xforms

2008-01-10 Thread Alex Sharaz
oops, sent it before i'd finished typing.

After moving to the snapshot version one of the apps started generating  
Cannot find any provider supporting PBEWithMD5AndDES errors.

A support person at Orbeon suggested that the problem might be associated with 
the java.ext.dirs system property not including  the jdkjre/lib/ext
 directory where the sunpkcs11.jar fiel resides.

I tried setting 
system-property 
java.ext.dirs=/usr/local/bea/jrockit-R27.4.0-jdk1.6.0_02/jre/lib/ext/
but it didn't make any difference.

Reverting back to resin-3.1.4 fixed whatever was wrong and everything started 
working again
Alex




-Original Message-
From: [EMAIL PROTECTED] on behalf of Alex Sharaz
Sent: Thu 10/01/2008 09:44
To: General Discussion for the Resin application server
Subject: [Resin-interest] Problems with resin and orbeon xforms
 
I'm running orbeon xforms 3.6 over resin 3.1.x and up till recently
everything was working just fine. I then upgraded resin from 3.1.4 to
3.1.s071222 as there were some quercus fixes that i wanted to make use
of.

After moving to the snapshot version 

 


Cannot find any provider supporting PBEWithMD5AndDES

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] anyone running resin 3 on a redhat 5.1 system?

2007-12-04 Thread Alex Sharaz
Chaps,

 

Just fired up my standard config on an RHEL 5.1 server. Seems to work,
but cpu load just sits at 100%, Kill of resin and it drops to .5%

 

Same setup as my RHEL4 servers same JDK /config  etc

 

Anyone seen this?

Alex

 

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] quercus config question

2007-09-27 Thread Alex Sharaz
Hi, 

I'm running MediaWiki 1.9.3 on a resin 3.1.2 system ( web.xml from the
webapps/wilki/WEB-INF directory below). While everything almost works (
only seem to have a problem with actually seeing uploaded images now) I
do have 1 major problem.

 

When you first connect to , or even access a new page it takes an age
before you actually see anything in your browser. Once you get to a page
there's no problem getting back to it.  Go away for a day or so and try
and access the server and the same thing happens again. It's as if
quercus is recompiling the php again. Where would i  look to see what's
going on?

 

The syslog file does have repeated occurrences of

 

java.lang.NullPointerException: 

[08:36:01.148]  at
com.caucho.quercus.lib.UrlModule.urlencode(UrlModule.java:191)

[08:36:01.148]  at
com.caucho.quercus.lib.UrlModule.urlencode(UrlModule.java:181)

[08:36:01.148]  at
_quercus._classes._Image__php$quercus_Image$fun_getTag.callMethod(_Image
__php.java:215)

[08:36:01.148]  at
com.caucho.quercus.env.QuercusClass.callMethod(QuercusClass.java:739)

[08:36:01.148]  at
com.caucho.quercus.env.ObjectExtValue.callMethod(ObjectExtValue.java:659
)

[08:36:01.148]  at
_quercus._classes._AlbumItem__php$quercus_AlbumItem$fun_getThumbnailTag.
callMethod(_AlbumItem__php.java:1675)

[08:36:01.148]  at
com.caucho.quercus.env.QuercusClass.callMethod(QuercusClass.java:688)

[08:36:01.148]  at
com.caucho.quercus.env.ObjectExtValue.callMethod(ObjectExtValue.java:637
)

[08:36:01.148]  at
_quercus._classes._Album__php$quercus_Album$fun_getThumbnailTag.callMeth
od(_Album__php.java:2965)

[08:36:01.148]  at
com.caucho.quercus.env.QuercusClass.callMethod(QuercusClass.java:688)

[08:36:01.148]  at
com.caucho.quercus.env.ObjectExtValue.callMethod(ObjectExtValue.java:637
)

[08:36:01.148]  at
_quercus._rss__php$fun_getThumbs.call(_rss__php.java:455)

[08:36:01.148]  at _quercus._rss__php.execute(_rss__php.java:161)

[08:36:01.148]  at
com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:119)

[08:36:01.148]  at
com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServl
et.java:123)

[08:36:01.148]  at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:35
0)

[08:36:01.148]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:91)

[08:36:01.148]  at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:103)

[08:36:01.148]  at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
159)

[08:36:01.148]  at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:175)

[08:36:01.148]  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:240)

[08:36:01.148]  at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)

[08:36:01.148]  at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)

[08:36:01.148]  at
com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)

[08:36:01.148]  at
com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)

[08:36:01.148]  at java.lang.Thread.run(Thread.java:595)

 

In it. Is there any quercus specific logging i can turn on to see what's
happening? Can i turn on some form of caching?

 

 

Alex

 

 

 

web-app xmlns=http://caucho.com/ns/resin;

  database jndi-name='jdbc/mediawiki'

driver
type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

  urljdbc:mysql://databases.hull.ac.uk:3306/comms_wiki/url

  userthisuser/user

  passwordandtheir password/password

/driver

  /database

 

  servlet-mapping url-pattern=*.php

 
servlet-class=com.caucho.quercus.servlet.QuercusServlet

init

  databasejdbc/mediawiki/database

  compiletrue/compile

  script-encodingISO-8859-1/script-encoding

  php-ini

sendmail_from[EMAIL PROTECTED]/sendmail_from

!--

   smtp_usernamemy_email_username/smtp_username

   smtp_passwordmy_email_password/smtp_password

 --

  /php-ini

/init

  /servlet-mapping

 

  welcome-file-listindex.php/welcome-file-list

/web-app

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] just tried the s070910 release of 3.1.2 pro wih quercus

2007-09-12 Thread Alex Sharaz
And i get the following message. Works find with 3.1.2 release
Alex


java.lang.ClassFormatError:
_quercus/_includes/_ProfilerStub__php$fun_wfProfileOut
: illegal attribute length (Code:239)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:122)
at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1
389)
at
com.caucho.loader.DynamicClassLoader.findClassImpl(DynamicClassLoader.ja
va:1259)
at
com.caucho.loader.DynamicClassLoader.loadClassImpl(DynamicClassLoader.ja
va:1161)
at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1
105)
at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1
090)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.caucho.quercus.page.ProPageManager.createPage(ProPageManager.java:14
5)
at
com.caucho.quercus.page.ProPageManager.compilePage(ProPageManager.java:9
0)
at
com.caucho.quercus.page.PageManager.parse(PageManager.java:193)
at
com.caucho.quercus.page.PageManager.parse(PageManager.java:158)
at com.caucho.quercus.Quercus.parse(Quercus.java:794)
at com.caucho.quercus.env.Env.include(Env.java:3334)
at
_quercus._StartProfiler__php.execute(usr/web/commswiki/webapps/wiki/Star
tProfiler.php:3)
at com.caucho.quercus.env.Env.include(Env.java:3338)
at
_quercus._includes._WebStart__php.execute(usr/web/commswiki/webapps/wiki
/includes/WebStart.php:69)
at com.caucho.quercus.env.Env.include(Env.java:3338)
at
_quercus._index__php.execute(usr/web/commswiki/webapps/wiki/index.php:1)
at
com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:119)
at
com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServl
et.java:146)
at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:35
3)*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Quercus and gallery 2.1

2007-05-22 Thread Alex Sharaz
Hi,
Well, it doesn't work with the latest bersion of gallery either.
Anything i can do to help track it down let me know
Alex


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sam
Sent: 21 May 2007 18:22
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Quercus and gallery 2.1

 Anyone running gallery2.1 successfully with resin-pro-3.1.1
 I had gallery 2.1 running successfully on a pre 3.1.1 release of 3.1.
 Having upgraded to 3..1 I now get loads of
 

usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
 7: Warning: Assertion !empty($key) failed

Bug report here:
http://bugs.caucho.com/view.php?id=1744

It may be that this is really a bug in gallery, perhaps the assertion
should not be failing.  Prior to 3.1.1, Quercus did not evaluate assert
expressions.

Of course, it could also be a bug in Quercus, a bug that causes the $key
to be empty when it should not be.

-- Sam



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] 304 status

2007-05-22 Thread Alex Sharaz
Sorry didn't phrase that properly. If a client makes a request for wpad.dat, is 
there any way of always returning a copy of the file instead of an http status 
304 message?
Alex

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: 22 May 2007 16:49
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] 304 status


On May 18, 2007, at 5:02 AM, Alex Sharaz wrote:


 Other times I get the 304 status code. We've got random occurrences  
 where setting a browser to auto detect proxy settings doesn't  
 work and i'm wondering if these occurrences could coincide with the  
 304 status codes I can see in the logs. I suppose the question is.  
 Can i reconfigure something to get rid of the 304 entries in the logs?

I'm a little confused.  I can add a bug report to allow filtering of  
304 in the logs, but I'm not sure if there's another issue you're  
reporting.

-- Scott


 Alex

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:resin-interest- 
 [EMAIL PROTECTED] On Behalf Of Scott Ferguson
 Sent: 17 May 2007 18:45
 To: General Discussion for the Resin application server
 Subject: Re: [Resin-interest] 304 status


 On May 17, 2007, at 10:02 AM, Jean-Francois Lamy wrote:

 I am trying to understand how resin, apache and proxies interact with
 respect to caching.

 I have a jsp page which is meant to be always dynamic; headers are
 used to
 prevent it from being cached.
 However, the page loads js, css, and various images, which I would
 like to
 be cached.

 Currently,  the browser (IE7) requests those items, and Resin
 returns 304
 (up-to-date) status.  The browser is NOT set to force request at
 each page.
 This generates a lot of requests, which are painful when going  
 through
 proxies.

 What are the headers for the JSP page?

 With no caching headers, Resin doesn't cache at all, i.e. no-cache is
 the default.  So the 304 is strange, unless the headers are telling
 Resin to cache.

 (Serge's recommendations are good ones for general understanding of
 HTTP caching, but the described behavior seems odd.)

 -- Scott

 Is there a recipe for forcing the JSP to always reload (my JSPs are
 served
 through a dispatching servlet which does an include, and therefore
 servlet
 is able manipulate the headers), and yet let the browser know that
 the js
 and css it has in cache are just fine ?

 Jean-François Lamy
 Technologies Teximus inc.
 www.teximus.com
 +1 514.878.1577 (Canada)
 +33(0) 8.70.44.49.02 (Europe)





 ___
 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** 
 ***
 To view the terms under which this email is distributed, please go  
 to http://www.hull.ac.uk/legal/email_disclaimer.html
 ** 
 ***___
 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*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] 304 status

2007-05-22 Thread Alex Sharaz
o.k. fair enough doesn't matter then 
many thanks
alex


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: 22 May 2007 17:11
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] 304 status


On May 22, 2007, at 8:59 AM, Alex Sharaz wrote:

 Sorry didn't phrase that properly. If a client makes a request for  
 wpad.dat, is there any way of always returning a copy of the file  
 instead of an http status 304 message?

The 304 is a response requested by the client, i.e. the client sends  
If-Modified-Since or If-None-Match headers.  If the wpad.dat  
hasn't changed, a caching-header-aware servlet will return a 304  
instead of the data.

Resin's FileServlet understands those headers, so will return a 304  
if the file hasn't changed.

-- Scott

 Alex

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:resin-interest- 
 [EMAIL PROTECTED] On Behalf Of Scott Ferguson
 Sent: 22 May 2007 16:49
 To: General Discussion for the Resin application server
 Subject: Re: [Resin-interest] 304 status


 On May 18, 2007, at 5:02 AM, Alex Sharaz wrote:


 Other times I get the 304 status code. We've got random occurrences
 where setting a browser to auto detect proxy settings doesn't
 work and i'm wondering if these occurrences could coincide with the
 304 status codes I can see in the logs. I suppose the question is.
 Can i reconfigure something to get rid of the 304 entries in the  
 logs?

 I'm a little confused.  I can add a bug report to allow filtering of
 304 in the logs, but I'm not sure if there's another issue you're
 reporting.

 -- Scott


 Alex

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:resin-interest-
 [EMAIL PROTECTED] On Behalf Of Scott Ferguson
 Sent: 17 May 2007 18:45
 To: General Discussion for the Resin application server
 Subject: Re: [Resin-interest] 304 status


 On May 17, 2007, at 10:02 AM, Jean-Francois Lamy wrote:

 I am trying to understand how resin, apache and proxies interact  
 with
 respect to caching.

 I have a jsp page which is meant to be always dynamic; headers are
 used to
 prevent it from being cached.
 However, the page loads js, css, and various images, which I would
 like to
 be cached.

 Currently,  the browser (IE7) requests those items, and Resin
 returns 304
 (up-to-date) status.  The browser is NOT set to force request at
 each page.
 This generates a lot of requests, which are painful when going
 through
 proxies.

 What are the headers for the JSP page?

 With no caching headers, Resin doesn't cache at all, i.e. no-cache is
 the default.  So the 304 is strange, unless the headers are telling
 Resin to cache.

 (Serge's recommendations are good ones for general understanding of
 HTTP caching, but the described behavior seems odd.)

 -- Scott

 Is there a recipe for forcing the JSP to always reload (my JSPs are
 served
 through a dispatching servlet which does an include, and therefore
 servlet
 is able manipulate the headers), and yet let the browser know that
 the js
 and css it has in cache are just fine ?

 Jean-François Lamy
 Technologies Teximus inc.
 www.teximus.com
 +1 514.878.1577 (Canada)
 +33(0) 8.70.44.49.02 (Europe)





 ___
 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* 
 *
 ***
 To view the terms under which this email is distributed, please go
 to http://www.hull.ac.uk/legal/email_disclaimer.html
 * 
 *
 ***___
 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** 
 ***
 To view the terms under which this email is distributed, please go  
 to http://www.hull.ac.uk/legal/email_disclaimer.html
 ** 
 ***___
 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*
To view the terms under which this email

[Resin-interest] Quercus and gallery 2.1

2007-05-21 Thread Alex Sharaz
Anyone running gallery2.1 successfully with resin-pro-3.1.1

 

I had gallery 2.1 running successfully on a pre 3.1.1 release of 3.1.

 

Having upgraded to 3..1 I now get loads of

 

usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed
usr/web/databases/webapps/gallery2/modules/core/classes/Gallery.class:60
7: Warning: Assertion !empty($key) failed

 

 

error messages

As I said, worked before.

 

 

Alex

 

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Cant connect to quercus.caucho.com

2007-03-12 Thread Alex Sharaz
Get 

500 Servlet Exception

java.lang.OutOfMemoryError: PermGen space

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] o.k. can get to quercus.caucho.com but now its wiki.caucho.com

2007-03-12 Thread Alex Sharaz
Get the following



500 Servlet Exception

java.lang.NoClassDefFoundError
at sun.reflect.GeneratedMethodAccessor635.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.caucho.quercus.program.CompiledClassDef.initClass(CompiledClassDef.j
ava:80)
at
com.caucho.quercus.env.QuercusClass.init(QuercusClass.java:114)
at com.caucho.quercus.env.Env.createQuercusClass(Env.java:2948)
at com.caucho.quercus.env.Env.createClassImpl(Env.java:2862)
at com.caucho.quercus.env.Env.createClassImpl(Env.java:2877)
at com.caucho.quercus.env.Env.findClass(Env.java:2828)
at com.caucho.quercus.env.Env.findClass(Env.java:2805)
at com.caucho.quercus.env.Env.getClass(Env.java:2924)
at
_quercus._includes._Wiki__php$quercus_MediaWiki$fun_checkInitialQueries.
callMethod(var/www/hosts/wiki.caucho.com/webapps/ROOT/includes/Wiki.php:
74)
at
com.caucho.quercus.env.ObjectExtValue.callMethod(ObjectExtValue.java:692
)
at com.caucho.quercus.env.Var.callMethod(Var.java:1023)
at
_quercus._index__php.execute(var/www/hosts/wiki.caucho.com/webapps/ROOT/
index.php:17)
at
com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:115)
at
com.caucho.quercus.servlet.ResinQuercusServlet.service(ResinQuercusServl
et.java:122)
at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:29
8)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:103)
at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
159)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:167)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:226)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:600)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:522)
at java.lang.Thread.run(Thread.java:595)*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.0 release

2006-12-26 Thread Alex Sharaz
Scott, many thanks for the official release of 3.1

I've installed it on a RHEL4 system with the BEA Jrockit JVM. 

Got all my ususal stuff working but sadly not Gallery2 or media wiki.
I've switched debug logging on and have what might be some useful
logging. Should I send it to the list or [EMAIL PROTECTED]

All the best for the new year 

Alex


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: 26 December 2006 17:56
To: General Discussion for the Resin application server;
[EMAIL PROTECTED]
Subject: [Resin-interest] Resin 3.1.0 release

Resin 3.1.0 is now available.  Keep in mind that 3.1.x is a  
development branch.  3.1.1 will have new features as well as bug  
fixes, so it is possible that 3.1.1 may introduce new bugs.

Main changes in 3.1.0:
   Requires JDK 1.5
   Servlet for JavaEE 1.5
   JSP for JavaEE 1.5
   Amber progress (almost, but not quite passing JPA)
   resin.conf refactoring for improved cluster configuration
   watchdog/startup changes
   web services configuration (as servlet)
   Quercus updates for PHP 6 (i18n), Java reflection

I) Watchdog/startup changes:

The most visible change is the Resin startup, particularly on Unix.
The wrapper.pl is now gone, replaced by a Java watchdog process.  The  
unix command-line startup is:

   unix java -jar resin-3.1.0/lib/resin.jar start

Or, for foreground, development work, just

   unix java -jar resin-3.1.0/lib/resin.jar

For different configuration files and servers, use

   unix java -jar lib/resin.jar -conf conf/myconfig.conf -server app- 
a start

Windows users can also use the new startup, but can still use the old  
httpd.exe.

Because the watchdog process is in Java, JDK command-line arguments  
now belong in the resin.conf.  This will be nice, since all the  
relevant configuration will now be in resin.conf.

II) resin.conf clustering changes.

We've reorganized the resin.conf to better handle multiple clusters.   
The most important use is for web-tier and app-tier load-balancing.   
Now, both the web-tier and the app-tier fit into the same resin.conf.

The old 3.1.0 syntax is still available as backward compatibility,  
but we encourage people to upgrade.

The basic structure is:

   resin xmlns=http://caucho.com/ns/resin;
 cluster id=app-tier
   server-default
  !-- common configuration for all servers in a cluster,  
like thread-max --
  http address=* port=8080/
  /server-default

  !-- server replaces srun --
  server id=app-a address=192.168.2.10 port=6800/

   host id=www.caucho.com
 !-- usual virtual host configuration --
   /host
 /cluster
   /resin

III) web services

Web services can now be configured as servlets (this is part of the  
Servlet 2.5 spec).  If the servlet-class implements @WebService, it  
will be treated as a web-service.  The class does not need to  
implement Servlet.  The lifecycle is the same as for a servlet, i.e.  
only a single, multithreaded instance (no pooling).

Resin allows a choice of protocols, including Hessian, Burlap, and  
REST.  So the configuration might look like:

servlet-mapping url-pattern=/hello/*
  servlet-class=example.HelloServiceImpl
   protocol type=hessian
 api-classexample.Hello/api-class
   /protocol
/servlet-mapping

IV) JSP and Servlet for JavaEE 5

See the specs. :)

The main new capabilities are @Resource injection and capabilities  
for the new JSF (i.e. %{foo}).

The @Resource injection is very nice.  It removes the requirement for  
most JNDI lookup, e.g.

public class MyServlet ... {
   @Resource(name=jdbc/db)
   private DataSource _dataSource;
   ...
}

Resin will inject the DataSource into the servlet before it calls the  
init() method.

V) @Resource for java.util.concurrent.Executor

In Resin you can use the @Resource to get access to Resin's thread  
pool for Executor-launched threads.  This means you can launch short- 
lived threads using Resin's thread pool.

However, you still need to be careful about lifecycle issues.  We  
haven't yet implemented an ExecutorService which would let Resin stop  
the thread on web-app restart automatically.  So you still need to  
have the destroy() method stop the thread.

class MyServlet {
   @Resource
   private Executor _executor;

   private void foo()
   {
 _executor.execute(new MyRunnableTask());
   }
}

VI) Resin 3.1.1 roadmap

The roadmap always changes, so take this as a rough guideline of  
intent.  We think the following will be ready for 3.1.1 (in about 12  
weeks or so)

   Amber/JPA
   SOAP/JAX-WS
   JSF
   more of EJB 3.0 (I'm not sure we'll get it done by 3.1.1)
   Quercus integration as scripting language for packages like  
Spring, Grails, etc.

We're aiming on JavaEE 5 by May.  I think that's probably optimistic,  
but it's our current target.

Share and Enjoy!


___
resin-interest mailing list
resin-interest@caucho.com

[Resin-interest] Quercus example apps that work

2006-12-18 Thread Alex Sharaz
Chaps,
Has anyone got an example Quercus app utilising a database that works?

I've got the latest resin 3.1 snapshot  and am trying to get
eithergallery2 or mediawiki to work. Needless to say I'm not having much
luck. I've got the standard hello world and a php info page to work
but nothing else really.

Alex
*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] problems with quercus and mediawiki onresin-3.0.22

2006-11-16 Thread Alex Sharaz
o.k. as son as 3.1 is out I'll give it a try on my server at home :-)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: 16 November 2006 16:50
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] problems with quercus and mediawiki
onresin-3.0.22


On Nov 15, 2006, at 9:18 AM, Alex Sharaz wrote:

 Just tried to install mediawiki on a 3.0.22 system

Thanks, I've just filed it as a bug report.

Though, Quercus development and fixes are going into the 3.1.x tree  
(3.1.0 should be in 2-3 weeks), so we'll be encouraging Quercus users  
to move to 3.1.0 when it's available.

-- Scott


 In webapps/wiki/WEB-INF I've got the following set up in resin- 
 web.xml.



 In the wii directory, I've also got a helloworld.php file.



 web-app xmlns=http://caucho.com/ns/resin;

 database jndi-name='jdbc/wiki'

  driver type=org.gjt.mm.mysql.Driver

 urljdbc:mysql://databases.hull.ac.uk:3306/comms_wiki/url

 userfred/user

 passwordfred/password

   /driver

 /database



   servlet-mapping url-pattern=*.php


 servlet-class=com.caucho.quercus.servlet.QuercusServlet

  init compile=true database=jdbc/wiki/

   /servlet-mapping



   welcome-file-listindex.php/welcome-file-list

 /web-app



 The helloworld.php example works just fine.



 However, when I try running ./wiki/config to init the app, I get









 java.lang.NullPointerException
 at
 com.caucho.quercus.module.StaticFunction.analyzeArguments 
 (StaticFunction
 .java:139)
 at
 com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215)
 at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java: 
 69)
 at
 com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java: 
 90)
 at
 com.caucho.quercus.program.BlockStatement.analyze 
 (BlockStatement.java:13
 2)
 at
 com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112)
 at
 com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254)
 at
 com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241)
 at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229)
 at com.caucho.java.gen.GenClass.generate(GenClass.java:120)
 at
 com.caucho.java.gen.JavaClassGenerator.generate 
 (JavaClassGenerator.java:
 273)
 at
 com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77)
 at
 com.caucho.quercus.page.PageManager.parse(PageManager.java:234)
 at
 com.caucho.quercus.page.PageManager.parse(PageManager.java:180)
 at com.caucho.quercus.Quercus.parse(Quercus.java:546)
 at
 com.caucho.quercus.servlet.QuercusServlet.service 
 (QuercusServlet.java:21
 7)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
 at
 com.caucho.server.dispatch.ServletFilterChain.doFilter 
 (ServletFilterChai
 n.java:106)
 at
 com.caucho.server.cache.CacheFilterChain.doFilter 
 (CacheFilterChain.java:
 209)
 at
 com.caucho.server.webapp.WebAppFilterChain.doFilter 
 (WebAppFilterChain.ja
 va:173)
 at
 com.caucho.server.dispatch.ServletInvocation.service 
 (ServletInvocation.j
 ava:229)
 at
 com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
 at
 com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
 at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
 at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
 at java.lang.Thread.run()V(Unknown Source)


 The database config statement is correct and I've checked that the
 database e xists and has valid access rights set up for the
 machine/userid I'm trying to run the wiki on

 Alex

 **

 ***
 To view the terms under which this email is distributed, please go  
 to http://www.hull.ac.uk/legal/email_disclaimer.html
 **

 ***___
 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*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] problems with quercus and mediawiki on resin-3.0.22

2006-11-15 Thread Alex Sharaz
Just tried to install mediawiki on a 3.0.22 system

In webapps/wiki/WEB-INF I've got the following set up in resin-web.xml.

 

In the wii directory, I've also got a helloworld.php file.

 

web-app xmlns=http://caucho.com/ns/resin;

database jndi-name='jdbc/wiki'

 driver type=org.gjt.mm.mysql.Driver

urljdbc:mysql://databases.hull.ac.uk:3306/comms_wiki/url

userfred/user

passwordfred/password

  /driver

/database

 

  servlet-mapping url-pattern=*.php

 
servlet-class=com.caucho.quercus.servlet.QuercusServlet

 init compile=true database=jdbc/wiki/

  /servlet-mapping

 

  welcome-file-listindex.php/welcome-file-list

/web-app

 

The helloworld.php example works just fine.

 

However, when I try running ./wiki/config to init the app, I get

 

 

 

 

java.lang.NullPointerException
at
com.caucho.quercus.module.StaticFunction.analyzeArguments(StaticFunction
.java:139)
at
com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215)
at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java:69)
at
com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java:90)
at
com.caucho.quercus.program.BlockStatement.analyze(BlockStatement.java:13
2)
at
com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112)
at
com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254)
at
com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241)
at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229)
at com.caucho.java.gen.GenClass.generate(GenClass.java:120)
at
com.caucho.java.gen.JavaClassGenerator.generate(JavaClassGenerator.java:
273)
at
com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77)
at
com.caucho.quercus.page.PageManager.parse(PageManager.java:234)
at
com.caucho.quercus.page.PageManager.parse(PageManager.java:180)
at com.caucho.quercus.Quercus.parse(Quercus.java:546)
at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:21
7)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:106)
at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
209)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:173)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:229)
at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
at java.lang.Thread.run()V(Unknown Source)
 

The database config statement is correct and I've checked that the
database e xists and has valid access rights set up for the
machine/userid I'm trying to run the wiki on

Alex

*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] problem with quercus,resin3.0.22 and mediawiki

2006-11-13 Thread Alex Sharaz








Just tried to install mediawiki on a 3.0.22 system

In webapps/wiki/WEB-INF Ive got the following
set up in resin-web.xml.



In the wii directory, Ive also got a
helloworld.php file.



web-app
xmlns=http://caucho.com/ns/resin

 database
jndi-name='jdbc/wiki'

driver
type=org.gjt.mm.mysql.Driver


urljdbc:mysql://databases.hull.ac.uk:3306/comms_wiki/url


userfred/user


passwordfred/password

 /driver

 /database



 servlet-mapping
url-pattern=*.php


servlet-class=com.caucho.quercus.servlet.QuercusServlet

 init
compile=true database=jdbc/wiki/

 /servlet-mapping




welcome-file-listindex.php/welcome-file-list

/web-app



The helloworld.php example works just fine.



However, when I try running ../wiki/config to
init the app, I get









java.lang.NullPointerException at com.caucho.quercus.module.StaticFunction.analyzeArguments(StaticFunction.java:139) at com.caucho.quercus.expr.FunctionExpr.analyze(FunctionExpr.java:215) at com.caucho.quercus.expr.UnaryExpr.analyze(UnaryExpr.java:69) at com.caucho.quercus.program.ExprStatement.analyze(ExprStatement.java:90) at com.caucho.quercus.program.BlockStatement.analyze(BlockStatement.java:132) at com.caucho.quercus.program.QuercusMain.generate(QuercusMain.java:112) at com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:254) at com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:241) at com.caucho.java.gen.BaseClass.generate(BaseClass.java:229) at com.caucho.java.gen.GenClass.generate(GenClass.java:120) at com.caucho.java.gen.JavaClassGenerator.generate(JavaClassGenerator.java:273) at com.caucho.quercus.gen.PhpGenerator.generate(PhpGenerator.java:77) at com.caucho.quercus.page.PageManager.parse(PageManager.java:234) at com.caucho.quercus.page.PageManager.parse(PageManager.java:180) at com.caucho.quercus.Quercus.parse(Quercus.java:546) at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:217) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:209) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at com.caucho.util.ThreadPool.run(ThreadPool.java:442) at java.lang.Thread.run()V(Unknown Source)



The database config statement is correct and Ive
checked that the database e xists and has valid access rights set up for the
machine/userid Im trying to run the wiki on

Alex








*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest