Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

tomcat adding "â" to the file path and throwing org.apache.catalina.startup.ClassLoaderFactory validateFile error

I am trying to start tomcat from my MacOs Catalina. For some reason, it is adding a special character at the end of file path and throwing error. Any help finding why it is happening?

Here is the example,

swtata-mac:bin swtata$ sh catalina.sh stop
Using CATALINA_BASE:   /Users/swtata/dev/servers/apache-tomcat-8.5.57
Using CATALINA_HOME:   /Users/swtata/dev/servers/apache-tomcat-8.5.57
Using CATALINA_TMPDIR: /Users/swtata/dev/servers/apache-tomcat-8.5.57/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home
Using CLASSPATH:       /Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/bootstrap.jar:/Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/tomcat-juli.jar
Jan 26, 2021 5:31:09 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/a/Users/swtata/dev/servers/apache-tomcat-8.5.57/liba], exists: [false], isDirectory: [false], canRead: [false]
Jan 26, 2021 5:31:09 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/a/Users/swtata/dev/servers/apache-tomcat-8.5.57/lib/*.jara], exists: [false], isDirectory: [false], canRead: [false]
Jan 26, 2021 5:31:09 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/a/Users/swtata/dev/servers/apache-tomcat-8.5.57/liba], exists: [false], isDirectory: [false], canRead: [false]
Jan 26, 2021 5:31:09 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/swtata/dev/servers/apache-tomcat-8.5.57/bin/a/Users/swtata/dev/servers/apache-tomcat-8.5.57/lib/*.jara], exists: [false], isDirectory: [false], canRead: [false]
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:442)
swtata-mac:bin swtata$ ls
question from:https://stackoverflow.com/questions/65910370/tomcat-adding-%c3%a2-to-the-file-path-and-throwing-org-apache-catalina-startup-clas

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...