[Resin-interest] Resin admin servlet

2007-01-11 Thread MORAWETZ Martin
Hi list,

  I tried to follow the cookbook example from
  http://www.caucho.com/resin-3.0/jmx/cookbook/restart.xtp
  to manage resin-apps by a servlet.

  I've been unable to compile the servlet because of the missing
  class 'com.caucho.server.webapp.mbean.WebAppMBean'

  Neither the resin-3.0.22 nor the new resin 3.1 package contain
  this class (the resin 3.1 doc still shows the servlet-code using
  this class).

  Just as a wild guess I used com.caucho.management.server.WebAppMXBean
  instead. The javadoc of this class told me to use
  resin:type=WebAppMBean,name=/wiki,Host=foo.com
  as identifier (that's what I think it tolds me), I also tried
  resin:Server=default,type=WebAppMBean,name=/wiki,Host=foo.com
  Btw, Shouldn't the type be type=WebAppMXBean instead?
  The result always was like:

  javax.management.InstanceNotFoundException:
resin:Host=foo.com,name=/wiki,type=WebAppMBean
at
com.caucho.jmx.AbstractMBeanServer.getObjectInstance(AbstractMBeanServer
.java:524)

  host and name do exist on the server.

  Any ideas?

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


[Resin-interest] question about secure / non -secure sessions

2007-01-11 Thread James Picklesimer
I have a developer who uses HTTP on a landing page
then switches to HTTPS (SSL) with a small amount of
data from the non-secure page.

My opinion is this is a bad practice for security, but
frying that fish is not for this forum. 

1) does resin 3.0.18 or for that matter any J2EE
container allow for switching sessions?

2) does this cause a new session to be created? 

3) how does resin handle this (if legal according to
J2EE)?

4) should I look at java docs for J2EE containers?

Thanks.
+JP


 

Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com

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


[Resin-interest] ActiveMQ with Resin 3

2007-01-11 Thread Barrie Selack
Anyone using ActiveMQ with Resin.. I'm having trouble getting it
configured for connecting to a broker (not embedded).

Thanks,
Barrie




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


[Resin-interest] Cluster and java.lang.IllegalArgumentException: block 30720 must match store Table[srun_b:1] error

2007-01-11 Thread Yogesh Gowdra
Hi,

We use resin 3.0.14 professional in clustered environment on
Linux OS. We have 2 nodes in cluster behind hardware loadbalancer.
Everything used to work fine until recently when our production licence
expired. Scenario: When user navigates to certain point in application,
session invalidates and will be thrown to application login page and we
see following error in stdout.log (and it happens consistenly at that
point, it used work fine before licence expiry). Now we replaced expired
licence with new valid licence file that we received from caucho,
inspite of it we see following error happening. Do you see any need for
me to cleanup cluster store (srun_*.db) (which was created when server
was running with old licence) or is there any thing I am missing out?
Any quick response would be greatly appreciated.

Thanks

 

[2007-01-11 19:05:57.117]java.lang.IllegalArgumentException: block 30720
must match store Table[srun_b:1].

[2007-01-11 19:06:00.752]com.caucho.vfs.IOExceptionWrapper:
java.lang.IllegalArgumentException: block 30720 must match store
Table[srun_b:1].

[2007-01-11 19:06:00.752]  at
com.caucho.vfs.IOExceptionWrapper.create(IOExceptionWrapper.java:65)

[2007-01-11 19:06:00.752]  at
com.caucho.server.session.SessionImpl.load(SessionImpl.java:836)

[2007-01-11 19:06:00.752]  at
com.caucho.server.session.SessionManager.load(SessionManager.java:1235)

[2007-01-11 19:06:00.752]  at
com.caucho.server.cluster.ClusterObject.load(ClusterObject.java:274)

[2007-01-11 19:06:00.752]  at
com.caucho.server.cluster.FileBacking.loadSelf(FileBacking.java:318)

[2007-01-11 19:06:00.752]  at
com.caucho.server.cluster.ClusterStore.load(ClusterStore.java:404)

[2007-01-11 19:06:00.752]  at
com.caucho.server.cluster.ClusterObject.load(ClusterObject.java:245)

[2007-01-11 19:06:00.752]  at
com.caucho.server.session.SessionImpl.load(SessionImpl.java:677)

[2007-01-11 19:06:00.752]  at
com.caucho.server.session.SessionManager.getSession(SessionManager.java:
1035)

[2007-01-11 19:06:00.752]  at
com.caucho.server.connection.AbstractHttpRequest.createSession(AbstractH
ttpRequest.java:1364)

[2007-01-11 19:06:00.752]  at
com.caucho.server.connection.AbstractHttpRequest.getSession(AbstractHttp
Request.java:1174)

[2007-01-11 19:06:00.752]  at
com.caucho.server.connection.AbstractHttpRequest.getSession(AbstractHttp
Request.java:1152)

[2007-01-11 19:06:00.752]  at
org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor
.java:631)

[2007-01-11 19:06:00.752]  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
230)

[2007-01-11 19:06:00.752]  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

[2007-01-11 19:06:00.752]  at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

[2007-01-11 19:06:00.752]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:154)

[2007-01-11 19:06:00.752]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)

[2007-01-11 19:06:00.752]  at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChai
n.java:99)

[2007-01-11 19:06:00.752]  at
com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:
188)

[2007-01-11 19:06:00.752]  at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja
va:163)

[2007-01-11 19:06:00.752]  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j
ava:208)

[2007-01-11 19:06:00.752]  at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)

[2007-01-11 19:06:00.752]  at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)

[2007-01-11 19:06:00.752]  at
com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)

[2007-01-11 19:06:00.752]  at
com.caucho.util.ThreadPool.run(ThreadPool.java:423)

[2007-01-11 19:06:00.752]  at java.lang.Thread.run(Thread.java:534)

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


Re: [Resin-interest] question about secure / non -secure sessions

2007-01-11 Thread James Picklesimer
Thanks for the clarification Scott.
+James P.
--- Scott Ferguson [EMAIL PROTECTED] wrote:

 
 On Jan 11, 2007, at 12:40 PM, James Picklesimer
 wrote:
 
  I have a developer who uses HTTP on a landing page
  then switches to HTTPS (SSL) with a small amount
 of
  data from the non-secure page.
 
  My opinion is this is a bad practice for security,
 but
  frying that fish is not for this forum.
 
  1) does resin 3.0.18 or for that matter any J2EE
  container allow for switching sessions?
 
 It's mostly a browser issue.
 
 By default, the browser will send the same cookie
 from the non-secure  
 site to the secure site automatically.  (There's a
 http-only flag  
 that can change this behavior for some browsers,
 although I don't see  
 it in our schema.  I thought we'd added it.)
 
 
  2) does this cause a new session to be created?
 
 It depends on how the virtual hosts are configured. 
 If there are  
 separate virtual hosts for SSL vs non-SSL, then
 there are separate  
 sessions.  If the same host handles both, it will
 use the old session.
 
  3) how does resin handle this (if legal according
 to
  J2EE)?
 
 It's outside the scope of J2EE with the exception
 that J2EE requires  
 that separate web-app have separate session
 contexts.
 
  4) should I look at java docs for J2EE containers?
 
 If someone else has a better solution, we'd love to
 add it as an  
 enhancement request.
 
 -- Scott
 
 
  Thanks.
  +JP
 
 
 
 

__
 
  __
  Need a quick answer? Get one in minutes from
 people who know.
  Ask your question on www.Answers.yahoo.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
 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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