[Resin-interest] Build error on Solaris 10

2006-10-06 Thread Anoop K Achuthan
Hi,
   I'm trying to build resin-pro-3.0.21 on Solaris 10(sparc).
resin-pro-3.0.19 was compiled
successfully. But using the same configure command, I'm getting build
errors when I build
3.0.21.

Comparing the two build outputs, I noticed that 3.0.21 build command is
trying to produce
64 bit code, though I didn't specify the compiler flags while configuring.

--
resin-pro-3.0.19 < cc -g -DPOLL -D__SOLARIS__ -DHAS_JVMTI -DHAS_JVMDI
-DRESIN_HOME=\"/downloads/resin-pro-3.0.19\" -I/usr/local/include
-I/usr/java/include -I/usr/java/include/solaris -I../common
-DCPU=\"sparc\" -DOS=  -c  std.c

resin-pro-3.0.21> cc -g -DPOLL -DB64 -D__SOLARIS__ -DHAS_JVMTI
-DHAS_JVMDI -DRESIN_HOME=\"/downloads/resin-pro-3.0.21\"
-I/usr/local/include -I/usr/java/include -I/usr/java/include/solaris
-I../common -DCPU=\"sparcv9\" -DOS=  -xarch=v9  -c  std.c
-

Any help would be appreciated.


Thanks,
Anoop

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


[Resin-interest] Quercus - preg_replace problem

2006-10-24 Thread Anoop K Achuthan
Hi,

I use the following code to manipulate a URL to insert a port number.

---
http://example.com/test";;
 $pattern = "/(http:\/\/)([^\/]+)\/(.*)/i";
 $replacement = "$1$2:81/$3";
 echo preg_replace($pattern, $replacement, $entry_id);
?>
---

When I run the above code using command line php, I get the output as :
 http://example.com:81/test

But when using quercus, the reg expression does not match. Is this a bug
with
quercus or a problem with the reg expression used?

Thanks,
Anoop



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


Re: [Resin-interest] Quercus - preg_replace problem

2006-10-24 Thread Anoop K Achuthan
Hi,
   Please ignore the previous mail. preg_replace is working well.

Thanks,
Anoop

Anoop K Achuthan wrote:
> Hi,
> 
> I use the following code to manipulate a URL to insert a port number.
> 
> ---
>   $entry_id = "http://example.com/test";;
>  $pattern = "/(http:\/\/)([^\/]+)\/(.*)/i";
>  $replacement = "$1$2:81/$3";
>  echo preg_replace($pattern, $replacement, $entry_id);
> ?>
> ---
> 
> When I run the above code using command line php, I get the output as :
>  http://example.com:81/test
> 
> But when using quercus, the reg expression does not match. Is this a bug
> with
> quercus or a problem with the reg expression used?
> 
> Thanks,
> Anoop
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 


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


[Resin-interest] quercus - problem with file_exists function

2006-10-25 Thread Anoop K Achuthan
Hi,
   I'm using quercus to rum wordpress. When I upload and image, quercus
throws a
Null pointer Exception at file_exists function.


java.lang.NullPointerException
 at com.caucho.quercus.lib.file.FileModule.file_exists(FileModule.java:862)
 at
_quercus._wp_22dadmin._inline_22duploading__php.execute(usr/local/resin/webapps/wp-2-0-4/wp-admin/inline-uploading.php:92)
 at com.caucho.quercus.page.QuercusPage.executeTop(QuercusPage.java:122)
 at
com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:244)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
 at com.caucho.filters.RewriteFilter.doFilter(RewriteFilter.java:120)
 at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
 at
net.bisonsystems.atomstore.AtomStoreUpdateFilter.doFilter(AtomStoreUpdateFilter.java:186)
 at
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
 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:516)
 at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
 at java.lang.Thread.run(Thread.java:595)
---


Thanks,
Anoop

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


[Resin-interest] resin 3.1 problem

2006-10-31 Thread Anoop K Achuthan
Hi,
   I upgraded resin to 3.1(using resin-pro-3.1.s061026 snapshot). After
installing,
when I start resin I get the following error:
---
Oct 31, 2006 8:42:39 PM com.caucho.vfs.OpenSSLFactory 
WARNING: java.lang.UnsatisfiedLinkError: no resinssl in java.library.path
java.lang.UnsatisfiedLinkError: no resinssl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.caucho.vfs.OpenSSLFactory.(OpenSSLFactory.java:538)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.caucho.server.port.Port.createOpenssl(Port.java:382)
--

'libresinssl.so' is present in libexec dir and I tired setting
java.library.path when starting
resin, but no luck. Any help would be appreciated.

Thanks,
Anoop

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


Re: [Resin-interest] resin 3.1 problem

2006-11-02 Thread Anoop K Achuthan
Hi,
   I tried starting resin by using :
# java
-Djava.library.path='/usr/openwin/lib:/usr/local/new-resin/libexec' -jar
lib/resin.jar

The error I was getting earlier is not there now. But it shows another
exception :
-
[01:32:09.968] https listening to *:443
[01:32:09.992] java.lang.NullPointerException
[01:32:09.992]  at
com.caucho.vfs.OpenSSLFactory.setTcpNoDelay(OpenSSLFactory.java:399)
[01:32:09.992]  at com.caucho.server.port.Port.bind(Port.java:762)
[01:32:09.992]  at
com.caucho.server.cluster.Server.bindPorts(Server.java:1091)
[01:32:09.992]  at com.caucho.server.cluster.Server.start(Server.java:1041)
[01:32:09.992]  at
com.caucho.server.cluster.Cluster.startServer(Cluster.java:667)
[01:32:09.992]  at
com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:429)
[01:32:09.992]  at com.caucho.server.resin.Resin.start(Resin.java:596)
[01:32:09.992]  at com.caucho.server.resin.Resin.initMain(Resin.java:1002)
[01:32:09.992]  at com.caucho.server.resin.Resin.main(Resin.java:1189)
-

I'm not getting any clue.

-Anoop



Anoop K Achuthan wrote:
> Hi,
>I upgraded resin to 3.1(using resin-pro-3.1.s061026 snapshot). After
> installing,
> when I start resin I get the following error:
> ---
> Oct 31, 2006 8:42:39 PM com.caucho.vfs.OpenSSLFactory 
> WARNING: java.lang.UnsatisfiedLinkError: no resinssl in java.library.path
> java.lang.UnsatisfiedLinkError: no resinssl in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> at java.lang.Runtime.loadLibrary0(Runtime.java:822)
> at java.lang.System.loadLibrary(System.java:992)
> at com.caucho.vfs.OpenSSLFactory.(OpenSSLFactory.java:538)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at com.caucho.server.port.Port.createOpenssl(Port.java:382)
> --
> 
> 'libresinssl.so' is present in libexec dir and I tired setting
> java.library.path when starting
> resin, but no luck. Any help would be appreciated.
> 
> Thanks,
> Anoop
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 


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


Re: [Resin-interest] resin 3.1 problem

2006-11-03 Thread Anoop K Achuthan
I'm using OpenSSL 0.9.8a. It is working well with resin-3.0.21.

Regards,
Anoop

Stephen P. Bouzan wrote:
> What openssl libraries are you using?  Around Resin 3.0.18 they switch
> to openssl 0.9.8 so you might want to check that.  I ran into problems
> getting Resin to start up with SSL support, but I am running on Windows.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Anoop K Achuthan
> Sent: Thursday, November 02, 2006 12:45 AM
> To: General Discussion for the Resin application server
> Subject: Re: [Resin-interest] resin 3.1 problem
> 
> Hi,
>I tried starting resin by using :
> # java
> -Djava.library.path='/usr/openwin/lib:/usr/local/new-resin/libexec' -jar
> lib/resin.jar
> 
> The error I was getting earlier is not there now. But it shows another
> exception :
> 
> -
> [01:32:09.968] https listening to *:443
> [01:32:09.992] java.lang.NullPointerException
> [01:32:09.992]  at
> com.caucho.vfs.OpenSSLFactory.setTcpNoDelay(OpenSSLFactory.java:399)
> [01:32:09.992]  at com.caucho.server.port.Port.bind(Port.java:762)
> [01:32:09.992]  at
> com.caucho.server.cluster.Server.bindPorts(Server.java:1091)
> [01:32:09.992]  at
> com.caucho.server.cluster.Server.start(Server.java:1041)
> [01:32:09.992]  at
> com.caucho.server.cluster.Cluster.startServer(Cluster.java:667)
> [01:32:09.992]  at
> com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:4
> 29)
> [01:32:09.992]  at com.caucho.server.resin.Resin.start(Resin.java:596)
> [01:32:09.992]  at
> com.caucho.server.resin.Resin.initMain(Resin.java:1002)
> [01:32:09.992]  at com.caucho.server.resin.Resin.main(Resin.java:1189)
> ----
> -
> 
> I'm not getting any clue.
> 
> -Anoop
> 
> 
> 
> Anoop K Achuthan wrote:
>> Hi,
>>I upgraded resin to 3.1(using resin-pro-3.1.s061026 snapshot).
> After
>> installing,
>> when I start resin I get the following error:
>>
> 
> ---
>> Oct 31, 2006 8:42:39 PM com.caucho.vfs.OpenSSLFactory 
>> WARNING: java.lang.UnsatisfiedLinkError: no resinssl in
> java.library.path
>> java.lang.UnsatisfiedLinkError: no resinssl in java.library.path
>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
>> at java.lang.Runtime.loadLibrary0(Runtime.java:822)
>> at java.lang.System.loadLibrary(System.java:992)
>> at
> com.caucho.vfs.OpenSSLFactory.(OpenSSLFactory.java:538)
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:164)
>> at com.caucho.server.port.Port.createOpenssl(Port.java:382)
>>
> 
> --
>> 'libresinssl.so' is present in libexec dir and I tired setting
>> java.library.path when starting
>> resin, but no luck. Any help would be appreciated.
>>
>> Thanks,
>> Anoop
>>
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>
>>
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 


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


Re: [Resin-interest] Install pro 3.0.19+ on Solaris 10 and QA Question

2006-11-12 Thread Anoop K Achuthan
Hi,
I've been successful in installing resin-pro-3.0.19.20 and 21 on
Solaris 10. The server in which I installed resin is a Sun Fire T1000.
By default
resin configure script will generate the Make file for 64 bit
compilation. If you want
to compile it as 32 bit, then you should specify the configure option
"--enable-64bit=no".

If you are getting "wrong ELF class" error, then add the path to your
correct library version path to LDFLAGS. For example, in my server there
are both
32bit and 64 bit version of same libraries. So if I want to compile resin to
generate 32bit binaries, then I have to add the path to 32 bit libraries
to LDFLAGS.

I couldn't successfully set up  Resin 3.1 with openssl support. With out
openssl support it is working.

-Anoop



Thomas Moorer wrote:
> Hi,
> 
> Has anyone been able to configure,make install pro versions > 3.0.19
> on Solaris 10? I have tried .20, .21, the current snap and 3.1 snap
> and all of them give me flaky configure or make errors (well that's
> real specific isn't it?). I am getting JNI errors, due to illegal
> flags being passed in the configure scrip and some ssl errors too
> (from memory something like wrong ELF library). I apologize for being
> vague, but I don't have access to the error messages right now and I
> just wanted to send a message to the list mainly to see if anyone
> else has experienced the problem and hopefully knows of a solution.
> 
> BTW, when the resin folks to QA testing what are the target platforms
>  you test on (Linux versions, Solaris versions, Windows version)?
> Just curious if you are doing install testing on Solaris 10 without
> errors.
> 
> Thomas ~ ~ ~  Thomas Moorer ~
> www.sleepycatsolutions.com ~ 
> ~
> 
> 
> 
> ___ resin-interest
> mailing list resin-interest@caucho.com 
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 


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


[Resin-interest] Help with Caucho bugtrack

2006-12-01 Thread Anoop K Achuthan
Hi,
   I had reported a bug using Caucho bugtrack system.
http://bugs.caucho.com/view.php?id=1442

The ticket was closed with resolution "fixed". The product version with
problem was Resin 3.1.0. According to the ticket history,
the issue is fixed in version 3.1.0. Does this mean Caucho couldn't
reproduce the error? I am experiencing the same error with the latest
snapshot too. I couldn't find any note/comment in the ticket. Also I'm not
able to add any note too. Any idea how to proceed in this situation?

Regards,
Anoop

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


Re: [Resin-interest] php and file uploads

2007-02-14 Thread Anoop K Achuthan
Hi ,
I'm also experiencing the same problem after upgrading to Resin-3.1.0 .

Thanks,
Anoop
Markus Bopp wrote:

>hi again,
>
>I tried a couple of things to get uploads work with php and resin but I 
>am totally stuck.
>there are resources that say I should enable resin to allow uploads in 
>resin.conf, so I did.
>
>additionally I added all the upload-specific stuff into my webapps' web.xml
>but I can't still upload anything. the $_FILES var shows that there is a 
>file upload (temp_name, size and stuff)
>but there is no temp-file created in "WEB-INF/upload/" or anywhere on 
>the drive.
>
>the behaviour is the same for wamp and lamp stacks.
>
>below is my web.xml. In resin.conf I only added
>
>
>
>inside the web-app-default tag.
>
>Thanks for your help. I really appreciate it!
>Markus
>
>web.xml:
>http://caucho.com/ns/resin";>
>  
> servlet-class="com.caucho.quercus.servlet.QuercusServlet">
>
>  
>[EMAIL PROTECTED]
>my_email_username
>my_email_password
>c:/tmp
>c:/tmp
>1
>16M
>16M
>  
>  iso-8859-1
>  false
>
>  
>  
>  jdbc/mysql
>  
>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
>
>jdbc:mysql://localhost:3306/joomla?useUnicode=true&characterEncoding=UTF-8
>root
>test1234
>  
>
>
>
>  
>



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


Re: [Resin-interest] contentType='x-application/xslt' - meaning hijacked?

2007-02-19 Thread Anoop K Achuthan
Hi John,
   You can write a Response Filter  which  sets the Content type of your 
choise.
The filter could be added as the last filter in the chain to make sure 
that no other
filter is changing it's content type.

-Anoop

John Steel wrote:

>test.jsp here http://www.caucho.com/resin-3.1/doc/xslt-filter.xtp shows 
>you need to add this and the filter to the web-app in order for it to 
>trigger resin to performing the transformation. I'm having an issue 
>based on that example where basically I need to also control the 
>contentType for real, i.e. "text/html", "text/xml" etc.
>
>How can I do this whilst still using the xsl filter please?
>The problem is in the stylesheet, if I change method="xml" to 
>method="html" below the contentType in the HTTP response toggles between
>"Content-Type: text/xml; charset=UTF-8" and "Content-Type: text/html; 
>charset=UTF-8"
>
>  method="xml"
>   
>doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
>   doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
>
>I want to retain the method="xml" line but have it served as html so the 
>browser doesn't complain about missing stylesheets. But of course, as 
>soon as I try to set the contentType in the JSP I find I must leave it 
>at 'x-application/xslt' or the filter won't be applied.
>
>  
>



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


Re: [Resin-interest] PHP and UTF-8

2007-03-13 Thread Anoop K Achuthan
Hi MexIQ ,
  I'm not sure about this solution. But you can try setting LANG 
environment variable
like , export LANG=ja_JP.utf8 and restarting resin.

-Anoop


MexIQ wrote:

>Thank you Markus, It is not matter of the file encoding because the
>problem also happened with my database results (using mysql 5). If I
>run mysql from console it display correctly the Japanese text, but
>when displaying it on the browser not.
>
>So, I tried other way around. I installed Tomcat, php-cgi and java-php
>bridge and now all my applications are running without any problem and
>without having to configure any file.
>
>I'll continue testing caucho and quercus on other port because I think
>it can be useful on the future. So any configuration tip it would be
>welcome.
>
>Thank you!
>
>On 3/12/07, Markus Ken Baron-Moriyama <[EMAIL PROTECTED]> wrote:
>  
>
>>Hi,
>>I tried out this configuration:
>>  >   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
>>
>>  UTF-8
>>
>>  
>>
>>and the php:
>>>   $charset = "UTF-8";
>>   header("Content-Type: text/html; charset=".$charset);
>>   echo "";
>>   $var = utf8_encode("バリューパック"); //Japanese text
>>   echo utf8_decode($var);
>>   echo "";
>>?>
>>
>>and it works for me with the correct Japanese output.
>>I am using Resin 3.0.23 with JDK 1.5 on Win XP. Are you sure that your
>>utf8Test.php is really in UTF-8? As default, I think japanese files are
>>created with EUC-JP on linux, so maybe you will have to convert the file
>>first.
>>
>>Best regards,
>>markus
>>
>>
>>MexIQ MexIQ wrote:
>>
>>
>>>Maybe I'm doing something else wrong... I added at the default resin-web.xml:
>>>
>>>  
>>>ISO-8859-1
>>>  
>>>
>>>And I had the same results.
>>>
>>>My directory structure is:
>>>
>>>/WEB-INF/web.xml
>>>/utf8Test.php
>>>
>>>I need something else?
>>>
>>>I'm sorry to ask, but I have been looking on the wiki and the web and
>>>I don't find what I need. Do you know what part of the documentation I
>>>have to read?
>>>
>>>thank you.
>>>
>>>On 3/11/07, MexIQ MexIQ <[EMAIL PROTECTED]> wrote:
>>>
>>>  
>>>
Thank you Sun,

I have in my WEB-INF/web.xml
ISO-8859-1

I will try to add it to resin-web.xml and see what happen...

I will reply...

On 3/11/07, sun baoming <[EMAIL PROTECTED]> wrote:



>official document says in your web.xml or resin-web.xml :
>
>
>http://caucho.com/ns/resin";>
> 
> servlet-class="com.caucho.quercus.servlet.QuercusServlet">
> 
> 
>
>ISO-8859-1
> 
>
> 
>
>give it a try.
>
>when i used  this with chinese encoding ,maybe the same as your problem, in
>my experience it never worked .
>
>2007/3/10, MexIQ MexIQ < [EMAIL PROTECTED] >:
>
>  
>
>>(Sorry to send it again, but I used other email account and I was not
>>sure if it was received).
>>
>>Hello everyone, I was always expecting to have JAVA and PHP together
>>(I develop in both languages and I wanted a simple and fast way to run
>>my applications in just one server and one port and taking advantage
>>of my java codes). I wanted to give caucho a look and I tried to run a
>>small system buy I'm having some problems trying to get some special
>>characters to display.
>>
>>I made this test:
>>
>>>   $charset = "UTF-8";
>>   header("Content-Type: text/html; charset=".$charset);
>>   echo "";
>>   $var = utf8_encode("バリューパック"); //Japanese text
>>   echo utf8_decode($var);
>>   echo "";
>>?>
>>
>>I think it have to display it as the original text. But it just
>>display the UTF-8 charset on the screen:
>>
>>バリューãƒ'ック
>>
>>If I comment the line: header("Content-Type: text/html;
>>
>>
>>
>charset=".$charset);
>
>  
>
>>and manually I select "UTF-8" encoding, the correct (original) text is
>>displayed.
>>
>>I'm using firefox in linux, but I tested also with I.E. and firefox
>>(windows) from other computer.
>>
>>Maybe I have something wrong in my configuration.
>>It is not just Japanese, I also tested with latin characters and was
>>the same thing.
>>
>>By the way, do you know if Quercus will add the Multi-byte functions?
>>
>>And... sure! I would like to help Quercus to grow...
>>___
>>resin-interest mailing list
>>resin-interest@caucho.com
>>
>>
>>
>>
>http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>___
>resin-interest mailing list
>resin-interest@caucho.com
>http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
>  
>
>>>___
>>>resin-

[Resin-interest] How to set Content-MD5 header

2007-03-26 Thread Anoop K Achuthan
Hi,
   Is there any configuration option in Resin-3.1 similar to
"ContentDigest" directive in Apache to set the HTTP/1.1 Content-MD5
response header ?

Thanks,
Anoop


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