Upgrading to DotCMS 3.0.1 from 2.2 Failed on Windows.

77 views
Skip to first unread message

George Taku

unread,
Jan 26, 2015, 2:23:31 PM1/26/15
to dot...@googlegroups.com
I am having a some difficulties with upgrading to dotCMS 3.0 from 2.2 on Windows.
to upgrade by using eclipse to build. After getting the advice to just follow the instructions provided on the dotCMS website for upgrading to 3.0, I have made a few attempts and the build continually failed.
Attempts to build with nothing added to the com.dotcms.config plugin for configuring clustering (just blank as it came with the download), and with configuration for manual clustering as well, all Failed. 

Has anyone encountered Failed build and how to go about resolving errors such as the ones I'll list here? No log file was produced in the tomcat log directory. I copied the error on the command line.

Here are the errors for the latest Failed build:

[plugin-deploy-task] For: ROOT/dotserver/tomcat-7.0.54/webapps/ROOT/WEB-INF/lib/plugin-com.dotcms.config.jar
[plugin-deploy-task] Created back-up folder: c:\dotcms3-0-1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib
[plugin-deploy-task] Error creating back-up file: c:\dotcms3-0-1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\plugin-com.dotcms.config.jar
[plugin-deploy-task] Error replacing/adding back-up file: c:\dotcms3-0-1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\plugin-com.dotcms.config.jar
[plugin-deploy-task] java.util.zip.ZipException: error reading zip file
[plugin-deploy-task]    at java.util.zip.ZipFile.read(Native Method)
[plugin-deploy-task]    at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
[plugin-deploy-task]    at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679)
[plugin-deploy-task]    at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
[plugin-deploy-task]    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
[plugin-deploy-task]    at java.io.FilterInputStream.read(FilterInputStream.java:107)
[plugin-deploy-task]    at com.dotmarketing.plugin.util.PluginRoot.copyContent(PluginRoot.java:316)
[plugin-deploy-task]    at com.dotmarketing.plugin.util.PluginRoot.moveForPlugin(PluginRoot.java:176)
[plugin-deploy-task]    at com.dotmarketing.plugin.util.PluginRoot.deploy(PluginRoot.java:100)
[plugin-deploy-task]    at com.dotmarketing.plugin.ant.DeployTask.execute(DeployTask.java:30)
[plugin-deploy-task]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[plugin-deploy-task]    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[plugin-deploy-task]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[plugin-deploy-task]    at java.lang.reflect.Method.invoke(Method.java:606)
[plugin-deploy-task]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[plugin-deploy-task]    at org.apache.tools.ant.Task.perform(Task.java:348)
[plugin-deploy-task]    at org.apache.tools.ant.Target.execute(Target.java:357)
[plugin-deploy-task]    at org.apache.tools.ant.Target.performTasks(Target.java:385)
[plugin-deploy-task]    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[plugin-deploy-task]    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[plugin-deploy-task]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[plugin-deploy-task]    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[plugin-deploy-task]    at org.apache.tools.ant.Main.runBuild(Main.java:758)
[plugin-deploy-task]    at org.apache.tools.ant.Main.startAnt(Main.java:217)
[plugin-deploy-task]    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[plugin-deploy-task]    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
[plugin-deploy-task] ----
[plugin-deploy-task] For: ROOT/dotserver/tomcat-7.0.54/webapps/ROOT/WEB-INF/lib/plugin-com.dotcms.page.extension.config.jar

BUILD FAILED
java.lang.NullPointerException: entry
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:342)
        at java.util.jar.JarFile.getInputStream(JarFile.java:412)
        at com.dotmarketing.plugin.util.PluginRoot.moveForPlugin(PluginRoot.java:176)
        at com.dotmarketing.plugin.util.PluginRoot.deploy(PluginRoot.java:100)
        at com.dotmarketing.plugin.ant.DeployTask.execute(DeployTask.java:30)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 2 minutes 12 seconds

c:\dotcms3-0-1>
Message has been deleted

Jason Tesser

unread,
Jan 26, 2015, 2:54:52 PM1/26/15
to dot...@googlegroups.com
it looks like you are running the autoupgrader or something which is not what that doc references. 

On Mon, Jan 26, 2015 at 2:28 PM, George Taku <takug...@gmail.com> wrote:
I abandoned efforts to build through Eclipse after getting advice to simply build using the instruction provided at http://dotcms.com/docs/latest/upgrading-to-dotcms-3. I have since not been having Failed builds with the instructions provided there. Help please.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

George Taku

unread,
Jan 26, 2015, 3:05:10 PM1/26/15
to dot...@googlegroups.com
I abandoned efforts to build through Eclipse after getting advice to simply build using the instruction provided at http://dotcms.com/docs/latest/upgrading-to-dotcms-3. I have since been having Failed builds with the instructions provided there. Help please.


On Monday, January 26, 2015 at 1:23:31 PM UTC-6, George Taku wrote:

Jason Tesser

unread,
Jan 26, 2015, 3:08:00 PM1/26/15
to dot...@googlegroups.com
what do you mean failing builds. If you download the ZIP from our website there is nothing to build.  Unless you mean your plugins are failing to deploy (build) in which case you need to update your plugins and or better yet upgrade first and then update and deploy them

--

George Taku

unread,
Jan 26, 2015, 3:22:42 PM1/26/15
to dot...@googlegroups.com
LORDs_diakonos - Yes, I downloaded the zip from the dotCMS website. Yes, I mean that .\bin\deploy-plugin.bat failed. My attempts have been with our plugins added. In which case, it's our plugins that are failing to deploy like you wrote. How do I get a log file to see which of our plugins I need to update? Thanks.

Jason Tesser

unread,
Jan 26, 2015, 3:27:39 PM1/26/15
to dot...@googlegroups.com
i would drop one and deploy. and then another. You should have a log in the console where you execute the command but dropping one at a time should help.  

Keep in mind in 3.x we repackage every 3rd party lib so if you reference any of them maybe that is your issue 

Though looking at the original log it looks like your have an issue reading the disk 
[plugin-deploy-task] Error replacing/adding back-up file: c:\dotcms3-0-1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\plugin-com.dotcms.config.jar
[plugin-deploy-task] java.util.zip.ZipException: error reading zip file

not sure what this is for you. 

George Taku

unread,
Jan 26, 2015, 3:57:09 PM1/26/15
to dot...@googlegroups.com
Jason Tesser-
I have completely removed our plugins and got the same errors. Like you just mentioned, I then suspected that it could be read/write permissions on the path where I unpacked the 3.0. I am now attempting on to move and redeploy a path that is excluded from required specific extra read/write permissions for the purpose of test. I will update here soon.
Thanks.

Jason Tesser

unread,
Jan 26, 2015, 3:58:12 PM1/26/15
to dot...@googlegroups.com
ok maybe just a permission issue.  Seems like something like that 

George Taku

unread,
Jan 26, 2015, 5:53:16 PM1/26/15
to dot...@googlegroups.com
Yes. There was a permissions issue. After moving the unpacked 3.0, copying the assets and configuring the server and context as directed in the instructions, I was able to get success in the build. However, when I start, there is a blink flash of the command line as though a new window was to pop up and then returns to the command line with a confirmation of successfully starting or not. Of course when I go to the browser and type in http://localhost:8080 an "Unable to connect."
What could possible be wrong?

Here is the latest of the command line output:

compile:
     [echo] Building at: com.dotcms.config at C:\Java\dotcms3_0_1\plugins\com.dotcms.config

checkFileExists:

if_target:

doif:

jar:

build:

deploy-plugins:
     [echo] Copying plugins to: C:\Java\dotcms3_0_1\bin\ant/../../dotserver/tomcat-7.0.54/webapps/ROOT
     [copy] Copying 1 file to C:\Java\dotcms3_0_1\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\classes

deploy-plugin:
     [copy] Copying 1 file to C:\Java\dotcms3_0_1\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib
     [echo] Deploying plugins from: C:\Java\dotcms3_0_1\bin\ant/../../dotserver/tomcat-7.0.54/webapps/ROOT
[plugin-deploy-task] Back-up folder created at: C:\Java\dotcms3_0_1\bin\ant\..\..\_original
[plugin-deploy-task] Getting JAR list for:C:\Java\dotcms3_0_1\bin\ant/../../dotserver/tomcat-7.0.54/webapps/ROOT/WEB-INF/lib
[plugin-deploy-task] Loading files using filter from filesystem
[plugin-deploy-task] Sorting JAR list
[plugin-deploy-task] ---------------------------------------------------------------
[plugin-deploy-task] Overriding/Adding ROOT files for com.dotcms.config plugin...
[plugin-deploy-task] ----
[plugin-deploy-task] For: ROOT/dotserver/tomcat-7.0.54/conf/server.xml
[plugin-deploy-task] Created back-up folder: C:\Java\dotcms3_0_1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\conf
[plugin-deploy-task] Created back-up file: C:\Java\dotcms3_0_1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\conf\server.xml
[plugin-deploy-task] Replaced/added file: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\conf\server.xml
[plugin-deploy-task] ----
[plugin-deploy-task] For: ROOT/dotserver/tomcat-7.0.54/webapps/ROOT/META-INF/context.xml
[plugin-deploy-task] Created back-up folder: C:\Java\dotcms3_0_1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\webapps\ROOT\META-INF
[plugin-deploy-task] Created back-up file: C:\Java\dotcms3_0_1\bin\ant\..\..\_original\dotserver\tomcat-7.0.54\webapps\ROOT\META-INF\context.xml
[plugin-deploy-task] Replaced/added file: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\META-INF\context.xml
[plugin-deploy-task] Starting mergePlugins
[plugin-deploy-task] Getting JAR list for:C:\Java\dotcms3_0_1\bin\ant/../../dotserver/tomcat-7.0.54/webapps/ROOT/WEB-INF/lib
[plugin-deploy-task] Loading files using filter from filesystem
[plugin-deploy-task] Sorting JAR list
[plugin-deploy-task] Loading 1 plugins
[plugin-deploy-task] Loading plugin at: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\plugin-com.dotcms.config.jar
[plugin-deploy-task] Plugin name: com.dotcms.config
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\toolbox.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\dwr.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\classes\portal-ext.properties
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\classes\system-ext.properties
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\portlet-ext.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\urlrewrite.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\liferay-portlet-ext.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\tiles-defs-ext.xml
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\classes\dotmarketing-config.properties
[plugin-deploy-task] Nothing to merge into: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\classes\dotcms-config-cluster.properties
[plugin-deploy-task] Starting to copy files to file system
[plugin-deploy-task] The deployAppClassLoader parameter is false
[plugin-deploy-task] The lib directry is C:\Java\dotcms3_0_1\bin\ant/../../dotserver/tomcat-7.0.54/webapps/ROOT\WEB-INF\lib
[plugin-deploy-task] Finished to copy files to file system
[plugin-deploy-task] Loaded plugin at: C:\Java\dotcms3_0_1\bin\ant\..\..\dotserver\tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\plugin-com.dotcms.config.jar

BUILD SUCCESSFUL
Total time: 0 seconds

C:\Java\dotcms3_0_1>.\bin\startup.bat
Calling "C:\Java\dotcms3_0_1\bin\build.conf.bat"
Using CATALINA_BASE:   "C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54"
Using CATALINA_HOME:   "C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54"
Using CATALINA_TMPDIR: "C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54\temp"
Using JRE_HOME:        "C:\Java\jdk1.7.0_72\jre7"
Using CLASSPATH:       "C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54\bin\bootstrap.jar;C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54\bin\tomcat-juli.jar"
C:\Java\dotcms3_0_1>

Thanks.

George Taku

unread,
Jan 26, 2015, 5:54:43 PM1/26/15
to dot...@googlegroups.com
Without a conformation of success or failure starting, I meant to write.

Jason Tesser

unread,
Jan 26, 2015, 5:55:08 PM1/26/15
to dot...@googlegroups.com
maybe your server.xml is not on 8080.

did you start the tomcat
3250 Mary Street
Suite 405
Miami, FL 33133
Main: 305-900-2001 | Direct: 305.209.8104

jason....@dotcms.com | dotcms.com

Jason Tesser

unread,
Jan 26, 2015, 5:55:51 PM1/26/15
to dot...@googlegroups.com
look under the logs directory of tomcat or the logs directory under dotsecure

George Taku

unread,
Jan 26, 2015, 6:04:38 PM1/26/15
to dot...@googlegroups.com, jason....@dotcms.com
Thanks, Jason.
I configured my server.xml on port 8080, I have verified that as well. Also, no log was produced in the log directory in tomcat, and there is no dotsecure directory in the 3.x that I can see unlike there was in the earlier version. What could be wrong?

Jason Tesser

unread,
Jan 26, 2015, 6:09:32 PM1/26/15
to dot...@googlegroups.com, Jason Tesser
not sure you must be missing something and of course tomcat has a logs directory. 

You should see it here 

C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54

the dotsecure would be at C:\Java\dotcms3_0_1\bin\..\dotserver\tomcat-7.0.54/webapps/ROOT

George Taku

unread,
Jan 26, 2015, 6:15:51 PM1/26/15
to dot...@googlegroups.com, jason....@dotcms.com
That's where I looked.
See screenshots:



What am I not doing correctly?
Thanks, Jason.

Jason Tesser

unread,
Jan 26, 2015, 6:18:44 PM1/26/15
to dot...@googlegroups.com, Jason Tesser
I do not know and don't see the screenshots. 

Maybe ensure you are starting as admin.  Maybe that is hurting you.  Not sure. 

George Taku

unread,
Jan 26, 2015, 6:48:39 PM1/26/15
to dot...@googlegroups.com, jason....@dotcms.com

Sorry about that, Jason. It appears that pasting the screenshots did not carry through as seen from my end. Yes, tomcat has a log directory, which I could see, but no log file was created there after I started dotcms. I however do not see any dotsecure directory. Let me try to insert the screenshots again.



On Monday, January 26, 2015 at 5:18:44 PM UTC-6, LORDs_diakonos wrote:
I do not know and don't see the screenshots. 

Maybe ensure you are starting as admin.  Maybe that is hurting you.  Not sure. 
On Mon, Jan 26, 2015 at 6:15 PM, George Taku <takug...@gmail.com> wrote:
That's where I looked.
See screenshots:



Jason Tesser

unread,
Jan 26, 2015, 6:56:33 PM1/26/15
to dot...@googlegroups.com, Jason Tesser
no idea from here.  If you have support maybe contact the helpdesk and they can get on the machine and see. 

It should work. Maybe still a permission issue.  

George Taku

unread,
Jan 26, 2015, 7:02:27 PM1/26/15
to dot...@googlegroups.com, jason....@dotcms.com
Okay, thanks.
Reply all
Reply to author
Forward
0 new messages