Posts

Showing posts with the label tomcat

Spring Boot Application immediately shuts down after starting in external TOMCAT

Spring Boot Application immediately shuts down after starting in external TOMCAT Spring boot immediately shuts down after starting in external TOMCAT. But in Eclipse this runs well and JAR with embed too. I use Tomcat 7 and JAVA 8. I read a lot of webs and documentation which do not exist. My Eclipse POM is: http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 <groupId>com.suez.demo</groupId> <artifactId>Myapp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <name>Myappname</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.6.RELEASE</version> <relativePath/> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <proje...

XAMPP SSL not working outside localhost

XAMPP SSL not working outside localhost I have configured apache for SSL like this- <VirtualHost *:443> ServerAdmin root@mysite.com ServerName mysite.com ServerAlias mysite.com ServerAlias www.mysite.com DefaultType text/html ErrorLog "logs/mysite.log" CustomLog "logs/mysiteCustom.log" common SSLEngine On #SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL #SSLCACertificateFile "D:xamppapacheconfsslca_bundle.crt" SSLCertificateFile "D:xamppapacheconfssl.crtserver.crt" SSLCertificateKeyFile "D:xamppapacheconfssl.keyserver.key" ProxyRequests off ProxyPreserveHost On ProxyPass / ajp://127.0.0.1:8009/ #smax=0 ttl=60 retry=5 #ProxyPass / http://localhost:8080/ #ProxyPassReverse / ajp://127.0.0.1:8009/ </VirtualHost> It works fine on localhost, but as I tries to access mysite.com from outside of localhost, browser says...

Appach Tomcat is shutting down automatically when i run it

Appach Tomcat is shutting down automatically when i run it In the last weeks Appach was working normally but today when i want to start appach-tomcat, it shuts down automatically, this is the log message in catalina : 29-Jun-2018 11:06:49.714 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 32769 ms 29-Jun-2018 11:06:49.745 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:420) at org.apache.catalina.s...

Did the contextPath is available as a placeHolder for defining the path of a properties files

Did the contextPath is available as a placeHolder for defining the path of a properties files Let start with some context: I use something like this for properties: <bean id="properties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="ignoreResourceNotFound" value="true"/> <property name="locations"> <list> <value>classpath:internal-common.properties</value> <value>classpath:${server.contextPath}/context.properties</value> <value>classpath:dev-overwrite.properties</value> </list> </property> The internal-common and the dev-overwrite work as expected. I can't found the correct placeHolder (not ${server.contextPath} at least) to have an external properties per context. What I think can't work and are on lot of answer related to this: ...