Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-17 Thread Jonathan Rengifo
Thanks to all.

The resource link problem has been solve with this recommendations you
gave me, at the end I copied my database .jar to common/lib so all web
application and the server can see it, what seems strange to me is
that it used to work on Tomcat 4 without any copy task, but the
solution you gave me goes according to the ClassLoader documentation
so you were just rigth..

Thanks to all of you...

Regards

Jonathan M. Rengifo



On Fri, 17 Sep 2004 08:10:13 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >I think it is because of the way Tomcat classloaders work. Classes in
> >common\lib or common\classes cannot see classes in WEB-INF\lib. DBCP
> looks
> >for the JDBC Driver class and it cannot read it from WEB-INF\lib. This
> is
> >the answer I got when I had similar problem. For further info on this
> you
> >need help from experts in this list. If the problem is not solved
> please
> >reply.
> 
> Your thought is right -- the above is a good description.  The
> ClassLoader hierarchy is just that, a hierarchy, meaning different
> visibility for different classloaders.  It's described in detail the
> ClassLoader how-to, which I might rank at the #1 document all developers
> using Tomcat should read and understand.
> 
> Yoav
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi to all...

Antony, sorry I have already found dbcp.jar and know what it does, but
don't understand why I should copy it to my WEB-INF/lib application
source ?


On Thu, 16 Sep 2004 11:06:53 -0400, Jonathan Rengifo
<[EMAIL PROTECTED]> wrote:
> Hi again and thanks to all... :D
> 
> Antony, please can you tell what is dbcp.jar and where I can find it?
> so I can try your recommendation...
> 
> Thanks...
> 
> 
> Jonathan
> 
> On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
> <[EMAIL PROTECTED]> wrote:
> > Had you tried it with inside Context element. If it doesn't work it means
> > the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> > in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> > dbcp.jar too there.
> >
> > rgds
> > Antony Paul
> >
> > - Original Message -
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, September 16, 2004 6:02 PM
> > Subject: RE: Problem configuring a global resource to be linked from Context
> > elements 
> >
> >
> > Hi,
> >
> >
> > Maybe there really is a bug in the Tomcat release you're using: which
> > one are you trying?
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> > >-Original Message-
> > >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, September 15, 2004 9:08 PM
> > >To: Tomcat User List
> > >Subject: Problem configuring a global resource to be linked from
> > Context
> > >elements 
> > >
> > >Hi all
> > >
> > >
> > >This is the third time I've write a message to the list asking for the
> > >same issue, but didn't solve it, I am starting to think about this is
> > >a really bug in Tomcat 5. My question is ... Why when I configure a
> > >Resource inside the GlobalNamingResources element just to ResourceLink
> > >it inside the context it just doesn't work, throwing an exception like
> > >this ...
> > >
> > >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> > >class 'oracle.jdbc.driver.OracleDriver'
> > >
> > >This means to me that the oracle driver I am using is could no be
> > >found, but then, why when I cut the Resource and paste it inside every
> > >Context I use it just work fine???...
> > >
> > >Please help How do I configure this global resource??
> > >
> > >Here is how I am setting this up...
> > >
> > >
> > >
> > > > >type="javax.sql.DataSource"/>
> > > 
> > > 
> > > factory
> > >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> > > 
> > > 
> > > url
> > >
> > jdbc:oracle:thin:@myDatabaseServer:port:user
> > > 
> > > 
> > > password
> > > myPassword
> > > 
> > > 
> > > maxActive
> > > 20
> > > 
> > > 
> > > maxWait
> > > -1
> > > 
> > > 
> > > driverClassName
> > > oracle.jdbc.driver.OracleDriver
> > > 
> > > 
> > > username
> > > myUser
> > > 
> > > 
> > > maxIdle
> > > 10
> > > 
> > > 
> > >
> > >
> > >
> > >Thanks ..
> > >
> > >Jonathan
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is confidential, proprietary
> > and/or privileged.  This e-mail is intended only for the individual(s) to
> > whom it is addressed, and may not be saved, copied, printed, disclosed or
> > used by anyone else.  If you are not the(an) intended recipient, please
> > immediately delete this e-mail from your computer system and notify the
> > sender.  Thank you.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi again and thanks to all... :D

Antony, please can you tell what is dbcp.jar and where I can find it?
so I can try your recommendation...

Thanks...
Jonathan


On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
<[EMAIL PROTECTED]> wrote:
> Had you tried it with inside Context element. If it doesn't work it means
> the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> dbcp.jar too there.
> 
> rgds
> Antony Paul
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 16, 2004 6:02 PM
> Subject: RE: Problem configuring a global resource to be linked from Context
> elements 
> 
> 
> Hi,
> 
> 
> Maybe there really is a bug in the Tomcat release you're using: which
> one are you trying?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> >-Original Message-
> >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 15, 2004 9:08 PM
> >To: Tomcat User List
> >Subject: Problem configuring a global resource to be linked from
> Context
> >elements 
> >
> >Hi all
> >
> >
> >This is the third time I've write a message to the list asking for the
> >same issue, but didn't solve it, I am starting to think about this is
> >a really bug in Tomcat 5. My question is ... Why when I configure a
> >Resource inside the GlobalNamingResources element just to ResourceLink
> >it inside the context it just doesn't work, throwing an exception like
> >this ...
> >
> >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> >class 'oracle.jdbc.driver.OracleDriver'
> >
> >This means to me that the oracle driver I am using is could no be
> >found, but then, why when I cut the Resource and paste it inside every
> >Context I use it just work fine???...
> >
> >Please help How do I configure this global resource??
> >
> >Here is how I am setting this up...
> >
> >
> >
> > >type="javax.sql.DataSource"/>
> > 
> > 
> > factory
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> > url
> >
> jdbc:oracle:thin:@myDatabaseServer:port:user
> > 
> > 
> > password
> > myPassword
> > 
> > 
> > maxActive
> > 20
> > 
> > 
> > maxWait
> > -1
> > 
> > 
> > driverClassName
> > oracle.jdbc.driver.OracleDriver
> > 
> > 
> > username
> > myUser
> > 
> > 
> > maxIdle
> > 10
> > 
> > 
> >
> >
> >
> >Thanks ..
> >
> >Jonathan
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi all, and thanks for your support.

I am using Tomcat 5.0.28, this is the latest version, so I really
don't know if this is a real bug.

Like I early wrote, I try to cut and paste the configured database
resource from the  element to every context in
which I need that database resource, and it just work fine, but I
guess this is not the best way to do it, because I have a considerable
amount of context and virtual host, I have the database .jar inside
WEB-INF\lib inside my applications. Why this works when I copy the
resource to every context, and doesn't work as a global resource when
I link it through the ResourceLink element, like this:



inside every context element I need...

Thanks to all...

Regards

Jonathan






On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
<[EMAIL PROTECTED]> wrote:
> Had you tried it with inside Context element. If it doesn't work it means
> the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> dbcp.jar too there.
> 
> rgds
> Antony Paul
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 16, 2004 6:02 PM
> Subject: RE: Problem configuring a global resource to be linked from Context
> elements 
> 
> 
> Hi,
> 
> 
> Maybe there really is a bug in the Tomcat release you're using: which
> one are you trying?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> >-Original Message-
> >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 15, 2004 9:08 PM
> >To: Tomcat User List
> >Subject: Problem configuring a global resource to be linked from
> Context
> >elements 
> >
> >Hi all
> >
> >
> >This is the third time I've write a message to the list asking for the
> >same issue, but didn't solve it, I am starting to think about this is
> >a really bug in Tomcat 5. My question is ... Why when I configure a
> >Resource inside the GlobalNamingResources element just to ResourceLink
> >it inside the context it just doesn't work, throwing an exception like
> >this ...
> >
> >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> >class 'oracle.jdbc.driver.OracleDriver'
> >
> >This means to me that the oracle driver I am using is could no be
> >found, but then, why when I cut the Resource and paste it inside every
> >Context I use it just work fine???...
> >
> >Please help How do I configure this global resource??
> >
> >Here is how I am setting this up...
> >
> >
> >
> > >type="javax.sql.DataSource"/>
> > 
> > 
> > factory
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> > url
> >
> jdbc:oracle:thin:@myDatabaseServer:port:user
> > 
> > 
> > password
> > myPassword
> > 
> > 
> > maxActive
> > 20
> > 
> > 
> > maxWait
> > -1
> > 
> > 
> > driverClassName
> > oracle.jdbc.driver.OracleDriver
> > 
> > 
> > username
> > myUser
> > 
> > 
> > maxIdle
> > 10
> > 
> > 
> >
> >
> >
> >Thanks ..
> >
> >Jonathan
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem configuring a global resource to be linked from Context elements ....

2004-09-15 Thread Jonathan Rengifo
Hi all


This is the third time I've write a message to the list asking for the
same issue, but didn't solve it, I am starting to think about this is
a really bug in Tomcat 5. My question is ... Why when I configure a
Resource inside the GlobalNamingResources element just to ResourceLink
it inside the context it just doesn't work, throwing an exception like
this ...

org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
class 'oracle.jdbc.driver.OracleDriver'

This means to me that the oracle driver I am using is could no be
found, but then, why when I cut the Resource and paste it inside every
Context I use it just work fine???...

Please help How do I configure this global resource??

Here is how I am setting this up...




 
 
 factory
 org.apache.commons.dbcp.BasicDataSourceFactory
 
 
 url
 jdbc:oracle:thin:@myDatabaseServer:port:user
 
 
 password
 myPassword
 
 
 maxActive
 20
 
 
 maxWait
 -1
 
 
 driverClassName
 oracle.jdbc.driver.OracleDriver
 
 
 username
 myUser
 
 
 maxIdle
 10
 
 



Thanks ..

Jonathan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ResourceLink proble

2004-09-09 Thread Jonathan Rengifo
Hi to all..

Some time ago I started a thread about a misconfiguration with the
ResourceLink element on tomcat 5.0.27 release, but no one responded to
my thread :'( ... So I am going to make the same question in a
different way, how do I setup the ResourceLink element inside a
Context element linking an Oracle database resource configurated
inside the GlobalNamingResources element, so I can link this resource
on several context configurated on my virtual hosts...

Regards

Jonathan M. Rengifo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems upgrading to Tomcat 5

2004-09-06 Thread Jonathan Rengifo
Hi all...

Can anyone tell me about a succeeding experience ResourceLinking
inside a Context element a Resource element contained in a
GlobalNamingResources element?

Please, I don't really know how to do it on Tomcat 5 and can´t find it
on the Internet...
(For more information about the problem see my last posted message
"Problems upgrading to Tomcat 5")



On Mon, 6 Sep 2004 15:32:41 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> Hi all...
> 
> I am preparing a new production web sever configured with Apache 2
> serving static content and Tomcat 5.0.27 serving dynamic content via
> TCP JK2 connector.
> 
> In Tomcat, I am trying to configure one database Resource element for
> various Context, so I decide to configure one Resource element into
> the GlobalNamingResources element, and then  link it via ResourceLink
> element on the Context I need to have; this configuration don´t work,
> it throws me an exception on tomcat start up:
> 
> java.lang.RuntimeException: com.MyCompany.db.ManagerException:
> org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> class 'oracle.jdbc.driver.OracleDriver'
> 
> This happens although the driver is locate on my lib application, and
> I try to cut an pasted on $TOMCAT_HOME/shared/lib and still get the
> same output result.
> 
> That configuration used to work on Tomcat 4, but don't know what
> happened or change on new releases. I've read the "Server
> Configuration Reference" documentation from
> "http://manuals.thexdershome.com/tomcat-5.0/config/context.html"; with
> no success (There are examples using my server.xml configuration). So,
> after all I just copy the Resource element on each Context and it
> works, but believe this is not simple the best way to do this...
> 
> Here is an example of what I've done:
> 
> 
> 
> 
> 
>  type="java.lang.Integer" value="30"/>
> 
>  type="javax.sql.DataSource"/>
>
>
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>url
>jdbc:oracle:thin:@myDatabaseServer:port:user
>
>
>password
>myPassword
>
>
>maxActive
>20
>
>
>maxWait
>-1
>
>
>driverClassName
>oracle.jdbc.driver.OracleDriver
>
>
>username
>myUser
>
>
>maxIdle
>10
>
>
> 
> 
> ...
> ...
> ...
> 
>appBase="webapps"
>   autoDeploy="true"
>   configClass="org.apache.catalina.startup.ContextConfig"
>   contextClass="org.apache.catalina.core.StandardContext"
>   debug="0"
>   deployXML="true"
>   errorReportValveClass="org.apache.catalina.valves.ErrorReportValve"
>   liveDeploy="true"
> mapperClass="org.apache.catalina.core.StandardHostMapper"
>   name="mySubDomain.myDomain.com"
>   unpackWARs="true">
> 
>  pattern="combined"
>   resolveHosts="false"
>   directory="/appPath"/>
> 
>   className="org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
> 
> charsetMapperClass="org.apache.catalina.util.CharsetMapper"
> cookies="true"
>crossContext="false"
>debug="0"
>displayName="myApp"
>docBase="/appPath/root"
> 
> mapperClass="org.apache.catalina.core.StandardContextMapper"
>path=""
>privileged="false"
> reloadable="false" swallowOutput="false"
>useNaming="true"
> 
> wrapperClass="org.apache.catalina.core.StandardWrapper"
>allowLinking="true">
> 
> global="jdbc/app" type="javax.sql.DataSource"/>
>
>
> 
> .
> .
> .
> 
> I was thinking too on move to Tomcat 5.0.28 relesed few days ago, to
> see if problem solves, but don´t know what are the advantages and
> bugfixes it has regarding 5.0.27 release I am using, can you please
> tell me some or where to read them?
> 
> Any help or comments you have would be very appreciated...
> 
> Regards
> 
> Jonathan
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems upgrading to Tomcat 5

2004-09-06 Thread Jonathan Rengifo
Hi all...

I am preparing a new production web sever configured with Apache 2
serving static content and Tomcat 5.0.27 serving dynamic content via
TCP JK2 connector.

In Tomcat, I am trying to configure one database Resource element for
various Context, so I decide to configure one Resource element into
the GlobalNamingResources element, and then  link it via ResourceLink
element on the Context I need to have; this configuration don´t work,
it throws me an exception on tomcat start up:

java.lang.RuntimeException: com.MyCompany.db.ManagerException:
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
class 'oracle.jdbc.driver.OracleDriver'

This happens although the driver is locate on my lib application, and
I try to cut an pasted on $TOMCAT_HOME/shared/lib and still get the
same output result.

That configuration used to work on Tomcat 4, but don't know what
happened or change on new releases. I've read the "Server
Configuration Reference" documentation from
"http://manuals.thexdershome.com/tomcat-5.0/config/context.html"; with
no success (There are examples using my server.xml configuration). So,
after all I just copy the Resource element on each Context and it
works, but believe this is not simple the best way to do this...

Here is an example of what I've done:








   
   
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
   
   
   url
   jdbc:oracle:thin:@myDatabaseServer:port:user
   
   
   password
   myPassword
   
   
   maxActive
   20
   
   
   maxWait
   -1
   
   
   driverClassName
   oracle.jdbc.driver.OracleDriver
   
   
   username
   myUser
   
   
   maxIdle
   10
   
   


...
...
...



  

 

   
   
   

.
.
.

I was thinking too on move to Tomcat 5.0.28 relesed few days ago, to
see if problem solves, but don´t know what are the advantages and
bugfixes it has regarding 5.0.27 release I am using, can you please
tell me some or where to read them?

Any help or comments you have would be very appreciated...

Regards

Jonathan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
I built the connector and the Apache web server by my self on the
Solaris 9 64 bit box with the source downloaded from the Apache
Project site with succeeding results, when I built the connector I got
the following files mod_jk2.so and jkjni.so and when I built the
Apache release I got the apr library libapr-0.so.0.

Thanks for your time, any suggestion would be welcome

Jonathan



On Fri, 03 Sep 2004 18:31:27 -0400, Wade Chandler
<[EMAIL PROTECTED]> wrote:
> Jonathan Rengifo wrote:
> 
> > I made the test with succesful results, I guess it is a linking
> > problem, but don't know how to solve it..
> >
> >
> > On Fri, 03 Sep 2004 16:18:13 -0400, John Villar
> > <[EMAIL PROTECTED]> wrote:
> >
> >>Try to make a small java test (without tomcat) that use the unix sockets
> >>and see what happens.... maybe you can debug it and find what/where is
> >>happenning
> >>
> >>Jonathan Rengifo escribió:
> >>
> >>
> >>
> >>
> >>>Hi, all...
> >>>
> >>>My problem is definitive related with the libjkjni.so lib, when I add
> >>>the path of the library to the LD_LIBRARY_PATH I get the error
> >>>message:
> >>>
> >>>ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >>>/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >>>referenced symbol not found
> >>>
> >>>But, when take this path out of the LD_LIBRARY_PATH the error
> >>>disappears, but also disappears the AF_SOCKET support of the
> >>>connector, and got this message:
> >>>
> >>>INFO: APR not loaded, disabling jni components: java.io.IOException:
> >>>java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
> >>>
> >>>Because of this error I did put the libjkjni.so lib on the LD_LIBRARY_PATH...
> >>>
> >>>Any suggestions??
> >>>
> >>>Regards
> >>>Jonathan
> >>>
> >>>
> >>>
> >>>On Fri, 3 Sep 2004 11:50:11 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>>Hi, thanks for your very important help..
> >>>>
> >>>>I ran the ldd utility on the libapr-0.so.0 lib, with the following results:
> >>>>
> >>>>/usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
> >>>>   libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
> >>>>   librt.so.1 =>/usr/lib/librt.so.1
> >>>>   libm.so.1 => /usr/lib/libm.so.1
> >>>>   libsocket.so.1 =>/usr/lib/libsocket.so.1
> >>>>   libnsl.so.1 =>   /usr/lib/libnsl.so.1
> >>>>   libresolv.so.2 =>/usr/lib/libresolv.so.2
> >>>>   libpthread.so.1 =>   /usr/lib/libpthread.so.1
> >>>>   libdl.so.1 =>    /usr/lib/libdl.so.1
> >>>>   libc.so.1 => /usr/lib/libc.so.1
> >>>>   libaio.so.1 =>   /usr/lib/libaio.so.1
> >>>>   libmd5.so.1 =>   /usr/lib/libmd5.so.1
> >>>>   libmp.so.2 =>/usr/lib/libmp.so.2
> >>>>   libthread.so.1 =>/usr/lib/libthread.so.1
> >>>>   /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
> >>>>   /usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
> >>>>
> >>>>Then I  those libs for the symbol, and don't find it... What does this mean?
> >>>>
> >>>>Thanks ..
> >>>>Jonathan
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>On Fri, 3 Sep 2004 10:01:01 -0500, QM <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>
> >>>>>On Fri, Sep 03, 2004 at 10:44:13AM -0400, Jonathan Rengifo wrote:
> >>>>>: nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
> >>>>>: [337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
> >>>>>: [640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
> >>>>>: [909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
> >>>>>: [938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3
> >>>>>:
> >>>>>: So it seems that the problem is on the libapr-0.so.0 because there
> >>>>>: is the variable "__divdi3" wich is reporting the relocation e

Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
I am really worry about speed, we have a very accessed news server and
speed was my really problem, but if you say its ok maybe I don't have
nothing to worry about.

Thanks for your time and attention

Regards 
Jonathan


On Fri, 03 Sep 2004 17:28:43 -0400, John Villar
<[EMAIL PROTECTED]> wrote:
> Well, maybe using TCP sockets will solve the problem, and worrying about
> using TCP on a production enviroment isn't a real issue, what do you
> think the vast mayority off production enviroments are using nowadays?
> ;-) also, if your problem is security, IPSec does the trick.
> just evaluate the pros and cons of using TCP sockets versus Unix sockets
> and you'll have the answer, TCP also gives you portability.... think
> seriously about it
> 
> Jonathan Rengifo escribió:
> 
> 
> 
> >I guess you are right, maybe there is a problem I can't definitive
> >handle, but I am worry about having this connector working via TCP
> >socket on production, because I guess this is not the better
> >configuration. Do you have experience working like this on a
> >production scenario?
> >
> >I am very thankful for you help, any other comments from you all is welcome...
> >
> >Regards
> >Jonathan
> >
> >
> >On Fri, 03 Sep 2004 17:02:37 -0400, John Villar
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>I remember an issue i was having with JNI where the Hotspot compiler and
> >>the JVM should have a proper directory structure, it was something like
> >>having a "client" and "server" directory could be that
> >>however... i think your main problem is that Solaris 9 has a broken lib
> >>that tomcat relies on :-(
> >>
> >>Jonathan Rengifo escribió:
> >>
> >>
> >>
> >>
> >>
> >>>I've already setup the CATALINA_HOME and TOMCAT_HOME path variables
> >>>
> >>>Any other suggestion? :'(
> >>>
> >>>Regards
> >>>Jonathan
> >>>
> >>>
> >>>On Fri, 03 Sep 2004 16:54:36 -0400, John Villar
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Maybe its because of the tomcat classpath, remember it doesn't use the
> >>>>system wide classpath, but its own  ;-)
> >>>>
> >>>>Jonathan Rengifo escribió:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>I made the test with succesful results, I guess it is a linking
> >>>>>problem, but don't know how to solve it..
> >>>>>
> >>>>>
> >>>>>On Fri, 03 Sep 2004 16:18:13 -0400, John Villar
> >>>>><[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Try to make a small java test (without tomcat) that use the unix sockets
> >>>>>>and see what happens maybe you can debug it and find what/where is
> >>>>>>happenning
> >>>>>>
> >>>>>>Jonathan Rengifo escribió:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi, all...
> >>>>>>>
> >>>>>>>My problem is definitive related with the libjkjni.so lib, when I add
> >>>>>>>the path of the library to the LD_LIBRARY_PATH I get the error
> >>>>>>>message:
> >>>>>>>
> >>>>>>>ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >>>>>>>/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >>>>>>>referenced symbol not found
> >>>>>>>
> >>>>>>>But, when take this path out of the LD_LIBRARY_PATH the error
> >>>>>>>disappears, but also disappears the AF_SOCKET support of the
> >>>>>>>connector, and got this message:
> >>>>>>>
> >>>>>>>INFO: APR not loaded, disabling jni components: java.io.IOException:
> >>>>>>>java.lang.Un

Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
I guess you are right, maybe there is a problem I can't definitive
handle, but I am worry about having this connector working via TCP
socket on production, because I guess this is not the better
configuration. Do you have experience working like this on a
production scenario?

I am very thankful for you help, any other comments from you all is welcome...

Regards 
Jonathan


On Fri, 03 Sep 2004 17:02:37 -0400, John Villar
<[EMAIL PROTECTED]> wrote:
> I remember an issue i was having with JNI where the Hotspot compiler and
> the JVM should have a proper directory structure, it was something like
> having a "client" and "server" directory could be that
> however... i think your main problem is that Solaris 9 has a broken lib
> that tomcat relies on :-(
> 
> Jonathan Rengifo escribió:
> 
> 
> 
> >I've already setup the CATALINA_HOME and TOMCAT_HOME path variables
> >
> >Any other suggestion? :'(
> >
> >Regards
> >Jonathan
> >
> >
> >On Fri, 03 Sep 2004 16:54:36 -0400, John Villar
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>Maybe its because of the tomcat classpath, remember it doesn't use the
> >>system wide classpath, but its own  ;-)
> >>
> >>Jonathan Rengifo escribió:
> >>
> >>
> >>
> >>
> >>
> >>>I made the test with succesful results, I guess it is a linking
> >>>problem, but don't know how to solve it..
> >>>
> >>>
> >>>On Fri, 03 Sep 2004 16:18:13 -0400, John Villar
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Try to make a small java test (without tomcat) that use the unix sockets
> >>>>and see what happens maybe you can debug it and find what/where is
> >>>>happenning
> >>>>
> >>>>Jonathan Rengifo escribió:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Hi, all...
> >>>>>
> >>>>>My problem is definitive related with the libjkjni.so lib, when I add
> >>>>>the path of the library to the LD_LIBRARY_PATH I get the error
> >>>>>message:
> >>>>>
> >>>>>ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >>>>>/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >>>>>referenced symbol not found
> >>>>>
> >>>>>But, when take this path out of the LD_LIBRARY_PATH the error
> >>>>>disappears, but also disappears the AF_SOCKET support of the
> >>>>>connector, and got this message:
> >>>>>
> >>>>>INFO: APR not loaded, disabling jni components: java.io.IOException:
> >>>>>java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
> >>>>>
> >>>>>Because of this error I did put the libjkjni.so lib on the LD_LIBRARY_PATH...
> >>>>>
> >>>>>Any suggestions??
> >>>>>
> >>>>>Regards
> >>>>>Jonathan
> >>>>>
> >>>>>
> >>>>>
> >>>>>On Fri, 3 Sep 2004 11:50:11 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi, thanks for your very important help..
> >>>>>>
> >>>>>>I ran the ldd utility on the libapr-0.so.0 lib, with the following results:
> >>>>>>
> >>>>>>/usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
> >>>>>>  libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
> >>>>>>  librt.so.1 =>/usr/lib/librt.so.1
> >>>>>>  libm.so.1 => /usr/lib/libm.so.1
> >>>>>>  libsocket.so.1 =>/usr/lib/libsocket.so.1
> >>>>>>  libnsl.so.1 =>   /usr/lib/libnsl.so.1
> >>>>>>  libresolv.so.2 =>/usr/lib/libresolv.so.2
> >>>>>>  libpthread.so.1 =>   /usr/lib/libpthread.so.1
> >>>>>>  libdl.so.1 =>/usr/lib/libdl.so.1
> >>>>>>  libc.so.1 => /usr/lib/libc.so.1
> >>>>>> 

Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
I've already setup the CATALINA_HOME and TOMCAT_HOME path variables

Any other suggestion? :'(

Regards 
Jonathan


On Fri, 03 Sep 2004 16:54:36 -0400, John Villar
<[EMAIL PROTECTED]> wrote:
> Maybe its because of the tomcat classpath, remember it doesn't use the
> system wide classpath, but its own  ;-)
> 
> Jonathan Rengifo escribió:
> 
> 
> 
> >I made the test with succesful results, I guess it is a linking
> >problem, but don't know how to solve it..
> >
> >
> >On Fri, 03 Sep 2004 16:18:13 -0400, John Villar
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>Try to make a small java test (without tomcat) that use the unix sockets
> >>and see what happens maybe you can debug it and find what/where is
> >>happenning
> >>
> >>Jonathan Rengifo escribió:
> >>
> >>
> >>
> >>
> >>
> >>>Hi, all...
> >>>
> >>>My problem is definitive related with the libjkjni.so lib, when I add
> >>>the path of the library to the LD_LIBRARY_PATH I get the error
> >>>message:
> >>>
> >>>ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >>>/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >>>referenced symbol not found
> >>>
> >>>But, when take this path out of the LD_LIBRARY_PATH the error
> >>>disappears, but also disappears the AF_SOCKET support of the
> >>>connector, and got this message:
> >>>
> >>>INFO: APR not loaded, disabling jni components: java.io.IOException:
> >>>java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
> >>>
> >>>Because of this error I did put the libjkjni.so lib on the LD_LIBRARY_PATH...
> >>>
> >>>Any suggestions??
> >>>
> >>>Regards
> >>>Jonathan
> >>>
> >>>
> >>>
> >>>On Fri, 3 Sep 2004 11:50:11 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi, thanks for your very important help..
> >>>>
> >>>>I ran the ldd utility on the libapr-0.so.0 lib, with the following results:
> >>>>
> >>>>/usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
> >>>>   libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
> >>>>   librt.so.1 =>/usr/lib/librt.so.1
> >>>>   libm.so.1 => /usr/lib/libm.so.1
> >>>>   libsocket.so.1 =>/usr/lib/libsocket.so.1
> >>>>   libnsl.so.1 =>   /usr/lib/libnsl.so.1
> >>>>   libresolv.so.2 =>/usr/lib/libresolv.so.2
> >>>>   libpthread.so.1 =>   /usr/lib/libpthread.so.1
> >>>>   libdl.so.1 =>/usr/lib/libdl.so.1
> >>>>   libc.so.1 => /usr/lib/libc.so.1
> >>>>   libaio.so.1 =>   /usr/lib/libaio.so.1
> >>>>   libmd5.so.1 =>   /usr/lib/libmd5.so.1
> >>>>   libmp.so.2 =>/usr/lib/libmp.so.2
> >>>>   libthread.so.1 =>/usr/lib/libthread.so.1
> >>>>   /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
> >>>>   /usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
> >>>>
> >>>>Then I  those libs for the symbol, and don't find it... What does this mean?
> >>>>
> >>>>Thanks ..
> >>>>Jonathan
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>On Fri, 3 Sep 2004 10:01:01 -0500, QM <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>On Fri, Sep 03, 2004 at 10:44:13AM -0400, Jonathan Rengifo wrote:
> >>>>>: nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
> >>>>>: [337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
> >>>>>: [640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
> >>>>>: [909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
> >>>>>: [938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3
> >>>>>:
> >>>>>: So it seems that the problem is on the libapr-0.so.0 because there
> >>>>>: is the variable "__divdi3" wich is reporting the relocation error
> >>>>>
> >>>&

Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
I made the test with succesful results, I guess it is a linking
problem, but don't know how to solve it..


On Fri, 03 Sep 2004 16:18:13 -0400, John Villar
<[EMAIL PROTECTED]> wrote:
> Try to make a small java test (without tomcat) that use the unix sockets
> and see what happens maybe you can debug it and find what/where is
> happenning
> 
> Jonathan Rengifo escribió:
> 
> 
> 
> >Hi, all...
> >
> >My problem is definitive related with the libjkjni.so lib, when I add
> >the path of the library to the LD_LIBRARY_PATH I get the error
> >message:
> >
> >ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >referenced symbol not found
> >
> >But, when take this path out of the LD_LIBRARY_PATH the error
> >disappears, but also disappears the AF_SOCKET support of the
> >connector, and got this message:
> >
> >INFO: APR not loaded, disabling jni components: java.io.IOException:
> >java.lang.UnsatisfiedLinkError: no jkjni in java.library.path
> >
> >Because of this error I did put the libjkjni.so lib on the LD_LIBRARY_PATH...
> >
> >Any suggestions??
> >
> >Regards
> >Jonathan
> >
> >
> >
> >On Fri, 3 Sep 2004 11:50:11 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi, thanks for your very important help..
> >>
> >>I ran the ldd utility on the libapr-0.so.0 lib, with the following results:
> >>
> >>/usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
> >>libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
> >>librt.so.1 =>/usr/lib/librt.so.1
> >>libm.so.1 => /usr/lib/libm.so.1
> >>libsocket.so.1 =>/usr/lib/libsocket.so.1
> >>libnsl.so.1 =>   /usr/lib/libnsl.so.1
> >>libresolv.so.2 =>/usr/lib/libresolv.so.2
> >>libpthread.so.1 =>   /usr/lib/libpthread.so.1
> >>libdl.so.1 =>/usr/lib/libdl.so.1
> >>libc.so.1 => /usr/lib/libc.so.1
> >>libaio.so.1 =>   /usr/lib/libaio.so.1
> >>libmd5.so.1 =>   /usr/lib/libmd5.so.1
> >>libmp.so.2 =>/usr/lib/libmp.so.2
> >>libthread.so.1 =>/usr/lib/libthread.so.1
> >>/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
> >>/usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
> >>
> >>Then I  those libs for the symbol, and don't find it... What does this mean?
> >>
> >>Thanks ..
> >>Jonathan
> >>
> >>
> >>
> >>
> >>On Fri, 3 Sep 2004 10:01:01 -0500, QM <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>On Fri, Sep 03, 2004 at 10:44:13AM -0400, Jonathan Rengifo wrote:
> >>>: nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
> >>>: [337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
> >>>: [640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
> >>>: [909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
> >>>: [938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3
> >>>:
> >>>: So it seems that the problem is on the libapr-0.so.0 because there
> >>>: is the variable "__divdi3" wich is reporting the relocation error
> >>>
> >>>What happens when you run ldd on libapr-0.so.0, and skim those libs for
> >>>the symbol?
> >>>
> >>>Note especially any libs that ldd claims it can't find.
> >>>
> >>>
> >>>
> >>>-QM
> >>>
> >>>--
> >>>
> >>>software  -- http://www.brandxdev.net
> >>>tech news -- http://www.RoarNetworX.com
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> --
> John Villar
> Gerente de Proyectos
> Computadores Flor Hard Soft 2058 C.A.
> www.florhard.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
Hi, all...

My problem is definitive related with the libjkjni.so lib, when I add
the path of the library to the LD_LIBRARY_PATH I get the error
message:

ld.so.1: /usr/java/bin/java: fatal: relocation error: file
/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
referenced symbol not found

But, when take this path out of the LD_LIBRARY_PATH the error
disappears, but also disappears the AF_SOCKET support of the
connector, and got this message:

INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path

Because of this error I did put the libjkjni.so lib on the LD_LIBRARY_PATH...

Any suggestions??

Regards
Jonathan



On Fri, 3 Sep 2004 11:50:11 -0400, Jonathan Rengifo <[EMAIL PROTECTED]> wrote:
> Hi, thanks for your very important help..
> 
> I ran the ldd utility on the libapr-0.so.0 lib, with the following results:
> 
> /usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
> libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
> librt.so.1 =>/usr/lib/librt.so.1
> libm.so.1 => /usr/lib/libm.so.1
> libsocket.so.1 =>/usr/lib/libsocket.so.1
> libnsl.so.1 =>   /usr/lib/libnsl.so.1
> libresolv.so.2 =>/usr/lib/libresolv.so.2
> libpthread.so.1 =>   /usr/lib/libpthread.so.1
> libdl.so.1 =>/usr/lib/libdl.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libaio.so.1 =>   /usr/lib/libaio.so.1
> libmd5.so.1 =>   /usr/lib/libmd5.so.1
> libmp.so.2 =>/usr/lib/libmp.so.2
> libthread.so.1 =>/usr/lib/libthread.so.1
> /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
> /usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
> 
> Then I  those libs for the symbol, and don't find it... What does this mean?
> 
> Thanks ..
> Jonathan
> 
> 
> 
> 
> On Fri, 3 Sep 2004 10:01:01 -0500, QM <[EMAIL PROTECTED]> wrote:
> > On Fri, Sep 03, 2004 at 10:44:13AM -0400, Jonathan Rengifo wrote:
> > : nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
> > : [337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
> > : [640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
> > : [909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
> > : [938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3
> > :
> > : So it seems that the problem is on the libapr-0.so.0 because there
> > : is the variable "__divdi3" wich is reporting the relocation error
> >
> > What happens when you run ldd on libapr-0.so.0, and skim those libs for
> > the symbol?
> >
> > Note especially any libs that ldd claims it can't find.
> >
> >
> >
> > -QM
> >
> > --
> >
> > software  -- http://www.brandxdev.net
> > tech news -- http://www.RoarNetworX.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
Hi, thanks for your very important help..

I ran the ldd utility on the libapr-0.so.0 lib, with the following results:

/usr/local/apache-httpd-2.0.50/lib ldd libapr-0.so.0
libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
librt.so.1 =>/usr/lib/librt.so.1
libm.so.1 => /usr/lib/libm.so.1
libsocket.so.1 =>/usr/lib/libsocket.so.1
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libresolv.so.2 =>/usr/lib/libresolv.so.2
libpthread.so.1 =>   /usr/lib/libpthread.so.1
libdl.so.1 =>/usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libaio.so.1 =>   /usr/lib/libaio.so.1
libmd5.so.1 =>   /usr/lib/libmd5.so.1
libmp.so.2 =>/usr/lib/libmp.so.2
libthread.so.1 =>/usr/lib/libthread.so.1
/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1

Then I  those libs for the symbol, and don't find it... What does this mean?

Thanks ..
Jonathan




On Fri, 3 Sep 2004 10:01:01 -0500, QM <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 03, 2004 at 10:44:13AM -0400, Jonathan Rengifo wrote:
> : nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
> : [337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
> : [640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
> : [909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
> : [938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3
> :
> : So it seems that the problem is on the libapr-0.so.0 because there
> : is the variable "__divdi3" wich is reporting the relocation error
> 
> What happens when you run ldd on libapr-0.so.0, and skim those libs for
> the symbol?
> 
> Note especially any libs that ldd claims it can't find.
> 
> 
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-03 Thread Jonathan Rengifo
Hi all...

I ran the ldd utility on the jni dynamic library "libjkjni.so" with
the following results:

ldd libjkjni.so 
libcrypt_i.so.1 =>   /usr/lib/libcrypt_i.so.1
libapr-0.so.0 =>
/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0
libc.so.1 => /usr/lib/libc.so.1
libgen.so.1 =>   /usr/lib/libgen.so.1
libsendfile.so.1 =>  /usr/lib/libsendfile.so.1
librt.so.1 =>/usr/lib/librt.so.1
libm.so.1 => /usr/lib/libm.so.1
libsocket.so.1 =>/usr/lib/libsocket.so.1
libnsl.so.1 =>   /usr/lib/libnsl.so.1
libresolv.so.2 =>/usr/lib/libresolv.so.2
libpthread.so.1 =>   /usr/lib/libpthread.so.1
libdl.so.1 =>/usr/lib/libdl.so.1
libaio.so.1 =>   /usr/lib/libaio.so.1
libmd5.so.1 =>   /usr/lib/libmd5.so.1
libmp.so.2 =>/usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
libthread.so.1 =>/usr/lib/libthread.so.1
/usr/platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1


I notice that the library suposed to have the problem was there
"/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0" so I ran "nm"
utility on it with the following results:

nm /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0 | grep div
[337]   | 0|   0|FUNC |GLOB |0|UNDEF  |.div
[640]   | 0|   0|FUNC |GLOB |0|UNDEF  |.udiv
[909]   | 0|   0|NOTY |GLOB |0|UNDEF  |__divdi3
[938]   | 0|   0|NOTY |GLOB |0|UNDEF  |__udivdi3

So it seems that the problem is on the libapr-0.so.0 because there
is the variable "__divdi3" wich is reporting the relocation error

One more thing, the Apache2 and the JK2 connector was configured and
make by me on box..

Thanks all... Any comments would be very helpful

Regards

Jonathan




On Fri, 03 Sep 2004 09:13:58 -0400, John Villar
<[EMAIL PROTECTED]> wrote:
> 
> >1-Sep-2004 1:46:26 PM org.apache.jk.common.ChannelSocket init
> >INFO: JK2: ajp13 listening on /0.0.0.0:8009
> >
> >
> These two lines say that the JK2 connector has started normally it
> seems to me that the problem isn't on the java side
> 
> >ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> >/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> >referenced symbol not found
> >
> >
> Here's the problem. first things first. find what libraries do
> uses "libapr", then try to see if all the files are in your path, use
> the which command, or was it whereis? :-S
> 
> >This causes tomcat not to start, I don't really know what to do about
> >this. I read some forum posted message about the "symbol __divdi3:
> >referenced symbol not found" and they said this is because of some
> >glibc 2.0 stuff, but didn't find any solution to thisâ
> >
> >
> certainly, Solaris is a real pain with the glibc issue try to
> compile apache from source in that box
> 
> --
> John Villar
> Gerente de Proyectos
> Computadores Flor Hard Soft 2058 C.A.
> www.florhard.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-02 Thread Jonathan Rengifo
I ran ldd utility on mod_jk.so (compiled by me) with the following results:

/usr/local/apache/modules ldd mod_jk2.so  
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 =>/usr/lib/libdl.so.1
/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1

Then I ran ...

/usr/lib nm libdl.so.1 | grep divdi3
/usr/lib nm libc.so.1 | grep divdi3
/usr/platform/SUNW,Sun-Fire-V210/lib nm libc_psr.so.1 | grep divdi3

With no results, I mean, there was no output..

I compiled Apache2 and JK2 connector by my self, and during this
process I didn't get any error message

My LD_LIBRARY_PATH=/opt/csw/lib:/usr/local/apache/modules

Any other suggestion?

Thanks for your help

Regards ...

Jonathan




On Thu, 2 Sep 2004 17:38:46 -0500, QM <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 02, 2004 at 06:25:53PM -0400, Jonathan Rengifo wrote:
> : 1-Sep-2004 1:46:26 PM org.apache.jk.common.ChannelSocket init
> : INFO: JK2: ajp13 listening on /0.0.0.0:8009
> : ld.so.1: /usr/java/bin/java: fatal: relocation error: file
> : /usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
> : referenced symbol not found
> 
> The error means that the specified symbol -- loosely put, a C/C++
> variable or function -- wasn't available within the currently executing
> program's binary, nor any of the shared libs it loaded.
> 
> Tracking down missing symbols can be a pain, especially if you didn't
> compile everything yourself from source.
> 
> It could be as simple as a missing dir in LD_LIBRARY_PATH (especially
> since the Tomcat user's environment may not the same as the build-user's
> environment), or something as nasty as subtle linking problem.
> 
> Run "ldd" on mod_jk2.so to see what libs it needs, then run "nm" on
> those libraries to see which one defines "__divdi3."
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fatal: relocation error: file libapr-0.so.0: symbol __divdi3: referenced symbol not found

2004-09-02 Thread Jonathan Rengifo
Hi ...

I've install Apache2 and Tomcat5 last versions from the Apache project
web page, and they are currently well running standalone in my 64 bits
Solaris 9 Box, but now I need to connect them, so I installed the new
mod_jk2 connector, with succeeding results at the configure and make
steps, following the "HOWTO set up JK2 on Solaris 9 using ChannelUnix
(AF_UNIX socket)" document from
http://archives.real-time.com/pipermail/tomcat-users/2002-November/085985.html.
I also setup and export the environment variable
LD_LIBRARY_PATH=/usr/java/jre/bin and soft-link the libjkjni.so
dynamic library file from the $APACHE/module/libjkjni.so to the
LD_LIBRARY_PATH so I can avoid this error message:
 
But now, I am facing a problem while starting tomcatâ This is what I
see in my catalina.out log file:

 
1-Sep-2004 1:46:23 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9092
1-Sep-2004 1:46:23 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2007 ms
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Standalone
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
1-Sep-2004 1:46:25 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
1-Sep-2004 1:46:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9092
1-Sep-2004 1:46:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
ld.so.1: /usr/java/bin/java: fatal: relocation error: file
/usr/local/apache-httpd-2.0.50/lib/libapr-0.so.0: symbol __divdi3:
referenced symbol not found

This causes tomcat not to start, I don't really know what to do about
this. I read some forum posted message about the "symbol __divdi3:
referenced symbol not found" and they said this is because of some 
glibc 2.0 stuff, but didn't find any solution to thisâ

The worker2property, jk.property and httpd.conf configuration files
are setup correctly.

Please, any comment from you would be very helpful.


Thanks.

Jonathan M. Rengifo
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]