New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded Tomcat not starting up #9476
Comments
@vins01-4science : In the very log exception stacktrace you shared, I noticed it ends with this:
That appears to be issue #9217. It tends to occur when a prior error causes DSpace to crash on startup. I've seen it mostly when Solr fails to startup (see #9217), but it also can sometimes occur if the database crashes. In any case, the NullPointerException is usually a snowballing exception. It's misleading because the actual error is usually in the dspace.log file before that NullPointerException. I just wanted to mention this in case it's helpful in debugging the issue with Embedded Tomcat. For now, I'll pull this ticket over to the 8.0 board. Hopefully we can find a way to fix this prior to the release. Needs a volunteer |
Hi, I have come upon the same issue. As running "mvn dependency:tree -Dverbose -Dincludes=org.antlr" gave:
I aligned with the ANTLR version Hibernate prefers by adding this to pom.xml at the server-boot module level:
Then rebuilt the project. The warning had gone and I could continue installation with the rest of the steps. (This comes from DSpace Developers mailing list where I first reported the issue) |
could you open a PR? |
@atarix83 and @vins01-4science : I have a fix PR in #9505. |
…ServiceImpl for startup issues
Bug 👾
In the latest DSpace version, I am not able to startup the spring-boot with Embedded Tomcat environment, i.e.
server-boot
project.I tried to run it, accordingly to the wiki, but i get some errors in console and event inside the
dspace.log
file.Steps to Reproduce 📝
mvn
command to build and package the environmentdspace/modules/server-boot/target
jar
using thejava
runtime (You should use a 17+ version)Errors ☢️
The first message I can see inside the console after the
spring-boot
logo comes in is the following:And this is due to a wrong version of ANTLR used by the project. In fact, inside
hibernate-core
we are using theantlr4-runtime:4.13.0
meanwhile inside thesolr-core
we are using the version4.5.1-1
. This latest one is marked withruntime
target, so it will be used during runtime.After replacing it with the right version, the errors inside the log are still there:
Log Errors
Possibly related issues 🚧
Related Work on
DSpace
The text was updated successfully, but these errors were encountered: