Turns out it was (probably) a permissions issue. Long story short, deleting
the WEB-INF directory under /Users/nando/sites/ and letting Lucee
regenerate it did the trick.
catalina.out is not affected by the AccessLogValve, that’s only for the
Access logs, so that’s not an indication (if you see the access log files
created then you are right though.
assuming that /Users/nando/sites exists, I can only think that this might
be a permission issue…
Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 5/29/2015 8:58 AM, Nando Breiter wrote:
On Fri, May 29, 2015 at 4:46 PM, Igal @ Lucee.org <@Igal> wrote:
where is your “logs” directory?
/Applications/lucee/logs
does it exist at {Tomcat-Base}/logs ? it’d be a much better idea to use
absolute paths
The logs work. There is output to catalina.out with every start and stop
of the server. The issue arises when I try to change the webroot on the
express version. Lucee works if I leave the default webroot
at /Applications/lucee/webapps/ROOT. When I try to change the webroot in
server.xml, by adding a context tag as below
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory=“logs”
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="" docBase="/Users/nando/sites" />
</Host>
(This works on my previous Railo-to-Lucee install, so I expected it to
work with the express install.)
Once I add the <context … tag, I get the raw file not found java error
whenever I try to hit any valid localhost url.
Lucee [4.5.1.015] - Error (java.io.IOException)
Message No such file or directory
Cause java.io.IOException
Java Stacktrace
No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method):-2
at java.io.File.createNewFile(File.java:1012):1012
at
lucee.commons.io.res.type.file.FileResource.getOutputStream(FileResource.java:212):212
at
lucee.commons.io.res.type.file.FileResource.getOutputStream(FileResource.java:205):205
at lucee.commons.io.IOUtil.copy(IOUtil.java:149):149
at
lucee.runtime.compiler.CFMLCompilerImpl.compile(CFMLCompilerImpl.java:104):104
at lucee.runtime.PageSourceImpl._compile(PageSourceImpl.java:335):335
at lucee.runtime.PageSourceImpl.compile(PageSourceImpl.java:309):309
at
lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:268):268
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:192):192
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:912):912
at
lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:944):944
at
lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:847):847
at
lucee.runtime.PageContextImpl.handlePageException(PageContextImpl.java:1904):1904
at
lucee.runtime.listener.ModernAppListener.onError(ModernAppListener.java:399):399
at
lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2265):2265
at
lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2221):2221
at
lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456
at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725):725
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219):219
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610):610
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537):537
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085):1085
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658):658
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222):222
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556):1556
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513):1513
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745
On startup, I don’t see anything obviously wrong reported in
catalina.out. Here’s a startup with the <context … /> tag included.
29-May-2015 17:43:28.661 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version:
Apache Tomcat/8.0.15
29-May-2015 17:43:28.662 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:
Nov 2 2014 19:25:20 UTC
29-May-2015 17:43:28.662 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server number:
8.0.15.0
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:
Mac OS X
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
10.7.5
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
x86_64
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JAVA_HOME:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
1.8.0_45-b14
29-May-2015 17:43:28.663 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Oracle Corporation
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
/Applications/lucee
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
/Applications/lucee
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument:
-Djava.util.logging.config.file=/Applications/lucee/conf/logging.properties
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Xms512m
29-May-2015 17:43:28.664 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Xmx512m
29-May-2015 17:43:28.665 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.endorsed.dirs=/Applications/lucee/endorsed
29-May-2015 17:43:28.665 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.base=/Applications/lucee
29-May-2015 17:43:28.665 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.home=/Applications/lucee
29-May-2015 17:43:28.665 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.io.tmpdir=/Applications/lucee/temp
29-May-2015 17:43:28.665 INFO [main]
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based
Apache Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path:
/Users/nando/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
29-May-2015 17:43:28.800 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[“http-nio-8888”]
29-May-2015 17:43:28.819 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
29-May-2015 17:43:28.822 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[“ajp-nio-8009”]
29-May-2015 17:43:28.824 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
29-May-2015 17:43:28.825 INFO [main]
org.apache.catalina.startup.Catalina.load Initialization processed in 604 ms
29-May-2015 17:43:28.854 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
Catalina
29-May-2015 17:43:28.854 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
Engine: Apache Tomcat/8.0.15
29-May-2015 17:43:32.840 INFO [localhost-startStop-1]
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
for TLDs yet contained no TLDs. Enable debug logging for this logger for a
complete list of JARs that were scanned but no TLDs were found in them.
Skipping unneeded JARs during scanning can improve startup time and JSP
compilation time.
lucee-server-root:/Applications/lucee/lib/ext/lucee-server
===================================================================
SERVER CONTEXT
===================================================================
Fri May 29 17:43:33 CEST 2015-169 using JRE Date Library
Fri May 29 17:43:33 CEST 2015-509 Start CFML Controller
Fri May 29 17:43:33 CEST 2015 Loaded Lucee Version 4.5.1.015
===================================================================
WEB CONTEXT (9c9e97e0f7c9c71612741a5cb4aea208)
-
config:/Users/nando/sites/WEB-INF/lucee
-
webroot:/Users/nando/sites
-
hash:9c9e97e0f7c9c71612741a5cb4aea208
-
label:9c9e97e0f7c9c71612741a5cb4aea208
===================================================================
29-May-2015 17:43:33.819 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[“http-nio-8888”]
29-May-2015 17:43:33.823 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[“ajp-nio-8009”]
29-May-2015 17:43:33.824 INFO [main]
org.apache.catalina.startup.Catalina.start Server startup in 4999 ms
Fri May 29 17:44:59 CEST 2015-521 class
lucee.runtime.instrumentation.Agent.getInstrumentation() is not returning a
Instrumentation
Backstory:
Until now, I’ve been developing with an updated-to-Lucee Railo install.
I’ve run into a problem with a particular application because Railo was
installed as root on my Mac. My goal is to get Lucee running on my Mac dev
machine under a non-privileged user. Since yesterday I had no luck starting
the Railo-to-Lucee install under another user, today I thought it might be
easier to simply install Lucee again.
Here: Download Lucee
There isn’t a Mac installer, so my choices are Express or Custom.
Same here:
Top 10 Best Bitcoin Slots Sites | Best Online Casino 2022
The old 4.1 Mac Railo installer I apparently used, which I still have,
installs to root by default. I can’t change that in the GUI.
So that leaves me with 2 possibilities. Get the Lucee express version
working for development as I need it, or install tomcat separately under a
non-privileged user and get Lucee working under it.
Igal Sapir
Lucee Core Developer
Lucee.org http://lucee.org/
On 5/29/2015 7:03 AM, Nando Breiter wrote:
I’ve downloaded the Express version of Lucee from lucee.org
Unzipped it and placed it under /Applications/lucee on my Mac.
Opened server.xml and added my docBase path as below:
<Context path="" docBase="/Users/nando/sites" />
After starting using /Applications/lucee/startup.sh, going to
http://localhost:8888/someapp/ produces the following output:
Lucee [4.5.1.000] - Error (java.io.IOException)
Message No such file or directory
Cause java.io.IOException
Java Stacktrace
No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method):-2
at java.io.File.createNewFile(File.java:1012):1012
at lucee.commons.io.res.type.file.FileResource.getOutputStream(Unknown
Source):-1
at lucee.commons.io.res.type.file.FileResource.getOutputStream(Unknown
Source):-1
at lucee.commons.io.IOUtil.copy(Unknown Source):-1
at lucee.runtime.compiler.CFMLCompilerImpl.compile(Unknown Source):-1
at lucee.runtime.PageSourceImpl._compile(Unknown Source):-1
at lucee.runtime.PageSourceImpl.compile(Unknown Source):-1
at lucee.runtime.PageSourceImpl.loadPhysical(Unknown Source):-1
at lucee.runtime.PageSourceImpl.loadPage(Unknown Source):-1
at lucee.runtime.PageSourceImpl.loadPage(Unknown Source):-1
at lucee.runtime.PageContextImpl.doInclude(Unknown Source):-1
at lucee.runtime.PageContextImpl.doInclude(Unknown Source):-1
at lucee.runtime.PageContextImpl.handlePageException(Unknown Source):-1
at lucee.runtime.listener.ModernAppListener.onError(Unknown Source):-1
at lucee.runtime.PageContextImpl.execute(Unknown Source):-1
at lucee.runtime.PageContextImpl.execute(Unknown Source):-1
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1
at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725):725
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219):219
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610):610
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537):537
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085):1085
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658):658
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222):222
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556):1556
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513):1513
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745
Is there a way to get this to work using the express version?
Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland
+41 (0)91 600 9601 <%2B41%20%280%2991%20600%209601>
+41 (0)76 303 4477 <%2B41%20%280%2976%20303%204477> cell
skype: ariamedia
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-xB_YO_pnu_pLYEEf6DmHxy5H8ViquVrKYaREmdrzrdQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D-xB_YO_pnu_pLYEEf6DmHxy5H8ViquVrKYaREmdrzrdQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/55687BD4.9080901%40lucee.org
https://groups.google.com/d/msgid/lucee/55687BD4.9080901%40lucee.org?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D9LEfMrjuAa8Hr3i46XjyGkBwRjRXwZ8kqobfLQeTCQZw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D9LEfMrjuAa8Hr3i46XjyGkBwRjRXwZ8kqobfLQeTCQZw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/55688DC9.4040706%40lucee.org
https://groups.google.com/d/msgid/lucee/55688DC9.4040706%40lucee.org?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.