In Spring project unable to start Tomcat from IntlleiJ - intellij-idea

I have spring project. Now i am configuring Tomcat Server in IntelliJ. When i run the Tomcat from IntelliJ, it shows the following console error.
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:643)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.weaving.LoadTimeWeaverAwareProcessor.postProcessBeforeInitialization(LoadTimeWeaverAwareProcessor.java:95)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 19 more
Caused by: java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:83)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1436)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 28 more
Jul 18, 2011 2:43:51 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Jul 18, 2011 2:43:51 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Jul 18, 2011 2:43:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jul 18, 2011 2:43:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy
INFO: WSSERVLET15: JAX-WS servlet destroyed
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed
INFO: WSSERVLET13: JAX-WS context listener destroyed
Jul 18, 2011 2:43:52 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive jamon.war
Jul 18, 2011 2:43:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 18, 2011 2:43:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jul 18, 2011 2:43:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Jul 18, 2011 2:43:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Jul 18, 2011 2:43:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory resweb
Jul 18, 2011 2:43:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory soapui
Jul 18, 2011 2:43:55 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 18, 2011 2:43:55 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 18, 2011 2:43:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10133 ms
Connected to server

Your stacktrace says
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'loadTimeWeaver': Initialization of bean
failed; nested exception is java.lang.IllegalStateException:
ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT
provide an 'addTransformer(ClassFileTransformer)' method. Specify a
custom LoadTimeWeaver or start your Java virtual machine with Spring's
agent: -javaagent:org.springframework.instrument.jar
Perhaps you could do as it suggests? Add a -javaagent to the VM args in the run-config.

Related

Address already in use : JVM_Bind when deploying to localhost

I am deploying archetype tomee-cf using the command mvn tomee:run and I am getting address already in use issue.I checked the whether something running on ports 8005,8009,8080 and 8443 and found only a system IPv4 listening to 8005
I expect application running on localhost
> INFO: Deployment of web application archive C:\Users\e4560\Desktop\address-manager\application\target\apache-tomee\webapps\ROOT.war has finished in 12,030 ms
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 18, 2019 10:31:57 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12240 ms
Jan 18, 2019 10:31:57 AM org.apache.catalina.core.StandardServer await
SEVERE: 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:444)
at org.apache.catalina.startup.Catalina.await(Catalina.java:782)
at org.apache.catalina.startup.Catalina.start(Catalina.java:728)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Jan 18, 2019 10:31:57 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jan 18, 2019 10:31:57 AM org.apache.openejb.assembler.classic.Assembler destroyApplication
INFO: Undeploying app: C:\Users\e09340\Desktop\address-manager\application\target\apache-tomee\webapps\ROOT
Jan 18, 2019 10:31:57 AM org.apache.openejb.util.OptionsLog info
INFO: Using 'openjpa.Log=org.apache.openejb.openjpa.JULOpenJPALogFactory'
Jan 18, 2019 10:31:57 AM org.apache.openejb.assembler.classic.Assembler destroyApplication
INFO: Undeployed app: C:\Users\epom\Desktop\address-manager\application\target\apache-tomee\webapps\ROOT
Jan 18, 2019 10:31:57 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [com.netflix.hystrix.Hystrix$1] (value [com.netflix.hystrix.Hystrix$1#4eedec61]) and a value of type [com.netflix.hystrix.Hystrix.ConcurrentStack] (value [com.netflix.hystrix.Hystrix$ConcurrentStack#740a0cb2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Jan 18, 2019 10:31:57 AM org.apache.openejb.server.SimpleServiceManager stop
INFO: Stopping server services
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jan 18, 2019 10:31:57 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Run the maven command with -Dtomee-plugin.shutdown=8006, this should fix your problem.
Background
From your log, it appears that you are on a Windows machine. Windows 10 has an update demon which is always listening on the port 8005. More details are here .
You can also check which process is using the port with the help of the resource monitor.

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/projectName]]

I am getting following error while running app on tomcat-8. I am using Eclipse Luna-32 bit, tomcat-8 32 bit, Java-8 32 bit.
INFO: Starting Servlet Engine: Apache Tomcat/8.0.18
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:connect_afs_ui' did not find a matching property.
Dec 24, 2015 6:36:59 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/connect_afs_ui]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1683)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.StandardRoot#146cf9f]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4832)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4962)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet#1679622]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:657)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 14 more
Caused by: java.lang.IllegalArgumentException: The directory specified by base and internal path [C:\Users\ravi.suthar\git\FashionConnect\connect_afs_ui\target\test-classes]\[] does not exist.
at org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:247)
at org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:134)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 16 more
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/connect_afs_ui]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1683)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml has finished in 18 ms
Dec 24, 2015 6:36:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Dec 24, 2015 6:36:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 303 ms
I did the following steps and the error removed.
1. Delete existing tomcat from the eclipse Server tab and remove existing tomcat directory
2. Provide new copy of tomcat in Server tab > add new server
3. Double click on tomcat from server tab
4. In tomcat overview tab, in Server Option
a. unselect > Select modules without publishing
b. unselect > Publish modules contexts to separate XML files
5. Save tomcat changes
6. Add project to tomcat
7. Publish
8. Start / Debug
I was also facing the same exception. In my case problem was, lib folder under WEB-INF was removed by me by mistake and I started to place custom jars in project main folder and referenced from there in the build path.
After spending a lot of time I realized this mistake and just corrected the directory structure and created lib folder under WEB-INF and placed custom jars in it and referenced from there. It started to work.
Please check same .java file exits in another package, if exits then delete this .java file to solve this type problem. (Eclipse IDE)

Alfresco lock out after installation of DigistaSigningAlfresco

After installing the amps, it works and was able to sign. But after restarting the tomcat server or the system (which automatically restarts the server), I could not log in again either as admin or other users on the share. Login returns the error: "Your authentication details have not been recognized or Alfresco may not be available at this time"
navigating to http://127.0.0.1:8080/alfresco shows the following error:
HTTP Status 404 - /alfresco
type Status report
message /alfresco
description The requested resource is not available.
Apache Tomcat/7.0.52
Tomcat works fine at http://127.0.0.1:8080.
Am using windows 8 and Alfresco Share 4.2.f
Catalina log:
May 21, 2015 3:04:00 AM
org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR
based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
May 21, 2015 3:04:00 AM
org.apache.catalina.core.AprLifecycleListener init INFO: APR
capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true]. May 21, 2015 3:04:01 AM
org.apache.catalina.core.AprLifecycleListener initializeSSL INFO:
OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) May
21, 2015 3:04:01 AM org.apache.coyote.AbstractProtocol init INFO:
Initializing ProtocolHandler ["http-apr-8080"] May 21, 2015 3:04:01
AM org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:04:01 AM
org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:04:01 AM
org.apache.catalina.startup.Catalina load INFO: Initialization
processed in 1252 ms May 21, 2015 3:04:01 AM
org.apache.catalina.core.StandardService startInternal INFO:
Starting service Catalina May 21, 2015 3:04:01 AM
org.apache.catalina.core.StandardEngine startInternal INFO: Starting
Servlet Engine: Apache Tomcat/7.0.52 May 21, 2015 3:04:01 AM
org.apache.catalina.startup.HostConfig deployDescriptor INFO:
Deploying configuration descriptor
D:\Alfresco\tomcat\conf\Catalina\localhost\solr.xml May 21, 2015
3:04:01 AM org.apache.catalina.startup.SetContextPropertiesRule
begin WARNING: [SetContextPropertiesRule]{Context} Setting property
'debug' to '0' did not find a matching property. May 21, 2015
3:04:07 AM org.apache.catalina.startup.HostConfig deployWAR INFO:
Deploying web application archive
D:\Alfresco\tomcat\webapps\alfresco.war May 21, 2015 3:04:56 AM
org.apache.catalina.core.StandardContext startInternal SEVERE: Error
listenerStart May 21, 2015 3:04:56 AM
org.apache.catalina.core.StandardContext startInternal SEVERE:
Context [/alfresco] startup failed due to previous errors May 21,
2015 3:04:56 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
D:\Alfresco\tomcat\webapps\share.war May 21, 2015 3:05:09 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\host-manager May 21, 2015 3:05:09 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\manager May 21, 2015 3:05:09 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory D:\Alfresco\tomcat\webapps\ROOT
May 21, 2015 3:05:09 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"] May 21, 2015
3:05:09 AM org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:05:09 AM
org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:05:09 AM
org.apache.catalina.startup.Catalina start INFO: Server startup in
68159 ms May 21, 2015 3:50:32 AM org.apache.coyote.AbstractProtocol
pause INFO: Pausing ProtocolHandler ["http-apr-8080"] May 21, 2015
3:50:32 AM org.apache.coyote.AbstractProtocol pause INFO: Pausing
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:50:32 AM
org.apache.coyote.AbstractProtocol pause INFO: Pausing
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:50:32 AM
org.apache.catalina.core.StandardService stopInternal INFO: Stopping
service Catalina May 21, 2015 3:51:00 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["http-apr-8080"] May 21, 2015 3:51:00 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:51:01 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:53:33 AM
org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR
based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
May 21, 2015 3:53:33 AM
org.apache.catalina.core.AprLifecycleListener init INFO: APR
capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true]. May 21, 2015 3:53:34 AM
org.apache.catalina.core.AprLifecycleListener initializeSSL INFO:
OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) May
21, 2015 3:53:34 AM org.apache.coyote.AbstractProtocol init INFO:
Initializing ProtocolHandler ["http-apr-8080"] May 21, 2015 3:53:34
AM org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:53:34 AM
org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:53:34 AM
org.apache.catalina.startup.Catalina load INFO: Initialization
processed in 973 ms May 21, 2015 3:53:34 AM
org.apache.catalina.core.StandardService startInternal INFO:
Starting service Catalina May 21, 2015 3:53:34 AM
org.apache.catalina.core.StandardEngine startInternal INFO: Starting
Servlet Engine: Apache Tomcat/7.0.52 May 21, 2015 3:53:34 AM
org.apache.catalina.startup.HostConfig deployDescriptor INFO:
Deploying configuration descriptor
D:\Alfresco\tomcat\conf\Catalina\localhost\solr.xml May 21, 2015
3:53:34 AM org.apache.catalina.startup.SetContextPropertiesRule
begin WARNING: [SetContextPropertiesRule]{Context} Setting property
'debug' to '0' did not find a matching property. May 21, 2015
3:53:37 AM org.apache.catalina.startup.HostConfig deployWAR INFO:
Deploying web application archive
D:\Alfresco\tomcat\webapps\alfresco.war May 21, 2015 3:54:15 AM
org.apache.catalina.core.StandardContext startInternal SEVERE: Error
listenerStart May 21, 2015 3:54:15 AM
org.apache.catalina.core.StandardContext startInternal SEVERE:
Context [/alfresco] startup failed due to previous errors May 21,
2015 3:54:15 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
D:\Alfresco\tomcat\webapps\share.war May 21, 2015 3:54:23 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\host-manager May 21, 2015 3:54:23 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\manager May 21, 2015 3:54:23 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory D:\Alfresco\tomcat\webapps\ROOT
May 21, 2015 3:54:23 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"] May 21, 2015
3:54:23 AM org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 3:54:23 AM
org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["http-bio-8443"] May 21, 2015 3:54:23 AM
org.apache.catalina.startup.Catalina start INFO: Server startup in
49030 ms May 21, 2015 5:04:09 AM org.apache.coyote.AbstractProtocol
pause INFO: Pausing ProtocolHandler ["http-apr-8080"] May 21, 2015
5:04:09 AM org.apache.coyote.AbstractProtocol pause INFO: Pausing
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 5:04:09 AM
org.apache.coyote.AbstractProtocol pause INFO: Pausing
ProtocolHandler ["http-bio-8443"] May 21, 2015 5:04:09 AM
org.apache.catalina.core.StandardService stopInternal INFO: Stopping
service Catalina May 21, 2015 5:04:11 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["http-apr-8080"] May 21, 2015 5:04:11 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 5:04:11 AM
org.apache.coyote.AbstractProtocol stop INFO: Stopping
ProtocolHandler ["http-bio-8443"] May 21, 2015 5:08:29 AM
org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR
based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
May 21, 2015 5:08:29 AM
org.apache.catalina.core.AprLifecycleListener init INFO: APR
capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true]. May 21, 2015 5:08:30 AM
org.apache.catalina.core.AprLifecycleListener initializeSSL INFO:
OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) May
21, 2015 5:08:30 AM org.apache.coyote.AbstractProtocol init INFO:
Initializing ProtocolHandler ["http-apr-8080"] May 21, 2015 5:08:30
AM org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 5:08:30 AM
org.apache.coyote.AbstractProtocol init INFO: Initializing
ProtocolHandler ["http-bio-8443"] May 21, 2015 5:08:30 AM
org.apache.catalina.startup.Catalina load INFO: Initialization
processed in 988 ms May 21, 2015 5:08:30 AM
org.apache.catalina.core.StandardService startInternal INFO:
Starting service Catalina May 21, 2015 5:08:30 AM
org.apache.catalina.core.StandardEngine startInternal INFO: Starting
Servlet Engine: Apache Tomcat/7.0.52 May 21, 2015 5:08:30 AM
org.apache.catalina.startup.HostConfig deployDescriptor INFO:
Deploying configuration descriptor
D:\Alfresco\tomcat\conf\Catalina\localhost\solr.xml May 21, 2015
5:08:30 AM org.apache.catalina.startup.SetContextPropertiesRule
begin WARNING: [SetContextPropertiesRule]{Context} Setting property
'debug' to '0' did not find a matching property. May 21, 2015
5:08:33 AM org.apache.catalina.startup.HostConfig deployWAR INFO:
Deploying web application archive
D:\Alfresco\tomcat\webapps\alfresco.war May 21, 2015 5:09:07 AM
org.apache.catalina.core.StandardContext startInternal SEVERE: Error
listenerStart May 21, 2015 5:09:07 AM
org.apache.catalina.core.StandardContext startInternal SEVERE:
Context [/alfresco] startup failed due to previous errors May 21,
2015 5:09:07 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
D:\Alfresco\tomcat\webapps\share.war May 21, 2015 5:09:14 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\host-manager May 21, 2015 5:09:14 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory
D:\Alfresco\tomcat\webapps\manager May 21, 2015 5:09:14 AM
org.apache.catalina.startup.HostConfig deployDirectory INFO:
Deploying web application directory D:\Alfresco\tomcat\webapps\ROOT
May 21, 2015 5:09:15 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"] May 21, 2015
5:09:15 AM org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["ajp-apr-8009"] May 21, 2015 5:09:15 AM
org.apache.coyote.AbstractProtocol start INFO: Starting
ProtocolHandler ["http-bio-8443"] May 21, 2015 5:09:15 AM
org.apache.catalina.startup.Catalina start INFO: Server startup in
44451 ms
Blockquote
Please any help or information will be highly appreciated.
Your webapps directory of tomcat should be like below image.
After installation of amp, the folder of alfresco and share are removed from webapps(under tomcat).Installation of amp is adding content in alfresco.war.The old war will be renamed as .bak file.I think after restarting alfresco your war files are not properly deployed.Check the size of alfresco(This should be around 160 mb) and share(This should be around 50-60 mb) folder.

Apache Tomcat Startup Error : SEVERE: Error deploying web application directory

I copied tomcat from one server to another and now on new server when I start it doesnot load any app and gives a blank page.
Here's the error in calatalina logs
Jun 8, 2014 3:43:55 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/app/t1isa1m19/Java/jre/lib/i386:/usr/lib
Jun 8, 2014 3:43:56 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 8, 2014 3:43:56 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 8, 2014 3:43:56 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1071 ms
Jun 8, 2014 3:43:56 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 8, 2014 3:43:56 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Jun 8, 2014 3:43:56 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/app/t1isa1m19/nonprod/Tomcat/apache-tomcat-7.0.26/conf/Catalina/localhost/hotel_post.xml
Jun 8, 2014 3:43:56 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 2: The markup in the document following the root element must be well-formed.
Throwable occurred: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
at weblogic.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)
at weblogic.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:214)
at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:376)
at weblogic.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:306)
at weblogic.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1270)
at weblogic.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1048)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:330)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:526)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:582)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:153)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1176)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:153)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1521)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
As mentioned, I copied Tomcat Directory from one server to another. Both the server have a difference in path to Tomcat Directory and I covered that using a soft link. Which really didn't work.
Changing it to complete/absolute path worked.
Changed /softlink/tomcatDirectory to /root/absolute_path/tomcatDirectory and it worked.

Maven Embedded Glassfish Plugin - not starting

I can't seem to get a web application running with the embedded glassfish plugin:
Plugin Configuration:
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>${glassfish.version}</version>
<configuration>
<port>${http.port}</port>
<autoDelete>true</autoDelete>
<app>${project.build.directory}/${maven.war.final.name}</app>
<containerType>web</containerType>
<!--
<goalPrefix>glassfish</goalPrefix>
<configFile>${project.build.directory}/${finalName}/WEB-INF/domain.xml</configFile>
<instanceRoot>${project.build.directory}/glassfish/${glassfish.version}</instanceRoot>
<installRoot>${project.build.directory}/glassfish/${glassfish.version}</installRoot>
-->
<!--
<contextRoot>test</contextRoot>
-->
</configuration>
</plugin>
Configuration:
<properties>
<finalName>${project.artifactId}-${project.version}</finalName>
<maven.war.final.name>${finalName}.war</maven.war.final.name>
<http.port>80</http.port>
<glassfish.version>3.0</glassfish.version>
</properties>
Command Line:
mvn clean package embedded-glassfish:run
Output:
INFO: GlassFish v3 (74.2) startup time : Embedded(323ms) startup services(323ms) total(646ms)
Aug 21, 2010 2:04:10 PM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
Aug 21, 2010 2:04:11 PM org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
INFO: JMXStartupService: JMXConnector system is disabled, skipping.
Aug 21, 2010 2:04:11 PM AppServerStartup run
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
Aug 21, 2010 2:04:11 PM org.hibernate.validator.util.Version <clinit>
INFO: Hibernate Validator null
Aug 21, 2010 2:04:11 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
Aug 21, 2010 2:04:16 PM com.sun.common.util.logging.LoggingConfigImpl openPropFile
INFO: Cannot read logging.properties file.
Aug 21, 2010 2:04:16 PM com.sun.enterprise.web.WebContainer createHttpListener
INFO: Created HTTP listener embedded-listener on port 80
Aug 21, 2010 2:04:16 PM com.sun.enterprise.web.WebContainer configureHttpServiceProperties
WARNING: pewebcontainer.invalid_http_service_property
Aug 21, 2010 2:04:16 PM com.sun.enterprise.web.WebContainer createHosts
INFO: Created virtual server server
Aug 21, 2010 2:04:16 PM com.sun.enterprise.web.WebContainer loadSystemDefaultWebModules
INFO: Virtual server server loaded system default web module
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.SecurityLifecycle <init>
INFO: security.secmgroff
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.ssl.SSLUtils checkCertificateDates
SEVERE: java_security.expired_certificate
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: Security startup service called
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.PolicyLoader loadPolicy
INFO: policy.loading
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.auth.realm.Realm doInstantiate
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
Aug 21, 2010 2:04:18 PM com.sun.enterprise.security.SecurityLifecycle onInitialization
INFO: Security service(s) started successfully....
classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7#756095fc
Aug 21, 2010 2:04:20 PM org.jboss.weld.bootstrap.WeldBootstrap <clinit>
INFO: WELD-000900 SNAPSHOT
Aug 21, 2010 2:04:20 PM org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
nullID: /mnt/projects/github.com/prettyfaces-tests/gfembed4134153095470013496tmp/applications/prettyfaces-demo-0.0.1-SNAPSHOT/ CLASSES: [class de.chkal.prettytest.WelcomeBean, class de.chkal.prettytest.GreetingBean, class de.chkal.prettytest.WelcomeBean2]
Aug 21, 2010 2:04:20 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/prettyfaces-demo-0.0.1-SNAPSHOT'
Aug 21, 2010 2:04:22 PM com.sun.enterprise.web.WebApplication start
INFO: Loading application prettyfaces-demo-0.0.1-SNAPSHOT at /prettyfaces-demo-0.0.1-SNAPSHOT
Hit ENTER to redeploy, X to exit
Netstat -an | grep 80 doesn't list anything:
netstat -an | grep :80
This configuration has worked for me in the past, I don't see any log messages or exceptions. What am I missing?
I don't have the full explanation (and I'm too lazy to find the real cause of the problem tonight) but it seems the maven-glassfish-embedded-plugin doesn't like the port 80, it just works with, say, 8080.
By the way, I'd recommend using the version 3.0.1.
<properties>
<finalName>${project.artifactId}-${project.version}</finalName>
<maven.war.final.name>${finalName}.war</maven.war.final.name>
<http.port>8080</http.port>
<glassfish.version>3.0.1</glassfish.version>
</properties>