Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

anup sadhu

Greenhorn
+ Follow
since Apr 19, 2015
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 anup sadhu

Hi,

Thanks for reply..

My context.xml

<Resource name="jdbc/appname" auth="Container" type="javax.sql.DataSource"
     maxTotal="10" maxIdle="5" maxWaitMillis="10000" removeAbandonedOnBorrow="true"
     username="root" password="passsword" driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://ipaddress(or localhost):3306/dbname?autoReconnect=true"
     connectionProperties="useUnicode=yes;characterEncoding=utf8;characterSetResults=UTF8;"
     validationQuery="select 1" removeAbandonedTimeout="60" testWhileIdle="true"
             timeBetweenEvictionRunsMillis="300000" />
             
Hi All.

MySQL showing error on centos. MySQL version 5.7

16:42:22,985 ERROR ConnectionProvider:71 - Connection Pooling : java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'null'
OnlineTE.org.common.en.exceptions.BIException

I have mention IP address or Localhost in connection string but still getting error. Unable to understand "null" value
Dear Sir,

I have successfully configure Tomcat service start & stop through browser using PHP script (win32_set_service_status).

Many Many thanks for your help.
6 years ago
Dear Sir,

Thanks for your valuable reply. I have PHP developer in my company. I will give you update on Wednesday.

6 years ago
Dear Sir,

Thanks reply.

I want to Start & Stop Tomcat service using browser. Some hosting companies providing Start & Stop facilities through browser.

I want to configure same thing in my network on Windows or Linux. Is it possible ?
6 years ago
Dear Sir,

Ok sir..Thanks again.

May I ask you another question?
6 years ago
Dear Sir,

Thank you very very much everything working fine. You saved me..Thanks again

6 years ago
Sir,

Sorry for late reply.

As per your reply please check my workers.properties :-


# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# workers.properties -
#
# This file provides jk derived plugins with the needed information to
# connect to the different tomcat workers. Note that the distributed
# version of this file requires modification before it is usable by a
# plugin.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#
#

# OPTIONS ( very important for jni mode )

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=/var/tomcat3

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/opt/IBMJava2-13

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

#
#------ ADVANCED MODE ------------------------------------------------
#---------------------------------------------------------------------
#

#
#------ DEFAULT worker list ------------------------------------------
#---------------------------------------------------------------------
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector
worker.list=ajp12, ajp13
# , inprocess


#
#------ DEFAULT ajp12 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection pool.
#worker.ajp13.connection_pool_size

#
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp12, ajp13


#
#------ DEFAULT JNI WORKER DEFINITION---------------------------------
#---------------------------------------------------------------------
#

#
# Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni

#
#------ CLASSPATH DEFINITION -----------------------------------------
#---------------------------------------------------------------------
#

#
# Additional class path components.
#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar

#
# Setting the command line for tomcat.
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=start

# Not needed, but can be customized.
#worker.inprocess.cmd_line=-config
#worker.inprocess.cmd_line=$(workers.tomcat_home)$(ps)conf$(ps)server.xml
#worker.inprocess.cmd_line=-home
#worker.inprocess.cmd_line=$(workers.tomcat_home)

#
# The JVM that we are about to use
#
# This is for Java2
#
# Windows
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll
# IBM JDK1.3
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so
# Unix - Sun VM or blackdown
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so

#
# And this is for jdk1.1.X
#
#worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll


#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

#
# Setting the tomcat.home Java property
#
#worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)

#
# Java system properties
#
# worker.inprocess.sysprops=java.compiler=NONE
# worker.inprocess.sysprops=myprop=mypropvalue

#
# Additional path components.
#
# worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
#

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties


Waiting for reply.
6 years ago
Sir,

Do you have any updated tutorial to configure mod_jk on Windows XP ?
6 years ago
Hi,

Thanks for reply. Please check httpd.conf (Related mod_jk.so)

LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so"

JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/workers.properties"

JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/from_apache_mod_jk.log"

JkLogLevel info

JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

#Send servlet for context /examples to worker named ajp13

JkMount /examples ajp13

#Send JSPs for context /examples/* to worker named ajp13

JkMount /examples ajp13

Waiting for reply.
6 years ago
Hi,

I need to configure mod_jk.so on Windows XP. I have done all necessary steps. Both services start properly. But when accessing http://localhost/examples/ it's showing (The requested URL /examples/ was not found on this server)

from_apache_mod_jk :-

[Tue Apr 28 18:10:08 2015][4040:2552] [warn] jk_map.c (410): The attribute 'worker.inprocess.class_path' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 28 18:10:08 2015][4040:2552] [warn] jk_map.c (410): The attribute 'worker.inprocess.cmd_line' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 28 18:10:08 2015][4040:2552] [warn] jk_map.c (410): The attribute 'worker.inprocess.jvm_lib' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 28 18:10:08 2015][4040:2552] [warn] jk_map.c (410): The attribute 'worker.inprocess.stdout' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 28 18:10:08 2015][4040:2552] [warn] jk_map.c (410): The attribute 'worker.inprocess.stderr' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 28 18:10:08 2015][4040:2552] [info] mod_jk.c (3018): mod_jk/1.2.27 initialized

Apache HTTPD log :-

[Tue Apr 28 18:17:29 2015] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/examples

Why Apache request not redirect to http://localhost/examples/
6 years ago
Hi,

mod_jk.so available in modules folder. I think it's 64bit OS issue. I have install same servers on 32bit os and it's working perfectly.

6 years ago
Hi,

Yes.

Event Viewer log

The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 484 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache Software Foundation/Apache2.2/modules/mod_jk.so into server: The specified procedure could not found
6 years ago
Hi,

I have install Tomcat 6.0 & Apache 2.2 to mod_jk connector. I have done all necessary steps but when I tried to start Apache service it's give "The requested operation has filed" error.

If I comment "LoadModule jk_module modules/mod_jk.so" Apache service start properly. mod_jk.so available in modules folder.

Please help.
6 years ago
Sir,

Hosting companies using index.cgi to start or stop Tomcat instance. Which softwares required to do that?

6 years ago