Re: myeclipse and tomcat

2010-04-24 Thread Christoph Kukulies

Ken Bowen schrieb:
Then I think you either need several independent Tomcat instances or 
multiple virtual hosts.
I've occasionally had several independent instances running (but one 
was started by Eclipse and one from the command line).

I don't know whether Eclipse would support either.
Do you need to do simultaneous development, or just run several other 
ROOT webapps while developing on one?


Actually only several other ROOT apps. I've seen so far  that I can run 
the embedded tomcat from within MyEclipse
in parallel to the external Tomcat. I only have to change the server 
shutdown port in server.xml to something different, e.g. 8006 instead of 
8005.

And adapt the connectors accordingly to avoid conflicts.

--
Christoph



On Apr 23, 2010, at 3:59 PM, Christoph Kukulies wrote:


Ken Bowen schrieb:


You can run multiple web apps alongside the ROOT app.  I just drop 
them in the webspps folder.




Yes, I know. I do presently. But I want to run several ROOT apps.

--
Christoph



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: a servlet-related Java question

2010-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

On 4/22/2010 5:53 PM, Konstantin Kolinko wrote:
 2010/4/23 Christopher Schultz ch...@christopherschultz.net:
 I'd love to see the code that enforces this.
 
 Search for applicationDispatcher.specViolation.request and
 applicationDispatcher.specViolation.response or for SRV.8.2 in the
 code.

In o.a.c.c.ApplicationDispatcher.doForward, there's this:

if (Globals.STRICT_SERVLET_COMPLIANCE) {
// Check SRV.8.2 / SRV.14.2.5.1 compliance
checkSameObjects(request, response);
}

and then

private void checkSameObjects(ServletRequest appRequest,
ServletResponse appResponse) throws ServletException {
ServletRequest originalRequest =
ApplicationFilterChain.getLastServicedRequest();
ServletResponse originalResponse =
ApplicationFilterChain.getLastServicedResponse();

NB: ApplicationFilterChain uses a ThreadLocal to store the last
serviced request.

// Some forwards, eg from valves will not set original values
if (originalRequest == null || originalResponse == null) {
return;
}

boolean same = false;
ServletRequest dispatchedRequest = appRequest;

//find the request that was passed into the service method
while (originalRequest instanceof ServletRequestWrapper 
((ServletRequestWrapper)
originalRequest).getRequest()!=null ) {
originalRequest =
((ServletRequestWrapper) originalRequest).getRequest();
}
//compare with the dispatched request
while (!same) {
if (originalRequest.equals(dispatchedRequest)) {
same = true;
}
if (!same  dispatchedRequest instanceof
ServletRequestWrapper) {
dispatchedRequest =
((ServletRequestWrapper)
dispatchedRequest).getRequest();
} else {
break;
}
}
if (!same) {
throw new ServletException(sm.getString(
applicationDispatcher.specViolation.request));
}

(The remainder of the code checks the response in a similar way).

That certainly looks like it should be balking at my Proxy-based
wrapper. I'll have to check a few things, because it looks like this
isn't working as expected.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvTNZcACgkQ9CaO5/Lv0PCCuQCeLcOQFVouu0Xj6svjckN302Kx
OR0Ani5LCMLhQmkfDMAYSIKajOsWffBD
=stbu
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: An unexpected error has been detected by Java Runtime Environment:

2010-04-24 Thread krawls35

I received an error also last night. I couldn't figure out how to do my own
post so I am hoping somebody will help me with my situation also. Here it
go:
EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d8f9dac, pid=7016, tid=6844
#
# JRE version: 6.0_19-b04
# Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing
windows-x86 )
# Problematic frame:
# V  [jvm.dll+0xf9dac]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Tsirkin Evgeny-2 wrote:
 
 environment :
 Apache Tomcat/6.0.18
 Solaris 9 64 bit
 jdk1.6.0_13
 
 On one of the servers we are today getting constantly errors:
 An unexpected error has been detected by Java Runtime Environment.
 Here are some of those:
 
 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # C  [libc_psr.so.1+0x8b8]
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid2380.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 
 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # j
 java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid11205.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # V  [libjvm.so+0x74c17c]
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid23223.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 ---
 The file which should contain the logs/dump (i.e.
 /tmp/hs_err_pid23223.log)
 are empty.
 Did anybody get experienced with such a thing?
 Thanks
 Evgeny
 
 

-- 
View this message in context: 
http://old.nabble.com/An-unexpected-error-has-been-detected-by-Java-Runtime-Environment%3A-tp25272723p28352315.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: An unexpected error has been detected by Java Runtime Environment:

2010-04-24 Thread André Warnier
Not trying to be funny here, but should you not be reporting this to Sun 
(as mentioned in the crash messages), rather than to the Tomcat forum ?


krawls35 wrote:

I received an error also last night. I couldn't figure out how to do my own
post so I am hoping somebody will help me with my situation also. Here it
go:
EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d8f9dac, pid=7016, tid=6844
#
# JRE version: 6.0_19-b04
# Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing
windows-x86 )
# Problematic frame:
# V  [jvm.dll+0xf9dac]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Tsirkin Evgeny-2 wrote:

environment :
Apache Tomcat/6.0.18
Solaris 9 64 bit
jdk1.6.0_13

On one of the servers we are today getting constantly errors:
An unexpected error has been detected by Java Runtime Environment.
Here are some of those:

---
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
solaris-sparc)
# Problematic frame:
# C  [libc_psr.so.1+0x8b8]
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid2380.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
solaris-sparc)
# Problematic frame:
# j
java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid11205.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
---
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
solaris-sparc)
# Problematic frame:
# V  [libjvm.so+0x74c17c]
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid23223.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
---
The file which should contain the logs/dump (i.e.
/tmp/hs_err_pid23223.log)
are empty.
Did anybody get experienced with such a thing?
Thanks
Evgeny







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: An unexpected error has been detected by Java Runtime Environment:

2010-04-24 Thread krawls35

Thank You for letting me know. How do I take it off and report to Tomcat
forum?  You are not being funny but very helpful and I appreciate that.

awarnier wrote:
 
 Not trying to be funny here, but should you not be reporting this to Sun 
 (as mentioned in the crash messages), rather than to the Tomcat forum ?
 
 krawls35 wrote:
 I received an error also last night. I couldn't figure out how to do my
 own
 post so I am hoping somebody will help me with my situation also. Here it
 go:
 EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d8f9dac, pid=7016,
 tid=6844
 #
 # JRE version: 6.0_19-b04
 # Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing
 windows-x86 )
 # Problematic frame:
 # V  [jvm.dll+0xf9dac]
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 
 Tsirkin Evgeny-2 wrote:
 environment :
 Apache Tomcat/6.0.18
 Solaris 9 64 bit
 jdk1.6.0_13

 On one of the servers we are today getting constantly errors:
 An unexpected error has been detected by Java Runtime Environment.
 Here are some of those:

 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # C  [libc_psr.so.1+0x8b8]
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid2380.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #

 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # j
 java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid11205.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 ---
 #
 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5
 #
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
 solaris-sparc)
 # Problematic frame:
 # V  [libjvm.so+0x74c17c]
 #
 # An error report file with more information is saved as:
 # /tmp/hs_err_pid23223.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 ---
 The file which should contain the logs/dump (i.e.
 /tmp/hs_err_pid23223.log)
 are empty.
 Did anybody get experienced with such a thing?
 Thanks
 Evgeny


 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/An-unexpected-error-has-been-detected-by-Java-Runtime-Environment%3A-tp25272723p28352762.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: An unexpected error has been detected by Java Runtime Environment:

2010-04-24 Thread Sanjeev Verma
Some helpful info on this error here - 
http://www.java-forums.org/eclipse/312-exception_access_violation-0xc005.html


On Sat, 2010-04-24 at 13:48 -0700, krawls35 wrote:
 Thank You for letting me know. How do I take it off and report to Tomcat
 forum?  You are not being funny but very helpful and I appreciate that.
 
 awarnier wrote:
  
  Not trying to be funny here, but should you not be reporting this to Sun 
  (as mentioned in the crash messages), rather than to the Tomcat forum ?
  
  krawls35 wrote:
  I received an error also last night. I couldn't figure out how to do my
  own
  post so I am hoping somebody will help me with my situation also. Here it
  go:
  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d8f9dac, pid=7016,
  tid=6844
  #
  # JRE version: 6.0_19-b04
  # Java VM: Java HotSpot(TM) Client VM (16.2-b04 mixed mode, sharing
  windows-x86 )
  # Problematic frame:
  # V  [jvm.dll+0xf9dac]
  #
  # If you would like to submit a bug report, please visit:
  #   http://java.sun.com/webapps/bugreport/crash.jsp
  #
  
  Tsirkin Evgeny-2 wrote:
  environment :
  Apache Tomcat/6.0.18
  Solaris 9 64 bit
  jdk1.6.0_13
 
  On one of the servers we are today getting constantly errors:
  An unexpected error has been detected by Java Runtime Environment.
  Here are some of those:
 
  ---
  #
  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121
  #
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
  solaris-sparc)
  # Problematic frame:
  # C  [libc_psr.so.1+0x8b8]
  #
  # An error report file with more information is saved as:
  # /tmp/hs_err_pid2380.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://java.sun.com/webapps/bugreport/crash.jsp
  #
 
  ---
  #
  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615
  #
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
  solaris-sparc)
  # Problematic frame:
  # j
  java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0
  #
  # An error report file with more information is saved as:
  # /tmp/hs_err_pid11205.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://java.sun.com/webapps/bugreport/crash.jsp
  #
  ---
  #
  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5
  #
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode
  solaris-sparc)
  # Problematic frame:
  # V  [libjvm.so+0x74c17c]
  #
  # An error report file with more information is saved as:
  # /tmp/hs_err_pid23223.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://java.sun.com/webapps/bugreport/crash.jsp
  #
  ---
  The file which should contain the logs/dump (i.e.
  /tmp/hs_err_pid23223.log)
  are empty.
  Did anybody get experienced with such a thing?
  Thanks
  Evgeny
 
 
  
  
  
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
  
  
  
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org