naveen jain

Greenhorn
+ Follow
since Oct 02, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by naveen jain

Hi,
i have deployed tomcat 5.5 in our sun solaris server and many applicaton are running on it which connects to 8-10 different different database . applications are running fine but if any of my database goes down then my whole tomcat server goes also down after some time and no application runs at that time.
i have put maxThreads to 150 in my server.xml file. is it right to put -1 as maxThreads ?
or there is any other solution to keep my tomcat running fine ??

please help

Thanks
Naveen Jain
14 years ago
Hi,

I wants a solution which can run on at least IE and mozilla browser. actually we are providing a free wifi service to our customers but only one time, so i need to identify the user uniquely for that i think MAC is a good option so that customer can not get our free service more than once.

Have you any idea to get MAC address on any browser or any other idea to identify the user's machine uniquely.

Thanks for your reply


14 years ago
JSP
Hi,

I want to get the MAC address of the client system on which my page is running.I am using jdk1.5 .

please help


Thanks in advance
Naveen Jain
14 years ago
JSP
i wants to write logs in different file for each application instead of writting logs in common file catalina.out file.
so i have to crate diffrent instances.
15 years ago
Hello,

i have three separete web application. and if i would have only one instance then one problem arise that is , if i wants to stop only one application for some time than i have to stop whole tomcat and my all other two application will also stop that i dont wants. thats why i m using diferent instances.

is there any mehod to stop only one application at time??
15 years ago
Hi,
I have two tomcat(5.5.27) instances on same machine. I put some of my jar files in common/lib folder of one tomcat instance, now i wants that these same jar files should be accessible from other tomcat instanse also , without putting these files in second tomcat common/lib folder.

Is there any method for it??
please give me some idea.
15 years ago
Hi,

I have three services in my one instance of tomcat , running on different ports and different applications are running on these different ports. Now i wants that logs for these different services (port) should be written in different files instead of only one logs/Catalina.out file.

is it possible..?

my server.xml look like this:::

<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/.keystore" keystorePass="changeit" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>

<Service name="CatalinaSecond">
<Connector port="8081" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<Engine name="CatalinaSecond" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="intranet"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
</Host>
</Engine>
</Service>

</server>

pl. help.

Thanks


15 years ago
Hi,

I have three services in my one instance of tomcat , running on different ports and different applications are running on these different ports. Now i wants that logs for these different services (port) should be written in different files instead of only one logs/Catalina.out file.

is it possible..?

here is my server.xml file::::


<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">

<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

<GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />

<Resource
name="jdbc/pinstg"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
password="pin"
maxIdle="2"
maxWait="5000"
removeAbandoned="true"
logAbandoned="true"
validationQuery="select * from account_t where account_no='7792'"
username="pin"
url="jdbc:oracle:thin:@172.16.1.23:1521:pindb"
removeAbandonedTimeout="60"
maxActive="10"/>
<Resource
name="jdbc/wfps"
type="javax.sql.DataSource"
password="wfpsstg"
driverClassName="oracle.jdbc.OracleDriver"
maxIdle="2"
maxWait="5000"
removeAbandoned="true"
logAbandoned="true"
validationQuery="select obj_id from test"
username="wfpsstg"
url="jdbc:oracle:thin:@172.16.1.13:1521:appsdb"
removeAbandonedTimeout="60"
maxActive="10"/>

</GlobalNamingResources>

<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/.keystore" keystorePass="changeit" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>

<Service name="CatalinaSecond">
<Connector port="8081" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<Engine name="CatalinaSecond" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="intranet"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
</Host>
</Engine>
</Service>

<Service name="CatalinaThird">
<Connector port="8082" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<Engine name="CatalinaThird" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="default"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
</Host>
</Engine>
</Service>


</Server>



pl. help.

Thanks

15 years ago
Hi,
i am using axis libraries for web services.this service returns a bean object so i add following code in my AtomService.wsdd file:-

<beanMapping languageSpecificType="java:com.you.atom.AtomBean"
qname="ns1:AtomBean" xmlns:ns1="urn:com.you.atom" />

this code works but when i am creating a web service client on same server then i am getting exception :-

org.xml.sax.SAXException: No deserializer defined for array type {urn:com.you.atom}AtomBean

how can i deserialize my bean class.?

pl. help me
15 years ago
hi,
i am using axis libraries for web service.i am trying to create a web service client that calls a web service function which returns a hasp map object
but how can i set return type of this call.

Service service = new Service();
Call call = (Call) service.createCall();
call.setOperationName( new QName("http://203.187.192.19:8080/axis/services
/AtomService", "get_cust_info") );
HashMap hsmap= (HashMap) call.invoke( new Object[] { args[ 0 ] } );


this code gives "org.xml.sax.SAXParseException: Premature end of file."
exception


please help me.
15 years ago
I am using more than one Services in my server.xml to run different application on different port,but i am not able to open tomcat manager.

only one tomcat manager is opening which is on default port 8080 but remaining port is not opening manager.
my server.xml looks like this

..........
<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/.keystore" keystorePass="changeit" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>

<Service name="CatalinaSecond">
<Connector port="8081" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<Engine name="CatalinaSecond" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false" >
</Host>
</Engine>
</Service>
...........

please help me.

Thanks
15 years ago
I have tomcat 5.5 web server. i am putting some class files in CATALINA_HOME/common/lib directory without putting these files in any jar
but after restarting the server jsp page is not able to find these files in classpath.
but if i put these files in a jar file then only jsp page can find these files.
is there any method to add simple class files in common/lib w/o creating jar files.
15 years ago
thanks for your suggestion.
i will try to avoid such type of mistake from developers end.

thanks a lot.
15 years ago
Thank you very much for your reply.I have found my solution.

But as you said some performance issue is there,so is there any solution for that ?
and also give me suggestion whether i should use more than one service or not?

Thanks again
15 years ago