I have to do a store migration from infinispan v11 to infinispan v13.
I am following the instructions as mentioned in https://infinispan.org/docs/13.0.x/titles/upgrading/upgrading.html#migrating-data-between-stores
I am getting below exception. What am I doing wrong? Is store migration supported from version 11 to 13?
WARN: ISPN000554: jboss-marshalling is deprecated and planned for removal
Aug 25, 2022 9:29:35 PM org.infinispan.marshall.core.impl.DelegatingUserMarshaller start
INFO: ISPN000556: Starting user marshaller 'org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller'
Aug 25, 2022 9:29:35 PM org.infinispan.factories.GlobalComponentRegistry preStart
INFO: ISPN000128: Infinispan version: Infinispan 'Triskaidekaphobia' 13.0.9.Final
Aug 25, 2022 9:29:36 PM org.infinispan.jboss.marshalling.JbossMarshallingModule cacheManagerStarting
WARN: ISPN000554: jboss-marshalling is deprecated and planned for removal
Aug 25, 2022 9:29:36 PM org.infinispan.marshall.core.impl.DelegatingUserMarshaller start
INFO: ISPN000556: Starting user marshaller 'org.infinispan.commons.marshall.ImmutableProtoStreamMarshaller'
Aug 25, 2022 9:29:36 PM org.jboss.threads.Version <clinit>
INFO: JBoss Threads version 2.3.3.Final
[WARNING]
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:116)
at java.lang.reflect.Method.invoke (Method.java:577)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "org.infinispan.persistence.spi.InitializationContext.getPersistenceMarshaller()" because "ctx" is null
at org.infinispan.persistence.jdbc.impl.table.AbstractTableManager.<init> (AbstractTableManager.java:100)
at org.infinispan.persistence.jdbc.impl.table.AbstractTableManager.<init> (AbstractTableManager.java:86)
at org.infinispan.persistence.jdbc.impl.table.PostgresTableManager.<init> (PostgresTableManager.java:20)
at org.infinispan.persistence.jdbc.impl.table.TableManagerFactory.getManager (TableManagerFactory.java:49)
at org.infinispan.tools.store.migrator.jdbc.JdbcStoreReader.getTableManager (JdbcStoreReader.java:80)
at org.infinispan.tools.store.migrator.jdbc.JdbcStoreReader.iterator (JdbcStoreReader.java:68)
at org.infinispan.tools.store.migrator.StoreMigrator.run (StoreMigrator.java:110)
at org.infinispan.tools.store.migrator.StoreMigrator.main (StoreMigrator.java:138)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke (Method.java:577)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
at java.lang.Thread.run (Thread.java:833)
migrator.properties
source.type=JDBC_STRING
source.cache_name=mycache
source.version=11
source.dialect=POSTGRES
source.connection_pool.connection_url=jdbc:postgresql://localhost:5400/mydemo
source.connection_pool.driver_class=org.postgresql.Driver
source.connection_pool.username=mydemo
source.connection_pool.password=mypassword
source.table.string.table_name_prefix=my_cache
source.table.string.id.name=ID
source.table.string.id.type=VARCHAR
source.table.string.data.name=DATA
source.table.string.data.type=bytea
source.table.string.timestamp.name=TIMESTAMP
source.table.string.timestamp.type=BIGINT
source.table.string.segment.name=SEGMENT
source.table.string.segment.type=BIGINT
source.segment_count=256
source.db.major_version=14
source.db.minor_version=4
target.type=JDBC_STRING
target.version=13
target.cache_name=mycache
target.dialect=POSTGRES
target.connection_pool.connection_url=jdbc:postgresql://localhost:5430/minedemo
target.connection_pool.driver_class=org.postgresql.Driver
target.connection_pool.username=mydemo
target.connection_pool.password=mypassword
target.table.string.table_name_prefix=my_cache
target.table.string.id.name=ID
target.table.string.id.type=VARCHAR
target.table.string.data.name=DATA
target.table.string.data.type=bytea
target.table.string.timestamp.name=TIMESTAMP
target.table.string.timestamp.type=BIGINT
target.table.string.segment.name=SEGMENT
target.table.string.segment.type=BIGINT
target.segment_count=256
target.db.major_version=14
target.db.minor_version=5
target.key_to_string_mapper=org.infinispan.persistence.keymappers.DefaultTwoWayKey2StringMapper
Unfortunately this is a bug. I have created ISPN-14108 to track this and a fix should be available in the Infinispan 14.0.0.CR2 release.
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.
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.
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.
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.