A fatal error has been detected by the Java Runtime Environment libjvm

2017-03-13 Thread Vijay Kumar
Hi Team,

We have a web application installed in Tomcat 7.0.47. This was working fine
till last week but suddenly its failing due to Java Fatal error as
specified below.

Could any one please suggest how to know the root cause for this issue.
Attached the log for reference.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x2ab58b1e5ef1, pid=26026, tid=1108834624
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build
1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x7e4ef1]  Node::rematerialize() const+0x1
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

Thanks,
Vijay G

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

tomcat stopped with a fatal error by jvm

2016-11-29 Thread Vijay Kumar
Hi Team,

We have an application which is running on Tomcat 7.0.33 and this is using
Java 6.

Recently, Tomcat got stopped with a Fatal Error and the error logged in
catalina.out file is below.

I have attached the hs_err_pid7711.log also to the mail.

Can one of you please suggest what might be the reason to crash the Tomcat.
Is it related to JVM or Tomcat?
If its related to JVM then does the cause is by changing any of the Tomcat
attributes? or is it completely due to some other system files?

I need to figure it out the root cause, please help me.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x2ae04e2b01b1, pid=7711, tid=47143071070528
#
# JRE version: 6.0_36-b36
# Java VM: OpenJDK 64-Bit Server VM (23.25-b01 mixed mode linux-amd64
compressed oops)
# Derivative: IcedTea6 1.13.8
# Distribution: Red Hat Enterprise Linux Server release 5.11 (Tikanga),
package rhel-1.13.8.1.el5_11-x86_64
# Problematic frame:
# V  [libjvm.so+0x75e1b1]  JVM_RaiseSignal+0x176841
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/AASCPROD/hs_err_pid7711.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#

Thanks,
Vijay G

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

need latest tomcat stable versions

2016-07-05 Thread Vijay Kumar
Hi Team,

We have a Product in Production which we are using Tomcat as web-server.

Now we want to upgrade Tomcat to the latest version where we have
identified below two versions as the latest one.

Tomcat 8.0.36
Tomcat 8.5.3

Could you please update whether these are stable enough to use or please
suggest which one is the stable one to use in Production.


Thanks,
Vijay G


Re: how to create log files user level

2016-06-16 Thread Vijay Kumar
Hi Andre,

Thanks for the update.

Could you please give me some information whether it's possible or not to
generate user level log because i have tried using log4j but it failed.

Appreciate your help on this.

Thanks,
Vijay G

On Thu, Jun 16, 2016 at 12:59 PM, André Warnier (tomcat) 
wrote:

>
> Thanks. The rest below, as preferred on this mailing list.
>
>>
>> Thanks,
>> Vijay G
>>
>> On Thu, Jun 16, 2016 at 12:40 PM, André Warnier (tomcat) 
>> wrote:
>>
>> On 16.06.2016 08:50, Vijay Kumar wrote:
>>>
>>> Hi Team,
>>>>
>>>> We have a requirement to create a log either at User level or at User
>>>> session level.
>>>> Please provide your inputs on this.
>>>>
>>>> User level means a separate log to be created for that User and the same
>>>> should be used always for writing the log.
>>>> or
>>>> There will be one log file and within that log there should be a context
>>>> information to identify the user which we will do but want to know which
>>>> approach we have to use
>>>>
>>>> Session level means, is it possible to turn the logger mode to INFO for
>>>> a
>>>> particular session and the log to be written in one of the file at
>>>> server/client side?
>>>>
>>>> Our application is built with Struts 1.2.
>>>> Webserver used is Tomcat.
>>>> Currently using Tomcat JULI Logging.
>>>>
>>>>
>>>> Tomcat version ?
>>>
>>>
> On 16.06.2016 09:18, Vijay Kumar wrote:
> > We are using Tomcat 7.0.33 and 7.0.62
> >
> > 7.0.33 when Customer is on Java 1.7
> > 7.0.62 when our customer is on 1.8
> >
> > But we can upgrade to 8 if required to achieve the logging support
>
> I don't think that there is anything "standard" that will allow to create
> user-specific logfiles.
> What you want is more an application-level thing, so it would have to be
> resolved at the application level.
> You can create your own logger and do what you want. Any application
> module can call getRemoteUser(), and use the result to insert it in all the
> log messages that it issues.
> Of course this will only work in code running within an application, and
> only when there is an authenticated user.
> To avoid a lot of overhead (also at the system administration level), I
> would recommend to keep using the standard logfiles, and just insert a
> user-id "marker" in the log messages of interest.  This standard logfile
> can then be filtered a-posteriori by an external log-processing utility,
> which can then generate any individual files that you want.  That is likely
> to be a lot simpler to do than generating user-specific logfiles at the
> Tomcat level, and also would have a lot less impact on performance.
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: how to create log files user level

2016-06-16 Thread Vijay Kumar
We are using Tomcat 7.0.33 and 7.0.62

7.0.33 when Customer is on Java 1.7
7.0.62 when our customer is on 1.8

But we can upgrade to 8 if required to achieve the logging support

Thanks,
Vijay G

On Thu, Jun 16, 2016 at 12:40 PM, André Warnier (tomcat) 
wrote:

> On 16.06.2016 08:50, Vijay Kumar wrote:
>
>> Hi Team,
>>
>> We have a requirement to create a log either at User level or at User
>> session level.
>> Please provide your inputs on this.
>>
>> User level means a separate log to be created for that User and the same
>> should be used always for writing the log.
>> or
>> There will be one log file and within that log there should be a context
>> information to identify the user which we will do but want to know which
>> approach we have to use
>>
>> Session level means, is it possible to turn the logger mode to INFO for a
>> particular session and the log to be written in one of the file at
>> server/client side?
>>
>> Our application is built with Struts 1.2.
>> Webserver used is Tomcat.
>> Currently using Tomcat JULI Logging.
>>
>>
> Tomcat version ?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


how to create log files user level

2016-06-15 Thread Vijay Kumar
Hi Team,

We have a requirement to create a log either at User level or at User
session level.
Please provide your inputs on this.

User level means a separate log to be created for that User and the same
should be used always for writing the log.
or
There will be one log file and within that log there should be a context
information to identify the user which we will do but want to know which
approach we have to use

Session level means, is it possible to turn the logger mode to INFO for a
particular session and the log to be written in one of the file at
server/client side?

Our application is built with Struts 1.2.
Webserver used is Tomcat.
Currently using Tomcat JULI Logging.

Thanks,
Vijay G


Re: Need help on upgrading

2016-06-01 Thread Vijay Kumar
Sure. Will try and let you know.

On Wed, Jun 1, 2016 at 7:05 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Vijay,
>
> On 6/1/16 9:32 AM, Vijay Kumar wrote:
> > Thanks much Chris!
>
> No problem. Once you do this one time, you'll be much more comfortable
> with future upgrades. It's quite easy once you understand the things
> that usually change (e.g. stock Listeners).
>
> Tomcat 8 has many nice features when compared to Tomcat 7 as well.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAldO5IcACgkQ9CaO5/Lv0PBFugCeMcMFeTrkZN3ljRuCghKw8XOe
> tbYAoLj6EFmZeJrLNh7ZiNiwGfR1D0Dp
> =Bj8r
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Need help on upgrading

2016-06-01 Thread Vijay Kumar
Thanks much Chris!




Thanks,
Vijay
--
http://www.matchfinder.in
On Wed, Jun 1, 2016 at 6:52 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Vijay,
>
> On 5/31/16 11:03 PM, aramanda vijay wrote:
> > We are hosting our e-commerce application on tomcat 7.0.47 with
> > Apache( Apache/2.2.15) web server for load balancing. There are 2
> > servers on the cluster. I don't remember the exact cluster
> > configuration.
> >
> > There is a requirement to upgrade our tomcat to the latest version
> > 8.0.35. Does the same apache version, cluster setup work the same
> > way on 7.0.47 and 8.0.35 ? Does the apache also need upgrade?
>
> Apache httpd upgrade is not necessary, but if you aren't on 2.4.x, you
> should make plans to upgrade.
>
> The configuration differences between Tomcat 7 and Tomcat 8 are
> minimal, but you should be aware that Tomcat 7's conf/server.xml and
> Tomcat 8's conf/server.xml are completely incompatible.
>
> It would be best to take the stock conf/server.xml from Tomcat 8 and
> make whatever changes you need to get it to match your current one
> (e.g.  and  configurations).
>
> You should definitely read this:
> http://tomcat.apache.org/migration-8.html
>
> ... and possibly pay special attention to this:
> http://tomcat.apache.org/migration-8.html#Upgrading_8.0.x
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAldO4ZYACgkQ9CaO5/Lv0PATZgCgnVvqJvNWe1Sm5EYr0lXPy7w8
> XRcAnA8Gd+YlNQIUbnJcE9i/F7Z3Bhkh
> =WE7O
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: can we pass OS username while connection Database from Tomcat

2015-06-01 Thread Vijay Kumar
Hi,

Client want to monitor whether the connection is established from my
application or their existing applications. Because all these are
connecting the database from APPS user.

1) My Tomcat is installed on a different Linux environment under a user, so
if i could at least pass this user then Client can able to identify that
the connection is established from my Application.

2) By querying the v$session table in Oracle we can get all the connection
information but we can't identify the connections that are created from my
application because all the applications are connecting database through
APPS user.

We can achieve this by creating a new schema and providing all the required
permissions to my schema and accessing the database from the created schema
but is there any option where we can achieve my requirement.
I found that by providing a attribute called 'connectionProperties' in
Resource Tag of the context.xml is achieved this. But am not seeing any
information about the Program name after connecting to database.
Eg :
connectionProperties="v$session.program=dev-cs"

Thanks,
Vijay G

On Fri, May 29, 2015 at 8:48 PM, Jeffrey Janner  wrote:

> Please see response below post:
>
> > -Original Message-
> > From: Vijay Kumar [mailto:vijy.gan...@gmail.com]
> > Sent: Thursday, May 28, 2015 7:22 AM
> > To: Tomcat Users List
> > Subject: Re: can we pass OS username while connection Database from
> > Tomcat
> >
> > Hi ,
> >
> > I am referring User_Id as Linux User_id where we installed Tomcat.
> >
> > My Oracle Database don't know about this user_id.
> >
> >
> > Thanks,
> > Vijay G
> >
> Vijay -
> As another tomcat->oracle integrator, I do have to ask, exactly what is it
> your client is trying to monitor and what tool is he going to use?
> But first let's clarify the question:
> 1) Tomcat is running as the O/S user "apps" and your client wants
> to see the connections from O/S user apps?  And why?  This may already be
> available in the database structures.
> or
> 2) Tomcat is connecting to the database using the schema name
> "apps" and the client want to see these connections?  That's already
> available on the Oracle side.  This depends on what tool the client is
> using.
> Or
> 3) the client wants to see the user names of the application users
> in the monitoring tool?  Depending on this answer and the tool used, you
> are really getting into Oracle programming territory, as there are several
> ways to do this.
>
> As for answering the straight-forward question, a quick Google search
> found several replies, all requiring changes to the application code that
> connects to the database. Actually from what I understand, the Oracle
> drivers already provide this, at least the latest versions.
>
> Jeff
>
>
> > On Thu, May 28, 2015 at 3:20 PM, André Warnier  wrote:
> >
> > > Vijay Kumar wrote:
> > >
> > >> Hi Mark,
> > >>
> > >> Please find below my exact requirement.
> > >>
> > >> I have Oracle Database where my objects are installed and I have also
> > a
> > >> Linux instance where i installed Tomcat.
> > >> I am currently creating connection to the Oracle database from Tomcat
> > >> using
> > >> 'apps' user as this schema is having all permissions.
> > >>
> > >> One of my client want to monitor the connections that are created
> > from my
> > >> application. For this i want to pass my Linux user information
> > (userid)
> > >> while creating the connection from my application or in context.xml
> > file.
> > >>
> > >> Please suggest the approaches? If SPENGO can you redirect me any
> > doc/post
> > >> how to achieve this?
> > >>
> > >>  Vijay,
> > > you are repeating yourself (and still top-posting), but you are not
> > > providing the crucial information which would enable someone to really
> > help
> > > you.
> > > For example, what "Linux user information (userid)" are you talking
> > about ?
> > >
> > > Is it the Linux user-id under which Tomcat is running ?
> > > That would probably be "tomcat", so that is probably not going to help
> > you
> > > fulfill your customer's wishes.
> > >
> > > Is it the user-id of the /user/ of your Tomcat application ?
> > > In that case, how does Tomcat know this user-id ? Do the users login
> > into
> > > your applic

Re: can we pass OS username while connection Database from Tomcat

2015-05-28 Thread Vijay Kumar
Hi ,

I am referring User_Id as Linux User_id where we installed Tomcat.

My Oracle Database don't know about this user_id.


Thanks,
Vijay G

On Thu, May 28, 2015 at 3:20 PM, André Warnier  wrote:

> Vijay Kumar wrote:
>
>> Hi Mark,
>>
>> Please find below my exact requirement.
>>
>> I have Oracle Database where my objects are installed and I have also a
>> Linux instance where i installed Tomcat.
>> I am currently creating connection to the Oracle database from Tomcat
>> using
>> 'apps' user as this schema is having all permissions.
>>
>> One of my client want to monitor the connections that are created from my
>> application. For this i want to pass my Linux user information (userid)
>> while creating the connection from my application or in context.xml file.
>>
>> Please suggest the approaches? If SPENGO can you redirect me any doc/post
>> how to achieve this?
>>
>>  Vijay,
> you are repeating yourself (and still top-posting), but you are not
> providing the crucial information which would enable someone to really help
> you.
> For example, what "Linux user information (userid)" are you talking about ?
>
> Is it the Linux user-id under which Tomcat is running ?
> That would probably be "tomcat", so that is probably not going to help you
> fulfill your customer's wishes.
>
> Is it the user-id of the /user/ of your Tomcat application ?
> In that case, how does Tomcat know this user-id ? Do the users login into
> your application ? How ? What is the user authentication mechanism being
> used, now, at the Tomcat level ?
>
> Does the Oracle database also know this user-id ? How ?
>
> What does "One of my client want to monitor the connections" mean, exactly
> ? what does the customer want to know, and when ? Is this customer the only
> user/manager of the Oracle database, or are there multiple users/managers
> of the Oracle database ?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: can we pass OS username while connection Database from Tomcat

2015-05-28 Thread Vijay Kumar
Hi Mark,

Please find below my exact requirement.

I have Oracle Database where my objects are installed and I have also a
Linux instance where i installed Tomcat.
I am currently creating connection to the Oracle database from Tomcat using
'apps' user as this schema is having all permissions.

One of my client want to monitor the connections that are created from my
application. For this i want to pass my Linux user information (userid)
while creating the connection from my application or in context.xml file.

Please suggest the approaches? If SPENGO can you redirect me any doc/post
how to achieve this?

Regards,
Vijay G

On Thu, May 28, 2015 at 2:47 PM, Mark Thomas  wrote:

> On 28/05/2015 09:59, André Warnier wrote:
> > Mark Thomas wrote:
> >> On 28/05/2015 08:26, Vijay Kumar wrote:
> >>> Hi,
> >>>
> >>> Is it possible to pass OS username when making connection to any
> >>> Database
> >>> from Tomcat context.xml?
> >>
> >> In theory this should be possible if you are using SPNEGO
> authentication.
> >>
> >> Testing this to figure out what is required to make it work is on the
> >> TODO list. It is likely that some combination of configuration, Tomcat
> >> code changes and application changes will be required.
> >>
> >
> > I think that the term "OS username" should be carefully defined here,
> > along with the precise circumstances in which this would apply.
>
> Agreed. My definition is "user authenticated via SPNEGO"
>
> > Also, connecting to a database using the user-id kind of defeats any
> > kind of db connection persistence/pooling/sharing at the container level.
>
> You can have per user pools. Depending on the app and the usage pattern
> of the DB there can still be some benefits.
>
> > If this kind of thing is desired anyway, should it then not be done at
> > the application level, where you can retrieve the UserPrincipal anyway ?
>
> There are certainly different approaches available to solve this
> problem. The best approach depends on the actual requirement. I've used
> a range of approaches to this type of problem in the past.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: can we pass OS username while connection Database from Tomcat

2015-05-28 Thread Vijay Kumar
Hi Mark,

Thanks for your update.

I should have specify my requirement little more clear to you to understand
what you are saying.

I have Oracle Database where my objects are installed and I have also a
Linux instance where i installed Tomcat.
I am currently creating connection to the Oracle database from Tomcat using
'apps' user as this schema is having all permissions.

One of my client want to monitor the connections that are created from my
application. For this i want to pass my Linux user information (userid)
while creating the connection from my application or in context.xml file.

Please suggest is it possible or not?

Regards,
Vijay G

On Thu, May 28, 2015 at 1:14 PM, Mark Thomas  wrote:

> On 28/05/2015 08:26, Vijay Kumar wrote:
> > Hi,
> >
> > Is it possible to pass OS username when making connection to any Database
> > from Tomcat context.xml?
>
> In theory this should be possible if you are using SPNEGO authentication.
>
> Testing this to figure out what is required to make it work is on the
> TODO list. It is likely that some combination of configuration, Tomcat
> code changes and application changes will be required.
>
> Mark
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


can we pass OS username while connection Database from Tomcat

2015-05-28 Thread Vijay Kumar
Hi,

Is it possible to pass OS username when making connection to any Database
from Tomcat context.xml?

Thanks,
Vijay G


Supported Tomcat version for Java 1.8.25

2015-05-17 Thread Vijay Kumar
Hi,

We have a product which we certified on Tomcat 7.0.16 with JRE 1.6

One of our Customer want to upgrade his Java environment from 1.6 to 1.8.25

So i tried to start the Tomcat 7.0.16 using Java 1.8.25 and got below error
during the deployment of WAR file.
org.xml.sax.SAXNotRecognizedException:
http://apache.org/xml/features/validation/dynamic

Does Tomcat each version is designed to support a set of Java versions?
What is the best Tomcat version which I have to use in order to support
Java 1.8.25?

Thanks,
Vijay G


Would Tomcat for UNIX (Solaris) also work on Linux

2015-02-17 Thread Vijay Kumar
Hi All,

Would Tomcat for UNIX (Solaris) also work on Linux, or does Apache have
separate binaries for UNIX and Linux?


Thanks,

Vijay G


Stop writing System.our and System.err in catalina.out

2014-09-09 Thread Vijay Kumar
Hi,

I have deployed one web application in Tomcat which uses JULI logger
internally for application level logging. I can change the Mode to OFF
while going to production. But there are few System.out.println statements
along with e.printStackTrace which are writing in catalina.out file. This
is causing to shutdown Tomcat when catalina.out file grows huge.

Can any one suggest me how to stop writing these statement in catalina.out
file.

Thanks,
Vijay G


Install Tomcat on Oracle Enterprise Linux

2014-08-26 Thread Vijay Kumar
Hi,

Can i install Tomcat on Oracle Enterprise Linux.

Could you please share us the link/doc which i need to refer.

Thanks,
Vijay G


Proxy Support in tomcat 7

2012-09-19 Thread Vijay Kumar
Hi all,

I have a scenario where i don't want to contact from my application to a
web-service using https.
I don't want to change firewall details and want to enable 443 port.

Is there any way that can configure a proxy and can handle this scenario.

My application is deployed at tomcat 7

Thanks,
Vijay G