Subdomain to raz1/dam isn't working

Hi there,

I added a subdomain like the tutorial on http://wiki.razuna.com/display/ecp/How+to+serve+the+DAM+folder+as+its+own+web+root

I named the host name as “cdn01.mydomain.tld”

I also added the 3 symlinks in /opt/razuna/tomcat/webapps/razuna/raz1/dam

Well, under cdn01.mydomain.tld (port 8080) the loginscreen appears, but I can’t login, it always says
“We are sorry but we could not log you in. Please check your credentials and try again.”

Any ideas how to solve this?

Hi Sushimaster ,

Please try to restart the tomcat and razuna and try re-login again to see how.

Hope this helps.

Well, after adding host entry I had to restart tomcat (shutdown/startup scripts in ./bin). But ok, I restarted it a couple of times yet, but no change.

The login screen sppears, but a login isn’t possible. Do I have to pay attention to something else?

Reset back to a normal setup and try to sign in. My guess is that your
sysadmin password is messed up. Also, I advise to use MySQL.

Hi,

let me clarify:

In Tomcat I have 2 hosts now:

razuna.mydomain.tld:8080 => main host, comes with installation. So I can reach the tennant here:
razuna.mydomain.tld:8080/razuna/raz1/dam

Then I added
cdn01.mydomain.tld:8080 host with the root on raz1/dam.

On host 1 (main) I can login and do what I want.
On host 2 (cdn) I see login page, but I can’t login.

Using MySQL, and the database is not messed up, I couldn’t be able to login via main host if there would be a problem with the password.

In conclusion:
I added the host in server.xml according the tutorial
I created these 3 symlinks in raz1/dam folder.

Anything else I have to do?

Hi,

Not sure how we can help you here really as this is clearly a configuration
issue with Tomcat and domains. Especially as one works and not the other.

I suggest you look further into Tomcat configuration or simply use a
front-end server (which is easier to set up).

I really try to get rid of port 8080 and/or the URI part /razuna or raz1/dam, but every tutorial leads into a sure deathtrap!

Check this tutorial:

I did steps 1-7 without any problem.

The last lines say:
“8. Edit $(TOMCAT_HOME)/bin/catalina.sh adding the following lines:
LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
9. Restart Tomcat.”

So I added that 2 lines at the end of catalina.sh and (re-)started tomcat.
Now I get

HTTP Status 404 - /razuna/admin
type Status report
message /razuna/admin
description The requested resource is not available.

Ahh ye, funny. So I deleted these 2 lines out of catalina.sh and restarted tomcat again - but it fails again. Only the tomcat status page in URL root is working - razuna not.

This is so annoying… not the toomcat host - tutorial is working, nor the nginx tutorial… and now the whole installation seems to be screwed now up by these tutorials…

Any advice how to revert that problem?

EDIT:
Just to mention this output from localhost.*:log:

java.lang.UnsupportedClassVersionError: com/naryx/tagfusion/cfm/application/cfHttpSessionListener : Unsupported major.minor version 52.0 (unable to load class com.naryx.tagfusion.cfm.application.cfHttpSessionListener)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:3111)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1348)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1828)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1709)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4919)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Apr 21, 2016 11:14:34 AM org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)

The log says “your Java is not correct”, more or less.

PATH=$PATH:/usr/lib/jvm/java-8-oracle

did the magic… why it’s necessary to set it after the install instructions in the tutorials… idk. I think it was that catalina.sh addition…
Anyway, it works again. However, the tutorials still are a mine field. Some typos here and there, outdated links or versions… I think I should write a corrected version soon :wink: