Tomcat is not working correctly, Why? - catalina

I have downloaded a binary version of tomcat server to my windows machine. After that I have unzipped it to C drive and set tomcat home and it's path as follows: -
TOMCAT_HOME = C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6
Path = C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin
While I am trying to run it through command line as
catalina run
It gives the following error
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Therefore I changed TOMCAT_HOME to CATALINA_HOME. In this case there is error but it gives following output
Using CATALINA_BASE: "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6"
Using CATALINA_HOME: "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6"
Using CATALINA_TMPDIR: "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_101"
Using CLASSPATH: "C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin\bootstrap.jar;C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\bin\tomcat-juli.jar"
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\Apache\Tomcat\apache-tomcat-8.5.6\logs\localhost_access_log.2016-10-17.txt (Access is denied)
... ... ...
... ... ...
I have 2 questions and those are: -
Is it mandatory to put CATALINA_HOME instead of TOMCAT_HOME?
How do I grant for access log file(s)?

Related

.cmd files are not getting executed except "startweblogic.cmd" in Weblogic, for the rest the command window is getting closed immediately

I have set environment variable for JAVA_HOME and SQL driver .jar file.
C:\Program Files\Java\jdk1.8.0_151;
and
C:\Users\appuser\Downloads\InforSoftwares\sqljdbc41.jar

orientdb unable to install on windows 2008 R2

I have followed the steps in the url but I'm getting the following error when I run the installService.bat file. Please help me to get this db up and running.
F:\orientdb-community-2.2.4\service>installService.bat C:\Program
Files (x86)\Ja va\jdk1.8.0_92\jre\bin\server\jvm.dll
F:\sysnet\openempi\openempi-entity-3.1.0 The system cannot find the
path specified. Unable to create logger at ''
does OrientDB 2.2.4 run successfully for you in its stand-alone server mode using server.bat?

Unable to run node on cmd windows 7

C:\Windows\system32>echo %path%
C:\Program Files\Apache Software Foundation\apache-maven-3.2.2\bin";C:\Windows\S
ystem32;C:\Program Files (x86)\Heroku\bin;C:\Program Files\nodejs\;C:\Git\cmd;C:
\Git\bin;C:\Program Files\apache-ant-1.9.4\bin;C:\Program Files (x86)\Android\an
droid-studio\sdk\platform-tools;C:\Program Files (x86)\Android\android-studio\sd
k\tools;C:\Program Files\Java\jdk1.7.0_05\bin;C:\Program Files\Java\jdk1.7.0_05\
bin;
C:\Windows\system32>node
'node' is not recognized as an internal or external command,
operable program or batch file.
Set its installation directory path
SET PATH=C:\Program Files\Nodejs;%PATH%
and the module location path
C:\Users\AAhad\AppData\Roaming\npm;
and then on console run node
and check this as well: Node.js doesn't recognize system path?

Compiling Apache spark 1.1.0 on for localhost mode on windows 8 x64 PC? See specific errors

I've explicitly installed Java 8 SDK, Scala-IDE (modified eclipse), the normal Eclipse IDE, and sbt though not in that order. I don't really remember the order in which I installed those. I was sort of confused how to set up my environment variables when I have both the vanilla Eclipse IDE and Scala IDE's installed as opposed to just the command line tools, as these installations seem to organized the language environment differently that the command line installations do? So I wasn't what to point the variables to?
My understanding is that the CLASS_PATH environment variable is for user-defined classes, of which for my current project I have none. Beyond this. I have the following environment variable setup. I am on windows 8 x64.
SBT_HOME = C:\Program Files (x86)\sbt
JRE_HOME = C:\Program Files\Java\jre1.8.0_20
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_20
Path = %JRE_HOME%\bin;%JAVA_HOME%\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\scala\bin;C:\Program Files (x86)\sbt\bin;...(only relevant paths shown)
Upon downloading and extracting Apache Spark 1.1.0 and uncompressing it and entering into the uncompressed top level folder ~/(apache spark folder)/, and attempting to run sbt/sbt assembly of which I receive the following error using the cygwin command prompt.
[error] (streaming-flume-sink/compile:compile) java.io.IOException: Cannot run p
rogram "javac": CreateProcess error=2, The system cannot find the file specified
[error] (core/compile:compile) java.io.IOException: Cannot run program "javac":
CreateProcess error=2, The system cannot find the file specified
[error] Total time: 551 s, completed Oct 28, 2014 5:24:00 PM
So the error appeared to be that I can't run javac in cygwin. Well, I can't. So I tried the windows prompt as well, where my command javac actually works (since the enviro variables are setup.) And I get the following error when again attempting
`sbt/sbt assembly`.
C:\Program Files (x86)\spark-1.1.0>sbt\sbt assembly
'sbt\sbt' is not recognized as an internal or external command,
operable program or batch file.
>sbt/sbt assembly
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
[info] Loading project definition from C:\Program Files (x86)\spark-1.1.0\project\projec
t
[info] Loading project definition from C:\Users\jim\.sbt\0.13\staging\ec3aa8f391
11944cc5f2\sbt-pom-reader\project
[warn] Multiple resolvers having different access mechanism configured with same
name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolve
rs (`resolvers`) or rename publishing resolver (`publishTo`).
[info] Loading project definition from C:\Program Files (x86)\spark-1.1.0\project
[error] Expected symbol
[error] Not a valid command: /
[error] /sbt
[error] ^
but all kinds of variants of the same command don't work either, switching out slash types( sbt\sbt assembly).
I've also got spark in a folder that has no spaces: C:\Program Files (x86)\spark.
What in tarnation do I need to do to assemble/compile Spark?
Thanks a million.
Ran into the same problem in Windows8 and following steps fixed the issue
Create a folder which doesn't have space and copy over the content from Program Files/Java
Update the PATH and JAVA_HOME to the new path
Launch Cygwin and Try running javac command to make sure the environment variables are set properly
Though not related to this issue, Scala Installed directory should not have any space. I see that you have installed in Program Files

JVMSHRC559E Failed to create a directory \"%s\" for the shared class cache while creating server for Websphere liberty profile

I have installed websphere liberty profile and trying to create a server
from Websphere/liberty/bin: server create server1
below errors comes
JVMSHRC559E Failed to create a directory "C:\Program Files\IBM\WebSphere\Liberty\usr\servers\.classCache" for the shared class cache
CWWKE0005E: The runtime environment could not be launched.
CWWKE0066E: An exception occurred while creating server server2 at location C:\Program Files\IBM\WebSphere\Liberty\usr\servers\server2.
com.ibm.ws.kernel.boot.LocationException: Unable to create server directory C:\Program Files\IBM\WebSphere\Liberty\usr\servers\server2
at com.ibm.ws.kernel.boot.BootstrapConfig.verifyServer(BootstrapConfig.java:684)
at com.ibm.ws.kernel.boot.Launcher.createPlatform(Launcher.java:106)
at com.ibm.ws.kernel.boot.Launcher.main(Launcher.java:55)
at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:52)
Java home: C:\Program Files\IBM\WebSphere\Liberty\java\java_1.7_64\jre
Install root: C:/Program Files/IBM/WebSphere/Liberty/
System libraries: C:/Program Files/IBM/WebSphere/Liberty/lib/
User root: C:/Program Files/IBM/WebSphere/Liberty/usr/
Server config: C:/Program Files/IBM/WebSphere/Liberty/usr/servers/server2/
Server output: C:/Program Files/IBM/WebSphere/Liberty/usr/servers/server2/
The problem (as bkail is correct in pointing out), is that the server directory can't be created due to permissions.
Given that you have Liberty installed in the Program Files directory, I would recommend setting the WLP_USER_DIR to move configuration files and servers into a directory you can write to, like C:\Users\\Liberty.
Create a server.env file in the C:\Program Files\IBM\WebSphere\Liberty\etc\ directory, and add the following:
WLP_USER_DIR=C:\Users\\Liberty
(or whatever you choose).
When you run subsequent create/start/stop/etc. operations, it will look for servers and configuration data in that directory instead, which should eliminate the requirement for administrative permissions in order to work with liberty servers.

Resources