I am using Spring-security-web-3.2.5 jar and Java 8 and Spring-web-mvc 4.1.7 in hybris 6 Platform.
I am getting Nullpointer Exception in ApplicationFilterProxy and in class
AbstractRememberMeServices.
When I debug this class I observed that the logger object is null and when code is trying to perform the following operation , throws NullPointer Exception
this.logger.debug("Interactive login attempt was unsuccessful.");
Exception StackTrace :
SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Error while processing internal filterchain. Exception occurred at chain position: 9 of 16. Current filter: 'FilterChainProxy[Filter Chains: [[ Ant [pattern='/_ui/**'], []], [ Ant [pattern='/checkout/**'], [org.springframework.security.web.access.channel.ChannelProcessingFilter#f6a714c, org.springframework.security.web.context.SecurityContextPersistenceFilter#3aa9c43e, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#148b51b7, org.springframework.security.web.authentication.logout.LogoutFilter#7dc977d4, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#21759930, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#55893114, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#1bc1c4fb, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#2d007780, org.springframework.security.web.access.ExceptionTranslationFilter#20b1d709, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#3c2c439a]], [ com.example.storefront.security.ExcludeUrlRequestMatcher#3a6c99ce, [org.springframework.security.web.access.channel.ChannelProcessingFilter#31cb980a, org.springframework.security.web.context.SecurityContextPersistenceFilter#3ef9fc3c, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#28aef10c, org.springframework.security.web.authentication.logout.LogoutFilter#7652af3e, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#1bb47236, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#6add7560, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#3524cfa6, org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter#566cad63, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#6ef1505a, org.springframework.security.web.access.ExceptionTranslationFilter#6f065e91, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#7ccce528]]]]'!; nested exception is java.lang.NullPointerException] with root cause
INFO | jvm 1 | main | 2016/09/22 15:23:01.365 | java.lang.NullPointerException
INFO | jvm 1 | main | 2016/09/22 15:23:01.366 | at org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices.loginFail(AbstractRememberMeServices.java:239)
INFO | jvm 1 | main | 2016/09/22 15:23:01.369 | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.unsuccessfulAuthentication(AbstractAuthenticationProcessingFilter.java:353)
INFO | jvm 1 | main | 2016/09/22 15:23:01.369 | at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:225)
INFO | jvm 1 | main | 2016/09/22 15:23:01.370 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2016/09/22 15:23:01.371 | at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
INFO | jvm 1 | main | 2016/09/22 15:23:01.372 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2016/09/22 15:23:01.378 | at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
INFO | jvm 1 | main | 2016/09/22 15:23:01.379 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
INFO | jvm 1 | main | 2016/09/22 15:23:01.380 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2016/09/22 15:23:01.383 | at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
INFO | jvm 1 | main | 2016/09/22 15:23:01.391 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2016/09/22 15:23:01.392 | at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
INFO | jvm 1 | main | 2016/09/22 15:23:01.393 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2016/09/22 15:23:01.393 | at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
INFO | jvm 1 | main | 2016/09/22 15:23:01.393 | at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
INFO | jvm 1 | main | 2016/09/22 15:23:01.393 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.394 | at com.example.storefront.filters.SiteMinderFilter.doFilter(SiteMinderFilter.java:119)
INFO | jvm 1 | main | 2016/09/22 15:23:01.394 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.395 | at com.example.storefront.filters.UrlEncoderFilter.doFilterInternal(UrlEncoderFilter.java:87)
INFO | jvm 1 | main | 2016/09/22 15:23:01.395 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
INFO | jvm 1 | main | 2016/09/22 15:23:01.396 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.396 | at com.example.storefront.filters.StorefrontFilter.doFilter(StorefrontFilter.java:74)
INFO | jvm 1 | main | 2016/09/22 15:23:01.396 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.397 | at com.example.storefront.filters.cms.CMSSiteFilter.doFilterInternal(CMSSiteFilter.java:100)
INFO | jvm 1 | main | 2016/09/22 15:23:01.397 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
INFO | jvm 1 | main | 2016/09/22 15:23:01.398 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.399 | at com.example.storefront.filters.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:89)
INFO | jvm 1 | main | 2016/09/22 15:23:01.399 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.399 | at com.example.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
INFO | jvm 1 | main | 2016/09/22 15:23:01.399 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.406 | at de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:71)
INFO | jvm 1 | main | 2016/09/22 15:23:01.407 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.408 | at de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:45)
INFO | jvm 1 | main | 2016/09/22 15:23:01.408 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
INFO | jvm 1 | main | 2016/09/22 15:23:01.409 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:154)
INFO | jvm 1 | main | 2016/09/22 15:23:01.410 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
INFO | jvm 1 | main | 2016/09/22 15:23:01.410 | at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
INFO | jvm 1 | main | 2016/09/22 15:23:01.411 | at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
INFO | jvm 1 | main | 2016/09/22 15:23:01.411 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO | jvm 1 | main | 2016/09/22 15:23:01.412 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO | jvm 1 | main | 2016/09/22 15:23:01.413 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
INFO | jvm 1 | main | 2016/09/22 15:23:01.413 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO | jvm 1 | main | 2016/09/22 15:23:01.413 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO | jvm 1 | main | 2016/09/22 15:23:01.413 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
INFO | jvm 1 | main | 2016/09/22 15:23:01.414 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
INFO | jvm 1 | main | 2016/09/22 15:23:01.414 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO | jvm 1 | main | 2016/09/22 15:23:01.415 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO | jvm 1 | main | 2016/09/22 15:23:01.415 | at com.example.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
INFO | jvm 1 | main | 2016/09/22 15:23:01.416 | at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
INFO | jvm 1 | main | 2016/09/22 15:23:01.416 | at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
INFO | jvm 1 | main | 2016/09/22 15:23:01.416 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO | jvm 1 | main | 2016/09/22 15:23:01.417 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO | jvm 1 | main | 2016/09/22 15:23:01.417 | at de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:293)
INFO | jvm 1 | main | 2016/09/22 15:23:01.419 | at de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:247)
INFO | jvm 1 | main | 2016/09/22 15:23:01.419 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO | jvm 1 | main | 2016/09/22 15:23:01.420 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO | jvm 1 | main | 2016/09/22 15:23:01.420 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
INFO | jvm 1 | main | 2016/09/22 15:23:01.423 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
INFO | jvm 1 | main | 2016/09/22 15:23:01.424 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
INFO | jvm 1 | main | 2016/09/22 15:23:01.425 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
INFO | jvm 1 | main | 2016/09/22 15:23:01.426 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
INFO | jvm 1 | main | 2016/09/22 15:23:01.427 | at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
INFO | jvm 1 | main | 2016/09/22 15:23:01.428 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
INFO | jvm 1 | main | 2016/09/22 15:23:01.428 | at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
INFO | jvm 1 | main | 2016/09/22 15:23:01.429 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
INFO | jvm 1 | main | 2016/09/22 15:23:01.430 | at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
INFO | jvm 1 | main | 2016/09/22 15:23:01.430 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
INFO | jvm 1 | main | 2016/09/22 15:23:01.431 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
INFO | jvm 1 | main | 2016/09/22 15:23:01.433 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
INFO | jvm 1 | main | 2016/09/22 15:23:01.448 | at java.lang.Thread.run(Thread.java:745)
I am unable to figure out why this is happening , Any help is greatly appreciated.
Related
Java client with code to publish messages to pubsub gcp topic. This code works fine in my localhost but when I try runnnig my jar on linux and with proxy this error is shown:
INFO | jvm 1 | 2022/10/25 12:28:38 | WARNING: [Channel<1>: (pubsub.googleapis.com:443)] Failed to resolve name. status=Status{code=UNAVAILABLE, description=Unable to resolve host pubsub.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: pubsub.googleapis.com: Name or service not known
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:223)
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:282)
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.grpclb.GrpclbNameResolver.doResolve(GrpclbNameResolver.java:63)
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.lang.Thread.run(Thread.java:750)
INFO | jvm 1 | 2022/10/25 12:28:38 | Caused by: java.net.UnknownHostException: pubsub.googleapis.com: Name or service not known
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.InetAddress.getAllByName(InetAddress.java:1193)
INFO | jvm 1 | 2022/10/25 12:28:38 | at java.net.InetAddress.getAllByName(InetAddress.java:1127)
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:631)
INFO | jvm 1 | 2022/10/25 12:28:38 | at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:219)
INFO | jvm 1 | 2022/10/25 12:28:38 | ... 6 more`
This is my code:
public HttpTransportFactory getHttpTranpostFactory(String proxy, String puerto) {
Proxy prox = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxy, Integer.parseInt(puerto)));
HttpTransport httpTransport = new NetHttpTransport.Builder().setProxy(prox).build();
return new HttpTransportFactory() {
#Override
public HttpTransport create() {
return httpTransport;
}
};
}`
In main class:
HttpTransportFactory httpTransport = getHttpTranpostFactory("myvalidproxy.com", "8080");
credentialsProvider = FixedCredentialsProvider.create(
ServiceAccountCredentials.fromStream(new FileInputStream("/path/to/accountservice"), httpTransport));
TopicName topicName = TopicName.of("avalidgcpproject","avalidtopic");
Publisher publisher = Publisher.newBuilder(topicName)
.setEnableCompression(true)
.setCompressionBytesThreshold(100000L)
.setCredentialsProvider(credentialsProvider)
.build();
ByteString data = ByteString.copyFromUtf8("Hello World!");
PubsubMessage pubsubMessage = PubsubMessage.newBuilder()
.setData(data)
.build();
ApiFuture<String> messageIdFuture = publisher.publish(pubsubMessage); //Error is in this line
System.out.println(messageIdFuture.get());`
Maven dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsub</artifactId>
<version>1.120.16</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.cloud/google-cloud-core -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
<version>2.8.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20220320</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.3.7</version>
</dependency>
Error is on ApiFuture messageIdFuture = publisher.publish(pubsubMessage); line
When I generate the jar, I have to change the io.grpc.LoadBalancerProvider inside META-INF/services file with content: io.grpc.internal.PickFirstLoadBalancerProvider because if I dont do that, jar thrown another exception.
I'm really stuck with a problem
I have built an Axis 2 client running against an API using a .WSDL file. I have used a local jetty server when I have developed, but I need to move it over to a local tomcat server. When I moved my .war file to the local Tomcat, I get the following error. Can someone please give me some advice so I'm going in the right direction
SLL debug in tomcat:
http-nio-8080-exec-1, WRITE: TLSv1.2 Handshake, length = 189
http-nio-8080-exec-1, handling exception: java.net.SocketException: Connection reset
http-nio-8080-exec-1, SEND TLSv1.2 ALERT: fatal, description = unexpected_message
http-nio-8080-exec-1, WRITE: TLSv1.2 Alert, length = 2
http-nio-8080-exec-1, Exception sending alert: java.net.SocketException: Connection reset by peer: socket write error
http-nio-8080-exec-1, called closeSocket()
http-nio-8080-exec-1, called close()
http-nio-8080-exec-1, called closeInternal(true)
A
INFO | jvm 1 | 2016/12/21 13:28:59.193 | Unable to sendViaPost to url[https://someurl.com/Service.svc]
INFO | jvm 1 | 2016/12/21 13:28:59.194 | org.apache.axis2.AxisFault: Connection reset
INFO | jvm 1 | 2016/12/21 13:28:59.196 | at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
INFO | jvm 1 | 2016/12/21 13:28:59.197 | at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:99)
INFO | jvm 1 | 2016/12/21 13:28:59.198 | at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
INFO | jvm 1 | 2016/12/21 13:28:59.199 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
INFO | jvm 1 | 2016/12/21 13:28:59.201 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
INFO | jvm 1 | 2016/12/21 13:28:59.204 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2016/12/21 13:28:59.205 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
INFO | jvm 1 | 2016/12/21 13:28:59.206 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2016/12/21 13:28:59.207 | at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.executeMethod(HTTPSenderImpl.java:900)
INFO | jvm 1 | 2016/12/21 13:28:59.209 | at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:212)
INFO | jvm 1 | 2016/12/21 13:28:59.213 | at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
INFO | jvm 1 | 2016/12/21 13:28:59.215 | at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:403)
INFO | jvm 1 | 2016/12/21 13:28:59.218 | at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:234)
INFO | jvm 1 | 2016/12/21 13:28:59.220 | at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
INFO | jvm 1 | 2016/12/21 13:28:59.222 | at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
INFO | jvm 1 | 2016/12/21 13:28:59.224 | at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
INFO | jvm 1 | 2016/12/21 13:28:59.227 | at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
INFO | jvm 1 | 2016/12/21 13:28:59.229 | at se.docpub.documentfolderservice.DocumentFolderServiceStub.loadFolder(DocumentFolderServiceStub.java:769)
INFO | jvm 1 | 2016/12/21 13:28:59.231 | at se.soleilit.document_api.resources.DocumentResource.getPublishedFolder(DocumentResource.java:96)
INFO | jvm 1 | 2016/12/21 13:28:59.233 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2016/12/21 13:28:59.235 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:28:59.236 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:28:59.237 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:28:59.239 | at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
INFO | jvm 1 | 2016/12/21 13:28:59.246 | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
INFO | jvm 1 | 2016/12/21 13:28:59.250 | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
INFO | jvm 1 | 2016/12/21 13:28:59.255 | at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
INFO | jvm 1 | 2016/12/21 13:28:59.265 | at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
INFO | jvm 1 | 2016/12/21 13:28:59.270 | at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
INFO | jvm 1 | 2016/12/21 13:28:59.279 | at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
INFO | jvm 1 | 2016/12/21 13:28:59.283 | at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
INFO | jvm 1 | 2016/12/21 13:28:59.290 | at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
INFO | jvm 1 | 2016/12/21 13:28:59.298 | at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
INFO | jvm 1 | 2016/12/21 13:28:59.302 | at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
INFO | jvm 1 | 2016/12/21 13:28:59.304 | at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
INFO | jvm 1 | 2016/12/21 13:28:59.306 | at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
INFO | jvm 1 | 2016/12/21 13:28:59.308 | at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
INFO | jvm 1 | 2016/12/21 13:28:59.314 | at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
INFO | jvm 1 | 2016/12/21 13:28:59.316 | at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
INFO | jvm 1 | 2016/12/21 13:28:59.324 | at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
INFO | jvm 1 | 2016/12/21 13:28:59.330 | at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
INFO | jvm 1 | 2016/12/21 13:28:59.333 | at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
INFO | jvm 1 | 2016/12/21 13:28:59.336 | at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
INFO | jvm 1 | 2016/12/21 13:28:59.339 | at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
INFO | jvm 1 | 2016/12/21 13:28:59.345 | at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
INFO | jvm 1 | 2016/12/21 13:28:59.348 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
INFO | jvm 1 | 2016/12/21 13:28:59.352 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
INFO | jvm 1 | 2016/12/21 13:28:59.354 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
INFO | jvm 1 | 2016/12/21 13:28:59.356 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
INFO | jvm 1 | 2016/12/21 13:28:59.357 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
INFO | jvm 1 | 2016/12/21 13:28:59.363 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
INFO | jvm 1 | 2016/12/21 13:28:59.365 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
INFO | jvm 1 | 2016/12/21 13:28:59.367 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
INFO | jvm 1 | 2016/12/21 13:28:59.369 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
INFO | jvm 1 | 2016/12/21 13:28:59.371 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
INFO | jvm 1 | 2016/12/21 13:28:59.373 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
INFO | jvm 1 | 2016/12/21 13:28:59.375 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
INFO | jvm 1 | 2016/12/21 13:28:59.376 | at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
INFO | jvm 1 | 2016/12/21 13:29:00.224 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
INFO | jvm 1 | 2016/12/21 13:29:00.532 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
INFO | jvm 1 | 2016/12/21 13:29:00.534 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
INFO | jvm 1 | 2016/12/21 13:29:00.535 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.537 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.539 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
INFO | jvm 1 | 2016/12/21 13:29:00.541 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.542 | Caused by: java.net.SocketException: Connection reset
INFO | jvm 1 | 2016/12/21 13:29:00.543 | at java.net.SocketInputStream.read(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.555 | at java.net.SocketInputStream.read(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.558 | at sun.security.ssl.InputRecord.readFully(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.560 | at sun.security.ssl.InputRecord.readV3Record(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.573 | at sun.security.ssl.InputRecord.read(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.590 | at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.593 | at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.618 | at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.621 | at sun.security.ssl.AppOutputStream.write(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.656 | at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.659 | at java.io.BufferedOutputStream.flush(Unknown Source)
INFO | jvm 1 | 2016/12/21 13:29:00.726 | at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:95)
INFO | jvm 1 | 2016/12/21 13:29:00.738 | ... 63 more
I'm using Netbeans IDE.
INFO | jvm 1 | 2015/12/29 23:27:18 | Java Runtime: Oracle Corporation 1.7.0_51 C:\Program Files (x86)\Java\jre7
INFO | jvm 1 | 2015/12/29 23:27:18 | Heap sizes: current=15872k free=12594k max=506816k.
INFO | jvm 1 | 2015/12/29 23:27:18 | JVM args: -Dactivemq.home=./. -Dactivemq.base=./. -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=././conf/broker.ks -Djavax.net.ssl.trustStore=././conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -DJava.util.logging.config.file=logging.properties -Xmx512m -DJava.library.path=././bin/win32 -Dwrapper.key=nnnVAsNERmehemBP -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=632 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1.
INFO | jvm 1 | 2015/12/29 23:27:18 | ACTIVEMQ_HOME:..
INFO | jvm 1 | 2015/12/29 23:27:18 | ACTIVEMQ_BASE:..
INFO | jvm 1 | 2015/12/29 23:27:18 | Loading message broker from: xbean:activemq.xml.
INFO | jvm 1 | 2015/12/29 23:27:19 | INFO CamelNamespaceHandler - camel-osgi.jar not detected in classpath.
INFO | jvm 1 | 2015/12/29 23:27:19 | ERROR: Java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | Java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.runTask (StartCommand.java:98)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.AbstractCommand.execute (AbstractCommand.java:57)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.ShellCommand.runTask (ShellCommand.java:129)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.AbstractCommand.execute (AbstractCommand.java:57)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.ShellCommand.main (ShellCommand.java:79)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.reflect.Method.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.Main.runTaskClass (Main.java:251)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.Main.main (Main.java:107)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.reflect.Method.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run (WrapperSimpleApp.java:240)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.Thread.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo (XBeanQNameHelper.java:75)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwarePropertyValues (XBeanQNameHelper.java:54)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement (XBeanBeanDefinitionParserDelegate.java:59)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement (BeanDefinitionParserDelegate.java:389)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement (BeanDefinitionParserDelegate.java:358)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.processBeanDefinition (XBeanBeanDefinitionDocumentReader.java:174)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement (XBeanBeanDefinitionDocumentReader.java:101)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions (XBeanBeanDefinitionDocumentReader.java:81)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions (DefaultBeanDefinitionDocumentReader.java:92)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions (XmlBeanDefinitionReader.java:507)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions (XBeanXmlBeanDefinitionReader.java:79)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions (XmlBeanDefinitionReader.java:398)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:342)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:310)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions (ResourceXmlApplicationContext.java:111)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions (ResourceXmlApplicationContext.java:104)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:123)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory (AbstractApplicationContext.java:422)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:352)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext (XBeanBrokerFactory.java:96)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker (XBeanBrokerFactory.java:52)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.broker.BrokerFactory.createBroker (BrokerFactory.java:71)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.broker.BrokerFactory.createBroker (BrokerFactory.java:54)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.startBroker (StartCommand.java:115)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.runTask (StartCommand.java:74)
INFO | jvm 1 | 2015/12/29 23:27:19 |. 16 more.
INFO | jvm 1 | 2015/12/29 23:27:19 | Caused by: Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader$1.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader$1.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.security.AccessController.doPrivileged (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader.findClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.ClassLoader.loadClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.ClassLoader.loadClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass (XBeanQNameHelper.java:107)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo (XBeanQNameHelper.java:72)
INFO | jvm 1 | 2015/12/29 23:27:19 |. 42 more.
INFO | jvm 1 | 2015/12/29 23:27:19 | ERROR: Java.lang.Exception: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | Java.lang.Exception: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.runTask (StartCommand.java:99)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.AbstractCommand.execute (AbstractCommand.java:57)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.ShellCommand.runTask (ShellCommand.java:129)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.AbstractCommand.execute (AbstractCommand.java:57)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.ShellCommand.main (ShellCommand.java:79)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.reflect.Method.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.Main.runTaskClass (Main.java:251)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.Main.main (Main.java:107)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.reflect.Method.invoke (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run (WrapperSimpleApp.java:240)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.Thread.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: processing.XslProcessor. Reason: Java.lang.ClassNotFoundException: processing.XslProcessor; nested exception is Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo (XBeanQNameHelper.java:75)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwarePropertyValues (XBeanQNameHelper.java:54)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement (XBeanBeanDefinitionParserDelegate.java:59)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement (BeanDefinitionParserDelegate.java:389)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement (BeanDefinitionParserDelegate.java:358)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.processBeanDefinition (XBeanBeanDefinitionDocumentReader.java:174)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement (XBeanBeanDefinitionDocumentReader.java:101)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions (XBeanBeanDefinitionDocumentReader.java:81)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions (DefaultBeanDefinitionDocumentReader.java:92)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions (XmlBeanDefinitionReader.java:507)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions (XBeanXmlBeanDefinitionReader.java:79)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions (XmlBeanDefinitionReader.java:398)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:342)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:310)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions (ResourceXmlApplicationContext.java:111)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions (ResourceXmlApplicationContext.java:104)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:123)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory (AbstractApplicationContext.java:422)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:352)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext (XBeanBrokerFactory.java:96)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker (XBeanBrokerFactory.java:52)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.broker.BrokerFactory.createBroker (BrokerFactory.java:71)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.broker.BrokerFactory.createBroker (BrokerFactory.java:54)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.startBroker (StartCommand.java:115)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.activemq.console.command.StartCommand.runTask (StartCommand.java:74)
INFO | jvm 1 | 2015/12/29 23:27:19 |. 16 more.
INFO | jvm 1 | 2015/12/29 23:27:19 | Caused by: Java.lang.ClassNotFoundException: processing.XslProcessor.
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader$1.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader$1.run (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.security.AccessController.doPrivileged (Native Method)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.net.URLClassLoader.findClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.ClassLoader.loadClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at Java.lang.ClassLoader.loadClass (Unknown Source)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass (XBeanQNameHelper.java:107)
INFO | jvm 1 | 2015/12/29 23:27:19 | at org.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo (XBeanQNameHelper.java:72)
INFO | jvm 1 | 2015/12/29 23:27:19 |. 42 more.
Activemq.xml:
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<!-- Allows us to use system properties as variables in this configuration file -->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:${activemq.base}/conf/credentials.properties</value>
</property>
</bean>
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data">
<plugins>
<authorizationPlugin>
<map>
<authorizationMap>
<authorizationEntries>
<authorizationEntry queue=">" read="admins,users" write="admins,users" admin="admins,users"/>
<authorizationEntry topic="ActiveMQ.Advisory.>" read="guests,users" write="guests,users" admin="guests,users"/>
</authorizationEntries>
</authorizationMap>
</map>
</authorizationPlugin>
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="test" password="test" groups="users"/>
<authenticationUser username="system" password="manager" groups="admins,users"/>
</users>
</simpleAuthenticationPlugin>
</plugins>
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry queue=">" memoryLimit="5mb"/>
<policyEntry topic=">" memoryLimit="5mb">
<dispatchPolicy>
<strictOrderDispatchPolicy/>
</dispatchPolicy>
<subscriptionRecoveryPolicy>
<lastImageSubscriptionRecoveryPolicy/>
</subscriptionRecoveryPolicy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>
<managementContext>
<managementContext createConnector="false"/>
</managementContext>
<networkConnectors>
<!-- by default just auto discover the other brokers -->
<networkConnector name="default-nc" uri="multicast://default" userName="system" password="manager"/>
<networkConnector name="localhost" uri="static://(tcp://127.0.0.1:61616)" userName="system" password="manager"/>
</networkConnectors>
<persistenceAdapter>
<amqPersistenceAdapter syncOnWrite="false" directory="${activemq.base}/data" maxFileLength="20 mb"/>
</persistenceAdapter>
<sslContext>
<sslContext keyStore="file:${activemq.base}/conf/broker.ks" keyStorePassword="password" trustStore="file:${activemq.base}/conf/broker.ts" trustStorePassword="password"/>
</sslContext>
<systemUsage>
<systemUsage>
<memoryUsage>
<memoryUsage limit="20 mb"/>
</memoryUsage>
<storeUsage>
<storeUsage limit="1 gb" name="foo"/>
</storeUsage>
<tempUsage>
<tempUsage limit="100 mb"/>
</tempUsage>
</systemUsage>
</systemUsage>
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616" discoveryUri="multicast://default" />
<transportConnector name="ssl" uri="ssl://0.0.0.0:61617" />
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613" />
<transportConnector name="xmpp" uri="xmpp://0.0.0.0:61222" />
</transportConnectors>
</broker>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<package>processing</package>
<route>
<from uri="activemq:test"/>
<multicast>
<to uri="activemq:toStdOut"/>
<to uri="activemq:toStdOut2"/>
<to uri="activemq:routeError"/>
</multicast>
</route>
<!-- Contr1 inbound route -->
<route>
<from uri="activemq:contr1In"/>
<to uri="activemq:contr1InTransform"/>
<bean ref="contr1InProcessor" method="process"/>
<multicast>
<to uri="activemq:oneCIn"/>
</multicast>
</route>
<!-- Contr1 outbound route -->
<route>
<from uri="activemq:contr1OutTransform"/>
<bean ref="contr1OutProcessor" method="process"/>
<to uri="activemq:contr1Out"/>
</route>
<!-- OneC outbound route -->
<route>
<from uri="activemq:oneCOut"/>
<choice>
<when>
<xpath>//contr-id = '1'</xpath>
<to uri="activemq:contr1OutTransform"/>
</when>
<otherwise>
<to uri="activemq:routeError"/>
</otherwise>
</choice>
</route>
</camelContext>
<bean id="contr1InProcessor" class="processing.XslProcessor">
<property name="xslName" value="PrepareRequest.xsl"/>
<property name="contrId" value="1"/>
</bean>
<bean id="contr1OutProcessor" class="processing.XslProcessor">
<property name="xslName" value="PrepareResponse.xsl"/>
<property name="contrId" value="1"/>
</bean>
<bean id="errorConsumerBean" class="processing.ErrorConsumer" lazy-init="false">
<property name="destinationDir" value="D:\1c-jms\1c-jms\errors"/>
</bean>
<bean id="testBean" class="processing.Test" lazy-init="false"/>
<!-- configure the camel activemq component to use the current broker -->
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="vm://localhost?create=false&waitForStart=10000" />
<property name="userName" value="system"/>
<property name="password" value="manager"/>
</bean>
</property>
</bean>
<!-- Uncomment to create a command agent to respond to message based admin commands on the ActiveMQ.Agent topic -->
<!--
<commandAgent xmlns="http://activemq.apache.org/schema/core" brokerUrl="vm://localhost" username="${activemq.username}" password="${activemq.password}"/>
-->
<!-- An embedded servlet engine for serving up the Admin console -->
<jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
<connectors>
<nioConnector port="8161"/>
</connectors>
<handlers>
<webAppContext contextPath="/admin" resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true"/>
<webAppContext contextPath="/camel" resourceBase="${activemq.base}/webapps/camel" logUrlOnStart="true"/>
<webAppContext contextPath="/demo" resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true"/>
<webAppContext contextPath="/fileserver" resourceBase="${activemq.base}/webapps/fileserver" logUrlOnStart="true"/>
</handlers>
</jetty>
Class:
public class XslProcessor implements Processor
{
private String xslName = null;
private String contrId = null;
#EndpointInject(uri="activemq:error")
private ProducerTemplate errorProducer = null;
public ProducerTemplate getErrorProducer()
{
return errorProducer;
}
public void setErrorProducer(ProducerTemplate errorProducer)
{
this.errorProducer = errorProducer;
}
public static class MyErrorListener implements ErrorListener
{
private Throwable lastException = null;
public Throwable getLastException()
{
return lastException;
}
public void setLastException(Throwable lastException)
{
this.lastException = lastException;
}
public void error(TransformerException exception) throws TransformerException
{
lastException = exception;
}
public void fatalError(TransformerException exception) throws TransformerException
{
lastException = exception;
}
public void warning(TransformerException exception) throws TransformerException
{
lastException = exception;
}
}
public String getXslName()
{
return xslName;
}
public void setXslName(String xslName)
{
this.xslName = xslName;
}
public String getContrId()
{
return contrId;
}
public void setContrId(String contrId)
{
this.contrId = contrId;
}
public void process(Exchange _exchange) throws Exception
{
byte[] buf = _exchange.getIn().getBody(byte[].class);
ByteArrayInputStream xmlStream = new ByteArrayInputStream(buf);
try
{
StreamSource xmlSource = new StreamSource(xmlStream);
InputStream xslStream = this.getClass().getResourceAsStream(xslName);
MyErrorListener errorListener = new MyErrorListener();
try
{
StreamSource xslSource = new StreamSource(xslStream);
TransformerFactory factory = TransformerFactory.newInstance();
factory.setErrorListener(errorListener);
Transformer t = factory.newTransformer(xslSource);
ByteArrayOutputStream resultStream = new ByteArrayOutputStream();
try
{
StreamResult result = new StreamResult(resultStream);
t.setParameter("contrId", contrId);
t.transform(xmlSource, result);
if (errorListener.lastException != null)
{
throw new Exception("Exception in xslt: ",errorListener.lastException);
}
resultStream.flush();
_exchange.getOut().setBody(resultStream.toByteArray(), byte[].class);
}
finally
{
resultStream.close();
}
}
finally
{
xslStream.close();
}
}
catch (Throwable _t)
{
errorProducer.sendBody(buf);
}
finally
{
xmlStream.close();
}
}
}
I am using Spring boot for my tomcat deploy of my webapp. On my mac, and on a fellow developers linux install (not sure of his distro), the catalina.out file has just one instance of the spring ascii art indicating that it booted up just once as expected.
On our development and production servers, both centOS and mirrors of one another, the catalina.out file has five instances of the Spring ascii art indicating that it is "booting" 5 times! I have code that runs in the onStartup method of my RestApplication that extends SpringBootServletInitializer and that code runs 5 times verifying that spring is booting up 5 times. Why is this happening on our production machines but not on our development machines? War files are deployed to tomcat 8 in all instances.
It takes many minutes before the webapp is ready as a result.
At first I thought maybe it was linked the number of clases tagged #RestController since that seemed about 5, but it turns out we have 7 classes with this tag. So, I can't find anything that would match up with this number of 5 boots.
Any thoughts? Cheers.
UPDATE
Here is my log file with an exception stack trace in the onStartup method. It is looking for a file of the name servletContext.getContextPath() + "_init.properties". As you can see we are alternating between a DeployWar with the name of "wildbook" (correct name of my war file) and a StartChild with the name of "". Except the last DeployWar does not seem to trigger a StartChild.
INFO | jvm 1 | 2015/09/30 19:40:53 |
INFO | jvm 1 | 2015/09/30 19:40:53 | . ____ _ __ _ _
INFO | jvm 1 | 2015/09/30 19:40:53 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
INFO | jvm 1 | 2015/09/30 19:40:53 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
INFO | jvm 1 | 2015/09/30 19:40:53 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
INFO | jvm 1 | 2015/09/30 19:40:53 | ' |____| .__|_| |_|_| |_\__, | / / / /
INFO | jvm 1 | 2015/09/30 19:40:53 | =========|_|==============|___/=/_/_/_/
INFO | jvm 1 | 2015/09/30 19:40:53 | :: Spring Boot :: (v1.2.1.RELEASE)
INFO | jvm 1 | 2015/09/30 19:40:53 |
INFO | jvm 1 | 2015/09/30 19:41:02 | [WARN] org.ecocean.rest.RestApplication - Can't read init property file, building simple props from init params.
INFO | jvm 1 | 2015/09/30 19:41:02 | java.io.FileNotFoundException: /opt/tomcat8/conf/wildbook_init.properties (No such file or directory)
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.io.FileInputStream.<init>(FileInputStream.java:131) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at com.samsix.util.io.ResourceReaderImpl.addSource(ResourceReaderImpl.java:1182) ~[s6-util-1.0.6.jar:na]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.ecocean.rest.RestApplication.onStartup(RestApplication.java:98) ~[RestApplication.class:na]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:02 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:03 | [WARN] o.f.core.internal.command.DbMigrate - outOfOrder mode is active. Migration of schema "public" may not be reproducible.
INFO | jvm 1 | 2015/09/30 19:41:17 |
INFO | jvm 1 | 2015/09/30 19:41:17 | . ____ _ __ _ _
INFO | jvm 1 | 2015/09/30 19:41:17 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:17 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:17 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
INFO | jvm 1 | 2015/09/30 19:41:17 | ' |____| .__|_| |_|_| |_\__, | / / / /
INFO | jvm 1 | 2015/09/30 19:41:17 | =========|_|==============|___/=/_/_/_/
INFO | jvm 1 | 2015/09/30 19:41:17 | :: Spring Boot :: (v1.2.1.RELEASE)
INFO | jvm 1 | 2015/09/30 19:41:17 |
INFO | jvm 1 | 2015/09/30 19:41:24 | [WARN] org.ecocean.rest.RestApplication - Can't read init property file, building simple props from init params.
INFO | jvm 1 | 2015/09/30 19:41:24 | java.io.FileNotFoundException: /opt/tomcat8/conf/_init.properties (No such file or directory)
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.io.FileInputStream.<init>(FileInputStream.java:131) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:24 | at com.samsix.util.io.ResourceReaderImpl.addSource(ResourceReaderImpl.java:1182) ~[s6-util-1.0.6.jar:na]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.ecocean.rest.RestApplication.onStartup(RestApplication.java:98) ~[RestApplication.class:na]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:24 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:24 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:25 | [WARN] o.f.core.internal.command.DbMigrate - outOfOrder mode is active. Migration of schema "public" may not be reproducible.
INFO | jvm 1 | 2015/09/30 19:41:34 |
INFO | jvm 1 | 2015/09/30 19:41:34 | . ____ _ __ _ _
INFO | jvm 1 | 2015/09/30 19:41:34 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:34 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:34 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
INFO | jvm 1 | 2015/09/30 19:41:34 | ' |____| .__|_| |_|_| |_\__, | / / / /
INFO | jvm 1 | 2015/09/30 19:41:34 | =========|_|==============|___/=/_/_/_/
INFO | jvm 1 | 2015/09/30 19:41:34 | :: Spring Boot :: (v1.2.1.RELEASE)
INFO | jvm 1 | 2015/09/30 19:41:34 |
INFO | jvm 1 | 2015/09/30 19:41:40 | [WARN] org.ecocean.rest.RestApplication - Can't read init property file, building simple props from init params.
INFO | jvm 1 | 2015/09/30 19:41:40 | java.io.FileNotFoundException: /opt/tomcat8/conf/wildbook_init.properties (No such file or directory)
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.io.FileInputStream.<init>(FileInputStream.java:131) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at com.samsix.util.io.ResourceReaderImpl.addSource(ResourceReaderImpl.java:1182) ~[s6-util-1.0.6.jar:na]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.ecocean.rest.RestApplication.onStartup(RestApplication.java:98) ~[RestApplication.class:na]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:40 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:41 | [WARN] o.f.core.internal.command.DbMigrate - outOfOrder mode is active. Migration of schema "public" may not be reproducible.
INFO | jvm 1 | 2015/09/30 19:41:50 |
INFO | jvm 1 | 2015/09/30 19:41:50 | . ____ _ __ _ _
INFO | jvm 1 | 2015/09/30 19:41:50 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:50 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
INFO | jvm 1 | 2015/09/30 19:41:50 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
INFO | jvm 1 | 2015/09/30 19:41:50 | ' |____| .__|_| |_|_| |_\__, | / / / /
INFO | jvm 1 | 2015/09/30 19:41:50 | =========|_|==============|___/=/_/_/_/
INFO | jvm 1 | 2015/09/30 19:41:50 | :: Spring Boot :: (v1.2.1.RELEASE)
INFO | jvm 1 | 2015/09/30 19:41:50 |
INFO | jvm 1 | 2015/09/30 19:41:55 | [WARN] org.ecocean.rest.RestApplication - Can't read init property file, building simple props from init params.
INFO | jvm 1 | 2015/09/30 19:41:55 | java.io.FileNotFoundException: /opt/tomcat8/conf/_init.properties (No such file or directory)
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.io.FileInputStream.<init>(FileInputStream.java:131) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:55 | at com.samsix.util.io.ResourceReaderImpl.addSource(ResourceReaderImpl.java:1182) ~[s6-util-1.0.6.jar:na]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.ecocean.rest.RestApplication.onStartup(RestApplication.java:98) ~[RestApplication.class:na]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:55 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:55 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:41:56 | [WARN] o.f.core.internal.command.DbMigrate - outOfOrder mode is active. Migration of schema "public" may not be reproducible.
INFO | jvm 1 | 2015/09/30 19:42:05 |
INFO | jvm 1 | 2015/09/30 19:42:05 | . ____ _ __ _ _
INFO | jvm 1 | 2015/09/30 19:42:05 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
INFO | jvm 1 | 2015/09/30 19:42:05 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
INFO | jvm 1 | 2015/09/30 19:42:05 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
INFO | jvm 1 | 2015/09/30 19:42:05 | ' |____| .__|_| |_|_| |_\__, | / / / /
INFO | jvm 1 | 2015/09/30 19:42:05 | =========|_|==============|___/=/_/_/_/
INFO | jvm 1 | 2015/09/30 19:42:05 | :: Spring Boot :: (v1.2.1.RELEASE)
INFO | jvm 1 | 2015/09/30 19:42:05 |
INFO | jvm 1 | 2015/09/30 19:42:13 | [WARN] org.ecocean.rest.RestApplication - Can't read init property file, building simple props from init params.
INFO | jvm 1 | 2015/09/30 19:42:13 | java.io.FileNotFoundException: /opt/tomcat8/conf/wildbook_init.properties (No such file or directory)
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.io.FileInputStream.<init>(FileInputStream.java:131) ~[na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at com.samsix.util.io.ResourceReaderImpl.addSource(ResourceReaderImpl.java:1182) ~[s6-util-1.0.6.jar:na]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.ecocean.rest.RestApplication.onStartup(RestApplication.java:98) ~[RestApplication.class:na]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701) [catalina.jar:8.0.18]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
INFO | jvm 1 | 2015/09/30 19:42:13 | [WARN] o.f.core.internal.command.DbMigrate - outOfOrder mode is active. Migration of schema "public" may not be reproducible.
Second Update
Here is my SpringBootServletInitializer in it's entirety as requested.
package org.ecocean.rest;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.ecocean.ShepherdPMF;
import org.flywaydb.core.Flyway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import com.samsix.database.ConnectionInfo;
#Configuration
#EnableAutoConfiguration
#ComponentScan
public class RestApplication extends SpringBootServletInitializer {
/**
* This method should allow you to start up the rest service from a compiled jar rather
* than having to make a war and stick it in tomcat.
*/
public static void main(final String[] args) {
SpringApplication.run(RestApplication.class, args);
}
#Override
protected final SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
// ObjectMapper mapper = new ObjectMapper();
// mapper.registerModule(new JodaModule());
return application.sources(RestApplication.class);
}
#Override
public void onStartup(final ServletContext servletContext) throws ServletException
{
super.onStartup(servletContext);
//
// Uses default location of db/migration on classpath. You will find it in the src/main/resources folder.
// OutOfOrder = true makes it so that if two developers create SQL in a different order and one somehow
// gets applied to the database, the other's should too. This should only be an issue on development
// databases and allows me to get other developers sql patches even if I've applied a newer one myself
// locally. In production, everything should be fine.
//
ConnectionInfo connectionInfo = ShepherdPMF.getConnectionInfo();
Flyway flyway = new Flyway();
flyway.setOutOfOrder(true);
flyway.setSqlMigrationPrefix("");
flyway.setDataSource(connectionInfo.getUrl(), connectionInfo.getUserName(), connectionInfo.getPassword());
flyway.migrate();
}
#Bean
public ServletRegistrationBean servletRegistrationBean(){
return new ServletRegistrationBean(new MediaUploadServlet(),"/mediaupload");
}
}
I have a single class application
#Configuration
#ComponentScan
public class Main {
public static void main(String[] args) {
SpringApplication.run(Main.class);
}
}
It's works pretty well (doing nothing) with the following dependencies (Ivy notation used)
<dependency org="org.springframework.boot" name="spring-boot-starter" rev="1.1.7.RELEASE"/>
<dependency org="org.springframework" name="spring-context" rev="4.1.0.RELEASE"/>
<dependency org="org.springframework" name="spring-beans" rev="4.1.1.RELEASE"/>
But when I add <dependency org="org.springframework.boot" name="spring-boot" rev="1.1.7.RELEASE"/> I get the following exception.
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:124)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:109)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
INFO | jvm 1 | 2014/10/10 17:45:49 | at one.video.streaming.Main.main(Main.java:48)
INFO | jvm 1 | 2014/10/10 17:45:49 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/10/10 17:45:49 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 1 | 2014/10/10 17:45:49 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2014/10/10 17:45:49 | at java.lang.reflect.Method.invoke(Method.java:483)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136)
INFO | jvm 1 | 2014/10/10 17:45:49 | at java.lang.Thread.run(Thread.java:745)
INFO | jvm 1 | 2014/10/10 17:45:49 | Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:174)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:147)
INFO | jvm 1 | 2014/10/10 17:45:49 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
INFO | jvm 1 | 2014/10/10 17:45:49 | ... 13 common frames omitted
My goal is not to add spring-boot library, I don't need it, but I want to understand how does Spring work and why it starts to trying to use some web stuff for my app.