Tomcat not extracting ROOT.war - tomcat6

Tomcat not extracting ROOT.war if i copy ROOT.war to test.war then it is extracted as test and everything okay.Why can be this happens.I am using tomcat 6.0.29 version.

After deleting work directory under tomcat its working .

Related

Neo4j APOC configuration not working on the CentOS 7

I have deployed a ReactJS application with neo4j database on CentOS 7 server. Neo4j version is 4.4.2. The application also uses apoc library. So i added apoc-4.4.0.1-all.jar file to the /var/lib/neo4j/plugins directory on the server. Then i did following-
chown neo4j:neo4j apoc-4.4.0.1-all.jar
chmod 755 apoc-4.4.0.1-all.jar
Modify /etc/neo4j/neo4j.conf file to
dbms.security.procedures.whitelist=apoc.coll.*,apoc.load.*,apoc.*
dbms.security.procedures.unrestricted=apoc.*
uncomment dbms.directories.plugins=/var/lib/neo4j/plugins
systemctl restart neo4j
After deploying the project, when i open the application on the browser and insert some values in a form, it shows following error-
Unknown function 'apoc.map.submap' (line 3, column 14 (offset: 56)) " WHERE apoc.map.submap(properties(n), keys(obj), [], false) = obj" ^
Did i miss anything in apoc configuration ?
Try changing the plugin directory from: /var/lib/neo4j/plugins to /var/lib/neo4j/graph.db/plugins directory then restart the neo4j server. You need to create the folder if not found.
If you install neo4j using an installer rather than download/untar/unzip a zipped/tar file; then neo4j server is looking at the apoc under default.graphdb folder
related: APOC is only partially installing its extension in neo4j (one procedure)
The ownership of /var/lib/neo4j/data folder has to be neo4j, not root

Where is the ear file located, when deployed to Jboss

Ear file was deployed on Jboss (wildfly 8.1, if it matters)
I need to investigate what version of the ear file it is, and the name does not have it. So, need to look into ear's manifest file. (I know version is there).
But, I do not know where the ear is located under JBOSS folder structure ?
Can anyone help ?
..\JBOSSHOME\domain\servers\MyServerName ?? what else ?
It is deployed under the content folder of your server. But it will be respecting he hash of it and the name.ear has been renamed as content. With WildFly > 14 you can use exploded deployments and read the deployment content directly from the jboss cli.

Solr - Solr Deployment not showing in Jboss

I have Jboss 7 running in Linux system. and I had deployed Solr 3.5 in it. It was working fine before.
After some days, Today when I started jboss 7 , it does not start my solr 3.5 . my sorl.war file exist at jboss-as-web-7.0.2.Final/standalone/deployments/
such issue also occured some times before, when my war deployment shows solr.war.failed in deployments. and i was able to resolve it by just moving / renaming that file.
But currently I am unable to deploy my was file and not showing as running when I start Jboss.
Below is response when i start jboss
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss-as-web-7.0.2.Final
JAVA: /usr/lib/jvm/jdk1.7.0_40/bin/java
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
I also tried by creating war file again and again deploy it.
Please help me to resolve this issue. how can i make it running??
Thanks
Make sure your solr.war is placed in jboss-as-web-7.0.2.Final/standalone/deployments/ and add an empty file named solr.war.dodeploy right next to the war.. If the deploy fails, copy the full stacktrace of the error.

Apache 2.4.6 and Apache Tomcat 7.0.42 on Port 80

On my Ubuntu 13.10 I have installed Apache and Tomcat. I am trying to get tomcat to work on port 80 with no luck at all. I have looked at using mod_jk following several online tutorials with no success. What I am trying to achieve is I have a webapp on tomcat running as the root application. Therefore the current url is www.example.com:8080. I also have apache which is on the url www.example.com. I want to be able to access files on the apache webserver for e.g www.example.com/somefile but also have my webapp running at the sametime on www.example.com. Please can anyone help.
You need to add url redirection to apache and check for the path in apache httpd.conf.
Check the path of the incoming request is just example.com then you rewrite it to example.com:8080.
The mod_proxy of apache should be able to do this for you.
http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html
Apache Tomcat by default runs on port 8080. Incase if you need to run it in port 80 you need to use JSVC which comes along with tomcat. If you have installed tomcat by downloading the binary version then jsvc will be available under
[tomcat_install_path]/bin/commons-daemon-native.tar.gz
you need to untar it and compile it. Compiling it is easy.
# ./configure
# make
once you have compiled it you will get the jsvc binary file which needs to be placed under the tomcat bin directory.
Then to start up tomcat with the help of jsvc follow the steps mentioned here
JSVC is the officially recommended way of starting Tomcat in port 80.
So I managed to solve this problem by Using Mod_Proxy. Editing the 000-Deafult.conf file in /etc/apache2/sites-enabled and adding the following lines:
ProxyPass /SomeUrl !
ProxyPass / http://localhost:8080/
The first line indicates what you don't want to proxy and the second one indicates what to proxy.In this case forward the ROOT app of Tomcat at port 8080 to the root of the Apache web server
Also edited the server.xml file in /etc/tomcat7 and added the following
<Connector port="8080" protocol="AJP/1.3" proxyName="www.mydomain.com" proxyPort="80"/>

Configuring Tomcat 6 Server on Plesk for Windows

I've windows 2008 R2 Server with Plesk 11.0.9 installed. Plesk has inbuilt version of Tomcat 5.5 and which is working fine. Now we want to update Tomcat Server and we have installed Tomcat 6 in the same directory where previous version is installed. Then we start Tomcat 6 Service and stopped Tomcat 5.5 service. We also restarted the server but still in plesk panel in server component it shows Tomcat 5 version and Tomcat 5 service is running :( , no luck with tomcat 6.
I google it and every where i only see tomcat 6 installation for Plesk with Linux server nothing for Plesk for Windows. Not even on Plesk forum.
We require to install konacart and for this we require tomacat 6, please help me.
First of all, you have to backup "C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat" folder to "C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat5.5"(for example).
Stop Tomcat service.
Than unzip apache-tomcat-6.0.36-windows-x86.zip to "C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat" with overwriting content.
Than replace server.xml file from old Tomcat 5.5 folder("C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat5.5\conf\server.xml") to folder with Tomcat 6.0 "C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat\conf\server.xml"
Than update key "ImagePath" in registry HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tomcat5\ to "C:\Program Files (x86)\Parallels\Plesk\Additional\Tomcat\bin\tomcat6.exe"
//RS//Tomcat5 (Tomcat5 here it's just service name )
Start Tomcat service.
I have tested this configuration with *.war applications and it's working for me.
Also there was error message like "TomcatManager::installVHost "Can't find Engine PSA" - it's because I don't use server.xml from Tomcat 5.5

Resources