[Resin-interest] how to limit large log file?

2008-05-27 Thread askxuefeng
Hi all
  I found resin 3.1.5 generate large log file under
"$RESIN_HOME/log/jvm-runtime.log", is there any setting to limit its size?
Thanks!
 
  Michael
 
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] How to start Resin with specified user?

2007-02-27 Thread askxuefeng
No, I'm using JDK 1.5.0_08, and it works well when start as "root", I will
try 8080 rather than 80 later. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ferguson
Sent: Tuesday, February 27, 2007 1:30 AM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] How to start Resin with specified user?


On Feb 24, 2007, at 10:59 PM, askxuefeng wrote:

> Hi,
>   I have configured resin successfully and start it using "root"  
> without
> problem. However, "resin 
> resin" are only available in resin 
> professional. I try to start resin standard using "sudo -u resin 
> ./httpd.sh", but got error
> message:

You need to start Resin as "./httpd.sh start".

That particular error looks like you're using a JDK 1.4?  Resin 3.1 needs
JDK 1.5.

-- Scott

>
> java.lang.NoSuchMethodError: method
> java.lang.Class.isAnnotationPresent with signature 
> (Ljava.lang.Class;)Z was not found.
>at
> com.caucho.config.TypeStrategyFactory.getTypeStrategyImpl
> (TypeStrategyFactor
> y.java:197)
>at
> com.caucho.config.TypeStrategyFactory.getTypeStrategy
> (TypeStrategyFactory.ja
> va:85)
>at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
>at com.caucho.config.Config.configure(Config.java:232)
>at com.caucho.config.Config.configure(Config.java:163)
>at
> com.caucho.config.TypeStrategyFactory.init(TypeStrategyFactory.java: 
> 153)
>at
> com.caucho.config.TypeStrategyFactory.getFactory
> (TypeStrategyFactory.java:13
> 1)
>at
> com.caucho.config.TypeStrategyFactory.getTypeStrategy
> (TypeStrategyFactory.ja
> va:83)
>at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
>at com.caucho.config.Config.configure(Config.java:232)
>at com.caucho.config.Config.configure(Config.java:176)
>at com.caucho.boot.ResinBoot.(ResinBoot.java:132)
>at com.caucho.boot.ResinBoot.main(ResinBoot.java:390)
> Exception in thread "main" java.lang.AssertionError: Subclass must 
> override this method
>at java.lang.reflect.AccessibleObject.getAnnotation(libgcj.so.70)
>at java.lang.reflect.AccessibleObject.isAnnotationPresent
> (libgcj.so.70)
>at
> com.caucho.config.BeanTypeStrategy.scanMethods
> (BeanTypeStrategy.java:403)
>at com.caucho.config.BeanTypeStrategy.
> (BeanTypeStrategy.java:93)
>at
> com.caucho.config.EnvironmentTypeStrategy.
> (EnvironmentTypeStrategy.jav
> a:45)
>at
> com.caucho.config.TypeStrategyFactory.getTypeStrategyImpl
> (TypeStrategyFactor
> y.java:196)
>at
> com.caucho.config.TypeStrategyFactory.getTypeStrategy
> (TypeStrategyFactory.ja
> va:85)
>at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
>at com.caucho.config.Config.configure(Config.java:232)
>at com.caucho.config.Config.configure(Config.java:176)
>at com.caucho.boot.ResinBoot.(ResinBoot.java:132)
>at com.caucho.boot.ResinBoot.main(ResinBoot.java:390)
>
> How can I start resin not using root? Thanks!
>
> Yours,
> sincerely,
>
> Liao Xuefeng
>
> Email: [EMAIL PROTECTED]
> Website: http://www.javaeedev.com
> Blog: http://askxuefeng.spaces.live.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 mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] How to start Resin with specified user?

2007-02-24 Thread askxuefeng
Hi,
  I have configured resin successfully and start it using "root" without
problem. However, "resin
resin" are only available in resin professional. I
try to start resin standard using "sudo -u resin ./httpd.sh", but got error
message:

java.lang.NoSuchMethodError: method java.lang.Class.isAnnotationPresent with
signature (Ljava.lang.Class;)Z was not found.
   at
com.caucho.config.TypeStrategyFactory.getTypeStrategyImpl(TypeStrategyFactor
y.java:197)
   at
com.caucho.config.TypeStrategyFactory.getTypeStrategy(TypeStrategyFactory.ja
va:85)
   at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
   at com.caucho.config.Config.configure(Config.java:232)
   at com.caucho.config.Config.configure(Config.java:163)
   at
com.caucho.config.TypeStrategyFactory.init(TypeStrategyFactory.java:153)
   at
com.caucho.config.TypeStrategyFactory.getFactory(TypeStrategyFactory.java:13
1)
   at
com.caucho.config.TypeStrategyFactory.getTypeStrategy(TypeStrategyFactory.ja
va:83)
   at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
   at com.caucho.config.Config.configure(Config.java:232)
   at com.caucho.config.Config.configure(Config.java:176)
   at com.caucho.boot.ResinBoot.(ResinBoot.java:132)
   at com.caucho.boot.ResinBoot.main(ResinBoot.java:390)
Exception in thread "main" java.lang.AssertionError: Subclass must override
this method
   at java.lang.reflect.AccessibleObject.getAnnotation(libgcj.so.70)
   at java.lang.reflect.AccessibleObject.isAnnotationPresent(libgcj.so.70)
   at
com.caucho.config.BeanTypeStrategy.scanMethods(BeanTypeStrategy.java:403)
   at com.caucho.config.BeanTypeStrategy.(BeanTypeStrategy.java:93)
   at
com.caucho.config.EnvironmentTypeStrategy.(EnvironmentTypeStrategy.jav
a:45)
   at
com.caucho.config.TypeStrategyFactory.getTypeStrategyImpl(TypeStrategyFactor
y.java:196)
   at
com.caucho.config.TypeStrategyFactory.getTypeStrategy(TypeStrategyFactory.ja
va:85)
   at com.caucho.config.NodeBuilder.configure(NodeBuilder.java:160)
   at com.caucho.config.Config.configure(Config.java:232)
   at com.caucho.config.Config.configure(Config.java:176)
   at com.caucho.boot.ResinBoot.(ResinBoot.java:132)
   at com.caucho.boot.ResinBoot.main(ResinBoot.java:390)

How can I start resin not using root? Thanks!

Yours,
sincerely,

Liao Xuefeng

Email: [EMAIL PROTECTED]
Website: http://www.javaeedev.com
Blog: http://askxuefeng.spaces.live.com



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


Re: [Resin-interest] passing debugger parameters to resin

2007-02-13 Thread askxuefeng
Hi,
Here is my parameter for debugging and it works fine in Eclipse:

httpd -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Pretti
Sent: Tuesday, February 13, 2007 9:53 AM
To: Resin
Subject: [Resin-interest] passing debugger parameters to resin

I have successfully attached the java debugger via eclipse against Resin
2.1.17, but am running into some problems trying to do the same via 3.1

I believe the problem has something to do with the WatchDog process..

Has anybody run into this and solved it ?
I'm trying to pass the following parameters to the JVM that resin runs in:

-Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1045

I tried ./httpd.sh start -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1045

Thanks,
  -Mike


___
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] Problem using DBPool and Spring

2007-02-05 Thread askxuefeng
 May be you should change the property value to:




Yours,
sincerely,

Liao Xuefeng

Website: http://www.javaeedev.com
Blog: http://askxuefeng.spaces.live.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of cilquirm
Sent: Tuesday, February 06, 2007 3:19 AM
To: resin-interest@caucho.com
Subject: [Resin-interest] Problem using DBPool and Spring


On Resin 3.022 ( running on a Java 1.5 install on a Solaris 10 Sparc
environment ), I'm encountering a strange error when attempting to look up a
datasource in JNDI via Spring's JNDIObjectFactoryBean.

My database is set up like so :


  jdbc/ds
  
jdbc:oracle:thin:@devdb01.myco.com:1521:DEV
scott
tiger
   
   8
   20
   30s
 

In my application context, i have :

   ^
   



When starting up my application, I get a NameNotFoundException, thrown by
ContextImpl :

[13:49:56.316] WebApp[http://localhost:9000/app] initializing [13:49:56.345]
creating JNDI java: model for
EnvironmentClassLoader$13599389[web-app:http://localhost:9000/app]
parent:EnvironmentClassLoader$32380043[host:
http://localhost:9000]
[13:49:56.346] JNDI lookup `java:comp/env/caucho/auth' exception
javax.naming.NameNotFoundException: java:comp/env/caucho/auth [13:49:56.346]
javax.naming.NameNotFoundException: java:comp/env/caucho/auth [13:49:56.347]
WebApp[http://localhost:9000/app] initialized [13:49:56.348]
WebApp[http://localhost:9000/app] starting [13:49:56.426] real-path / ->
/opt/resin/webapps/app/ [13:49:56.428] Set web app root system property:
'webapp.root' = [/opt/resin/webapps/app/] [13:49:56.449] Initializing Log4J
from [classpath:log4j.properties] [13:49:58.599] Loading Spring root
WebApplicationContext [13:50:00.316] real-path
/WEB-INF/application-context.xml ->
/opt/resin/webapps/app/WEB-INF/application-context.xml
[13:50:03.548] JNDI lookup `java:comp/env/jdbc/ds' ->
DBPool[java:comp/env/jdbc/ds] [13:50:05.843] JNDI lookup
`java:/comp/env/jdbc/ds' exception
javax.naming.NameNotFoundException: java:/comp/env/jdbc/ds


Note that the 'java:comp/env/jdbc/ds' is changed to 'java:/comp/env/jdbc/ds'

( leading slash before 'comp' ).
which causes the lookup to fail.

I've checked the Spring source code and it seems to be making the lookup
fine, generating the correct name.

Moreover, when i specify the jndi-name of the datasource to be
"java:/comp/env/jdbc/ds" and the jndiName in my application context file to
be 'java:/comp/env/jdbc/ds", then it works fine.

However, any combination of specifying "jdbc/ds" or "java:comp/env/jdbc/ds"
as my jndi-name and the explicit path ( "java:comp/env/jdbc/ds" ) or the
base path ( "jdbc/ds" ) with resourceRef=true,  it fails with the
abovementioned error.

the normal convention of specifying "jdbc/ds" with resourceRef=true or the
full name "java:comp/env/jdbc/ds"  in jndiName works just fine with other
containers that I've attempted this test on, including Tomcat and Jetty.

Have I encountered a bug or am I too obtuse to be witness to my own
stupidity?

Thanks for any help you can provide,

-a


--
View this message in context:
http://www.nabble.com/Problem-using-DBPool-and-Spring-tf3176291.html#a881293
8
Sent from the Resin mailing list archive at Nabble.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] Xml parser bugs in Resin 3.1.0?

2007-02-05 Thread askxuefeng
Hi,
  I just upgraded to Resin 3.1.0 from Resin 3.0.21, and I found web services
(using xfire 1.2.2) have problems, but it works well in Resin 3.0.21.

  In some cases it cause an UnsupportedOperationException, and I think there
may be something wrong with xml parsing. Does anyone have xml problem with
Resin 3.1.0?

java.lang.UnsupportedOperationException
Fault occurred!
java.lang.UnsupportedOperationException
at
com.caucho.xml.stream.NamespaceContextImpl.getNamespaceURI(NamespaceContextI
mpl.java:121)
at
org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java
:154)
at
org.codehaus.xfire.aegis.stax.ElementWriter.writeStartElement(ElementWriter.
java:105)
at
org.codehaus.xfire.aegis.stax.ElementWriter.(ElementWriter.java:61)
at
org.codehaus.xfire.aegis.stax.ElementWriter.(ElementWriter.java:44)
at
org.codehaus.xfire.aegis.stax.ElementWriter.getElementWriter(ElementWriter.j
ava:156)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeValue(ArrayType.java:288)
at
org.codehaus.xfire.aegis.type.basic.ArrayType.writeObject(ArrayType.java:210
)
at
org.codehaus.xfire.aegis.AegisBindingProvider.writeParameter(AegisBindingPro
vider.java:200)
at
org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBi
nding.java:273)
at
org.codehaus.xfire.service.binding.WrappedBinding.writeMessage(WrappedBindin
g.java:89)
at
org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)
at
org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpCh
annel.java:56)
at
org.codehaus.xfire.transport.http.XFireServletChannel.sendViaServlet(XFireSe
rvletChannel.java:85)
at
org.codehaus.xfire.transport.http.XFireServletChannel.send(XFireServletChann
el.java:44)
at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at
org.codehaus.xfire.service.binding.PostInvocationHandler.invoke(PostInvocati
onHandler.java:36)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:
64)
at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38
)
at
org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServlet
Controller.java:301)
at
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServ
letController.java:130)
at
org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.ja
va:103)
at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:1
67)
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:
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:591)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
at java.lang.Thread.run(Thread.java:595)

Yours,
sincerely,

Liao Xuefeng

Email: [EMAIL PROTECTED]
Website: http://www.javaeedev.com
Blog: http://askxuefeng.spaces.live.com



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


Re: [Resin-interest] Resin 3.1.0's bug in html charset

2007-01-06 Thread askxuefeng
But how to resolve html files with utf-8 and iso-8859-1? I mean, some files
have utf-8 encoding, and some is iso-8859-1, and even more. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ??
Sent: Friday, January 05, 2007 10:20 PM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Resin 3.1.0's bug in html charset

You can add this lines in the conf/app-default.xml

 

  utf-8

  

Yuan Hong


- Original Message -
From: "askxuefeng" <[EMAIL PROTECTED]>
To: 
Sent: Friday, January 05, 2007 8:26 PM
Subject: [Resin-interest] Resin 3.1.0's bug in html charset


> Hi,
>I just upgrade Resin 3.0.21 to Resin 3.1.0, and the html output
encoding
> is not set correct, browser (both IE & Firefox) cannot display
> UTF-8-encoding html page correctly:
> 
> index.html with encoding "UTF-8":
> 
> 
> 
> 
>  utf-8 encoding text... 
> 
> 
> Here is my trace log:
> 
> GET /index.html HTTP/1.1
> Host: localhost:8080
> 
> HTTP/1.x 200 OK
> Server: Resin/3.1.0
> Etag: "H9uOAyUVMI5"
> Last-Modified: Fri, 05 Jan 2007 03:23:24 GMT
> Accept-Ranges: bytes
> Content-Type: text/html; charset=iso-8859-1
> Content-Length: 370
> Date: Fri, 05 Jan 2007 03:25:08 GMT
> 
> Resin 3.1.0 always add "Content-Type: text/html; charset=iso-8859-1" to
> static html response but should not.
> 
>Yours,
> sincerely,
> 
> Liao Xuefeng
> Jan. 5, 2007 
> 
> 
> ___
> 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] Resin 3.1.0's bug in html charset

2007-01-05 Thread askxuefeng
Hi,
I just upgrade Resin 3.0.21 to Resin 3.1.0, and the html output encoding
is not set correct, browser (both IE & Firefox) cannot display
UTF-8-encoding html page correctly:

index.html with encoding "UTF-8":




 utf-8 encoding text... 


Here is my trace log:

GET /index.html HTTP/1.1
Host: localhost:8080

HTTP/1.x 200 OK
Server: Resin/3.1.0
Etag: "H9uOAyUVMI5"
Last-Modified: Fri, 05 Jan 2007 03:23:24 GMT
Accept-Ranges: bytes
Content-Type: text/html; charset=iso-8859-1
Content-Length: 370
Date: Fri, 05 Jan 2007 03:25:08 GMT

Resin 3.1.0 always add "Content-Type: text/html; charset=iso-8859-1" to
static html response but should not.

Yours,
sincerely,

Liao Xuefeng
Jan. 5, 2007 


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


Re: [Resin-interest] ignored default attribute in schema

2007-01-04 Thread askxuefeng
I don't think it is a problem about resin, because xml parser is included in
jdk dom or 3rd-part lib. 
i'm using jdk 1.5_08 & resin 3.0.21 & spring 2.0 and it works well.
 
check your jdk & resin version.
 
Xuefeng


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janos Mucsi
Sent: Friday, January 05, 2007 8:09 AM
To: resin-interest@caucho.com
Subject: [Resin-interest] ignored default attribute in schema




 
Hi
 
I am using Spring 2.0.1 on Resin. I noticed that Resin ignores the default
values for attributes specified in the schema (see the attribute in green):
 
Here is the header:
 
http://www.springframework.org/schema/beans>
http://www.springframework.org/schema/beans";
  xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance";
  xmlns:aop=" 
http://www.springframework.org/schema/aop";
  xmlns:tx=" 
http://www.springframework.org/schema/tx";
  xsi:schemaLocation=" 
http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

http://www.springframework.org/schema/aop

http://www.springframework.org/schema/aop/spring-aop-2.0.xsd

http://www.springframework.org/schema/tx

http://www.springframework.org/schema/tx/spring-tx-2.0.xsd";
   default-init-method="init">

 
 
 
 
When I try this on Tomcat, I can leave out the transaction-manager
attribute, it gets resolved correctly. The schema says this:
 


Any thoughts?
 
Janos Mucsi
209-346-4294

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