DSpace 5.5 xmlui not starting in Tomcat

499 views
Skip to first unread message

Paul Huddleston

unread,
Sep 20, 2017, 1:24:35 PM9/20/17
to DSpace Technical Support

First, my server details.  I am green with respect to DSpace, so I will start with some server information and then can move into the things that I might need.

 

Server Details:

Centos 7 – 7.4.1708.e17.centos.x86_64

Apache ant 1.9.2

Postgresql 9.6

Apache tomcat 8.5.20

Dspace 5.5

JVM 1.8.0_144-b01

 

This is a new installation that I created following the instructions found at: https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-InstallationInstructions

 

I have 2 issues that I have seen so far.  The first could be something that triggers the second.

In

 

 I have copied my [dspace]/webapps/* to [tomcat]/webapps

 

1)When I am in /[dspace]/bin, and run the command: ‘dspace database migrate’ or ‘dspace create-administrator’ I am told: bash: dspace: command not found.  It sure seems like this should work, and could be leading to the other issues.

 

2)The other issue that I am having is that, after this command: ‘cp –R [dspace]/webapps/* [tomcat]/webapps’ and getting those files copied over, I am able to go into the web interface of the Tomcat Web Application Manager and see that /, /docs, /examples, /host-manager, /jspui, /manager, /oai, /solr are all running = true.  /xmlui is running=false.  I can go to webaddress:8080/jspui and it works, but webaddress:8080/xmlui results in a 404 error.  I have a need to get the Mirage 2 theme working, but right now, I am using another in the xmlui.xconf file and still get the same results.

 

I am unfamiliar with what I am looking for in the logs.  I have attached a catalina log.  There are a few severe errors in there that might be of help if anyone knows what they mean. If anyone can think of reasons for this or need more information from logs, please let me know and I will get those posted.

 

Thanks,

Paul

catalina.2017-09-18.log

Mark H. Wood

unread,
Sep 21, 2017, 9:00:34 AM9/21/17
to DSpace Technical Support
On Wednesday, September 20, 2017 at 1:24:35 PM UTC-4, Paul Huddleston wrote:

First, my server details.  I am green with respect to DSpace, so I will start with some server information and then can move into the things that I might need.

 

Server Details:

Centos 7 – 7.4.1708.e17.centos.x86_64

Apache ant 1.9.2

Postgresql 9.6

Apache tomcat 8.5.20

Dspace 5.5

JVM 1.8.0_144-b01

 

This is a new installation that I created following the instructions found at: https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-InstallationInstructions

 

I have 2 issues that I have seen so far.  The first could be something that triggers the second.

In

 

 I have copied my [dspace]/webapps/* to [tomcat]/webapps

 

1)When I am in /[dspace]/bin, and run the command: ‘dspace database migrate’ or ‘dspace create-administrator’ I am told: bash: dspace: command not found.  It sure seems like this should work, and could be leading to the other issues.


Probably the current directory "." is not on your PATH.  Try './dspace database migrate' etc.
 

 

2)The other issue that I am having is that, after this command: ‘cp –R [dspace]/webapps/* [tomcat]/webapps’ and getting those files copied over, I am able to go into the web interface of the Tomcat Web Application Manager and see that /, /docs, /examples, /host-manager, /jspui, /manager, /oai, /solr are all running = true.  /xmlui is running=false.  I can go to webaddress:8080/jspui and it works, but webaddress:8080/xmlui results in a 404 error.  I have a need to get the Mirage 2 theme working, but right now, I am using another in the xmlui.xconf file and still get the same results.

 

I am unfamiliar with what I am looking for in the logs.  I have attached a catalina log.  There are a few severe errors in there that might be of help if anyone knows what they mean. If anyone can think of reasons for this or need more information from logs, please let me know and I will get those posted.

 


 | 18-Sep-2017 15:53:31.159 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
 | 18-Sep-2017 15:53:31.163 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.startInternal Context [/xmlui] startup failed due to previous errors

The "appropriate container log file" will probably be localhost.DATE.log or some similar name, in the same directory with catalina.log.  Its name will correspond to that of the relevant <Host> element in Tomcat's server.xml.

Paul Huddleston

unread,
Sep 21, 2017, 3:25:32 PM9/21/17
to Mark H. Wood, DSpace Technical Support
Thank you , Mark, for the response.

This did make a difference in the sense that it now moves past not being able to find the dspace script.  I was able to export the ./ to the path and that has helped.

now, I am greeted with a different issue when I try to run the command dspace create-administrator I am given this message:
Error: Could not find or load main class org.dspace.app.launcher.ScriptLauncher

I have looked at a few items regarding that error, and some of them recommend to edit /[dspace]/bin/dspace and hardcode the $DSPACEDIR=/dspace instead of the way it already was, but that still gives me the same error.  I have since changed this back.

I have also gone back and done another mvn package -Dmirage2.on=true followed up by [dspace-source]/dspace/target/dspace-installe/ant fresh_install thinking that something was just not right.  After this, I re-copied all of the webapps from [dspace]/webapps to [tomcat]/webapps and then restarted tomcat.

It is at this point that I can try the dspace create-administrator and get the error.

Also, in my tomcat manager, I can see that all webapps are starting and running except for xmlui.

--
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/x2jKhMHQHP0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech+unsubscribe@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.



--
Paul Huddleston
paul.hu...@gmail.com
Reply all
Reply to author
Forward
0 new messages