Address already in use : JVM_Bind when deploying to localhost - sap

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.

Related

alfresco and ldap configuration

I am currently configuring alfresco to use ldap server for authentication.
I followed the offecial documentation and i updated alfresco-global.properties file but it dosen't work.
i am using alfresco 5.2 and this is my alfresco-global.properties file and the ldap hiarchy.
###############################
## Common Alfresco Properties #
###############################
dir.root=C:/ALFRES~1/alf_data
alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http
share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http
### database connection properties ###
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=admin
db.name=alfresco
db.url=jdbc:postgresql://localhost:5432/${db.name}
# Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.
db.pool.max=275
db.pool.validate.query=SELECT 1
# The server mode. Set value here
# UNKNOWN | TEST | BACKUP | PRODUCTION
system.serverMode=UNKNOWN
### FTP Server Configuration ###
ftp.port=21
### RMI registry port for JMX ###
alfresco.rmi.services.port=50500
### External executable locations ###
ooo.exe=C:/ALFRES~1/LIBREO~1/App/libreoffice/program/soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=C:\\alfresco-community\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
jodconverter.enabled=false
jodconverter.officeHome=C:/ALFRES~1/LIBREO~1/App/libreoffice
jodconverter.portNumbers=8100
### Initial admin password ###
alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634
### E-mail site invitation setting ###
notification.email.siteinvite=false
### License location ###
dir.license.external=C:/ALFRES~1
### Solr indexing ###
index.subsystem.name=solr4
dir.keystore=${dir.root}/keystore
solr.host=localhost
solr.port.ssl=8443
### Allow extended ResultSet processing
security.anyDenyDenies=false
### Smart Folders Config Properties ###
smart.folders.enabled=false
### Remote JMX (Default: disabled) ###
alfresco.jmx.connector.enabled=false
### Remote JMX (Default: disabled) ###
alfresco.jmx.connector.enabled=false
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap
ntlm.authentication.sso.enabled=false
ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s
ldap.authentication.java.naming.provider.url=ldap://localhost:10389
ldap.authentication.defaultAdministratorUserNames=Administrator,alfresco
ldap.synchronization.java.naming.security.principal=admin
ldap.synchronization.java.naming.security.credentials=secret
ldap.synchronization.groupSearchBase=ou=groups,o=mojo
ldap.synchronization.userSearchBase=ou=users,o=mojo
My Log
mars 30, 2017 4:05:46 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1.
mars 30, 2017 4:05:46 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
mars 30, 2017 4:05:47 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFOS: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014)
mars 30, 2017 4:05:47 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:05:47 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:05:47 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:05:50 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 5988 ms
mars 30, 2017 4:05:50 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
mars 30, 2017 4:05:50 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.x
mars 30, 2017 4:05:50 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\alfresco.xml
mars 30, 2017 4:07:38 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
mars 30, 2017 4:07:38 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Erreur de démarrage du contexte [/alfresco] suite aux erreurs précédentes
mars 30, 2017 4:07:38 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\alfresco.xml has finished in 108 389 ms
mars 30, 2017 4:07:38 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\share.xml
mars 30, 2017 4:09:05 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\share.xml has finished in 86 895 ms
mars 30, 2017 4:09:05 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\solr4.xml
mars 30, 2017 4:09:05 PM org.apache.catalina.startup.SetContextPropertiesRule begin
AVERTISSEMENT: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
mars 30, 2017 4:09:40 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\solr4.xml has finished in 34 391 ms
mars 30, 2017 4:09:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Déploiement de l'archive C:\alfresco-community\tomcat\webapps\ROOT.war de l'application web
mars 30, 2017 4:09:40 PM org.apache.catalina.startup.SetContextPropertiesRule begin
AVERTISSEMENT: [SetContextPropertiesRule]{Context} Setting property 'debug' to '100' did not find a matching property.
mars 30, 2017 4:09:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Deployment of web application archive C:\alfresco-community\tomcat\webapps\ROOT.war has finished in 547 ms
mars 30, 2017 4:09:40 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Déploiement de l'archive C:\alfresco-community\tomcat\webapps\_vti_bin.war de l'application web
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Deployment of web application archive C:\alfresco-community\tomcat\webapps\_vti_bin.war has finished in 711 ms
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Déploiement du répertoire C:\alfresco-community\tomcat\webapps\host-manager de l'application web
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Deployment of web application directory C:\alfresco-community\tomcat\webapps\host-manager has finished in 285 ms
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Déploiement du répertoire C:\alfresco-community\tomcat\webapps\manager de l'application web
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Deployment of web application directory C:\alfresco-community\tomcat\webapps\manager has finished in 244 ms
mars 30, 2017 4:09:41 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:09:41 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:09:41 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:09:41 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 231821 ms
mars 30, 2017 4:11:26 PM org.apache.coyote.AbstractProtocol pause
INFOS: Pausing ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:11:26 PM org.apache.coyote.AbstractProtocol pause
INFOS: Pausing ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:11:26 PM org.apache.coyote.AbstractProtocol pause
INFOS: Pausing ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:11:26 PM org.apache.catalina.core.StandardService stopInternal
INFOS: Arrêt du service Catalina
mars 30, 2017 4:11:57 PM org.apache.coyote.AbstractProtocol stop
INFOS: Stopping ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:11:57 PM org.apache.coyote.AbstractProtocol stop
INFOS: Stopping ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:11:57 PM org.apache.coyote.AbstractProtocol stop
INFOS: Stopping ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:12:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.5.1.
mars 30, 2017 4:12:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
mars 30, 2017 4:12:35 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFOS: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014)
mars 30, 2017 4:12:35 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:12:35 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:12:35 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:12:37 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 4101 ms
mars 30, 2017 4:12:37 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
mars 30, 2017 4:12:37 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.x
mars 30, 2017 4:12:37 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\alfresco.xml
mars 30, 2017 4:15:22 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\alfresco.xml has finished in 164 795 ms
mars 30, 2017 4:15:22 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\share.xml
mars 30, 2017 4:15:56 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\share.xml has finished in 34 374 ms
mars 30, 2017 4:15:56 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Déploiement du descripteur de configuration C:\alfresco-community\tomcat\conf\Catalina\localhost\solr4.xml
mars 30, 2017 4:15:56 PM org.apache.catalina.startup.SetContextPropertiesRule begin
AVERTISSEMENT: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
mars 30, 2017 4:16:25 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFOS: Deployment of configuration descriptor C:\alfresco-community\tomcat\conf\Catalina\localhost\solr4.xml has finished in 28 614 ms
mars 30, 2017 4:16:25 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Déploiement de l'archive C:\alfresco-community\tomcat\webapps\ROOT.war de l'application web
mars 30, 2017 4:16:25 PM org.apache.catalina.startup.SetContextPropertiesRule begin
AVERTISSEMENT: [SetContextPropertiesRule]{Context} Setting property 'debug' to '100' did not find a matching property.
mars 30, 2017 4:16:25 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Deployment of web application archive C:\alfresco-community\tomcat\webapps\ROOT.war has finished in 479 ms
mars 30, 2017 4:16:25 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Déploiement de l'archive C:\alfresco-community\tomcat\webapps\_vti_bin.war de l'application web
mars 30, 2017 4:16:26 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Deployment of web application archive C:\alfresco-community\tomcat\webapps\_vti_bin.war has finished in 619 ms
mars 30, 2017 4:16:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Déploiement du répertoire C:\alfresco-community\tomcat\webapps\host-manager de l'application web
mars 30, 2017 4:16:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Deployment of web application directory C:\alfresco-community\tomcat\webapps\host-manager has finished in 337 ms
mars 30, 2017 4:16:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Déploiement du répertoire C:\alfresco-community\tomcat\webapps\manager de l'application web
mars 30, 2017 4:16:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Deployment of web application directory C:\alfresco-community\tomcat\webapps\manager has finished in 260 ms
mars 30, 2017 4:16:27 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-apr-8080"]
mars 30, 2017 4:16:27 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["ajp-apr-8009"]
mars 30, 2017 4:16:27 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-bio-8443"]
mars 30, 2017 4:16:27 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 229832 ms
It is hard to tell what the problem is without any error messages or exceptions, but you might want to try adjusting the userNameFormat. For example, instead of %s, it is likely that it needs to be something like:
ldap.authentication.userNameFormat=uid=%s,ou=users,o=mojo
But, again, it is hard to tell without more info.
Take a look at this, you need to create ldap properties file inside this path tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1

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.

In Spring project unable to start Tomcat from IntlleiJ

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.

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>