I have javaloader under the model directory , as well as ta-lib. This code works fine on my localhost, but I cant get it to work on my ec2 instance.
<cfset paths[1] = "/var/lib/tomcat7/webapps/ROOT/cfstox/model/ta-lib.jar" />
<cfset server.loader = createObject("component", "JavaLoader").init(paths) />
Please note the path it's complaining about is not the path I'm sending as an argument.
The error is:
Railo 3.3.4.003 Error (The path you have specified could not be found) Message PathNotFoundException Detail /usr/share/tomcat7/1 does not exist Stacktrace The Error Occurred in
/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/railo-server/context/library/function/throw.cfm: line 11
9: name="extendedInfo" type="string" required="no" hint="extended information to the exception."><cfargumentcalled from/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc: line 77
10: name="object" type="any" required="no" hint="Throws a Java exception from a CFML tag. This attribute is mutually exclusive with all other argments of this function."><!---
11: ---><cfthrow attributeCollection="#arguments#"><!---
12: ---></cffunction>
75: if(NOT file.exists())called from/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc: line 25
76: {
77: throw("PathNotFoundException", "The path you have specified could not be found", file.getAbsolutePath() & " does not exist");
78: }
79:
23: <cffunction name="init">
24: <cfset paths[1] = "/var/lib/tomcat7/webapps/ROOT/cfstox/model/ta-lib.jar" />
25: <cfset server.loader = createObject("component", "JavaLoader").init(paths) />
26: <cfset talib = server.loader.create("com.tictactec.ta.lib.Core") />
27: <cfset Minteger1 = server.loader.create("com.tictactec.ta.lib.MInteger") />
--
You received this message because you are subscribed to the Google Groups "javaloader-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaloader-dev/-/b0e3uLIs6XUJ.
To post to this group, send email to javaloa...@googlegroups.com.
To unsubscribe from this group, send email to javaloader-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaloader-dev?hl=en.
Railo 3.3.4.003 Error (The path you have specified could not be found) | |
Message | PathNotFoundException |
Detail | /usr/share/tomcat7/1 does not exist |
Stacktrace |
The Error Occurred in /var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/railo-server/context/library/function/throw.cfm: line 11 9: name="extendedInfo" type="string" required="no" hint="extended information to the exception."><cfargumentcalled from/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc: line 77 75: if(NOT file.exists())called from/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc: line 25 23: <cffunction name="init"> |
called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc: line 197195: <cfset session.objects.Indicators = createobject("component","cfstox.model.Indicators").init() />called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc: line 3 1: <cfcomponent displayname="controller" output="false">called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfm: line 4 2: <!--- load the controller object if not already loaded and set the controller flag ---> |
|
Java Stacktrace | PathNotFoundException at railo.runtime.tag.Throw._doStartTag(Throw.java:142):142 at railo.runtime.tag.Throw.doStartTag(Throw.java:131):131 at throw_cfm$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/railo-server/context/library/function/throw.cfm:11):11 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.functions.system.CFFunction.call(CFFunction.java:71):71 at cfstox.model.javaloader_cfc$cf._1(/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc:77):77 at cfstox.model.javaloader_cfc$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.ComponentImpl._call(ComponentImpl.java:615):615 at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1815):1815 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 at cfstox.model.ta_cfc$cf._1(/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc:25):25 at cfstox.model.ta_cfc$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.ComponentImpl._call(ComponentImpl.java:615):615 at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1815):1815 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 at cfstox.controllers.controller_cfc$cf._2(/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc:197):197 at cfstox.controllers.controller_cfc$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:738):738 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 at cfstox.controllers.controller_cfc$cf._1(/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc:3):3 at cfstox.controllers.controller_cfc$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.ComponentImpl._call(ComponentImpl.java:615):615 at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1815):1815 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 at cfstox.controllers.controller_cfm$cf.call(/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfm:4):4 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:799):799 at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:751):751 at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:35):35 at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:24):24 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2035):2035 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2002):2002 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:297):297 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722):722 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225):225 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169):169 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168):168 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98):98 at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680):680 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927):927 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999):999 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565):565 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307):307 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110):1110 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603):603 at java.lang.Thread.run(Thread.java:679):679 |
--
You received this message because you are subscribed to the Google Groups "javaloader-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaloader-dev/-/AS6RqwIpoVoJ.
To post to this group, send email to javaloa...@googlegroups.com.
To unsubscribe from this group, send email to javaloader-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaloader-dev?hl=en.
That's my first thought - permission.
file = createObject("java", "java.io.File").init(iterator.next());
and why is the path it's reporting to not exist not the same as the one I'm passing?
Railo 3.3.4.003 Error (java.lang.ClassNotFoundException) | |
Message | com.tictactec.ta.lib.Core |
Cause | java.lang.ClassNotFoundException |
Stacktrace |
The Error Occurred in /var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc: line 100 98: <cfargument name="className" hint="The name of the class to create" type="string" required="Yes">called from/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc: line 26 |
24: <cfset paths[1] = "/var/lib/tomcat7/webapps/ROOT/cfstox/model/ta-lib.jar" /> |
28: <cfset Minteger2 = server.loader.create("com.tictactec.ta.lib.MInteger") /> |
called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc: line 197195: <cfset session.objects.Indicators = createobject("component","cfstox.model.Indicators").init() />called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfc: line 3 |
called from/var/lib/tomcat7/webapps/ROOT/cfstox/controllers/controller.cfm: line 4 |
Java Stacktrace | com.tictactec.ta.lib.Core at com.compoundtheory.classloader.NetworkClassLoader.loadClass(NetworkClassLoader.java:360):360 at java.lang.ClassLoader.loadClass(ClassLoader.java:266):266 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57):57 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43):43 at java.lang.reflect.Method.invoke(Method.java:616):616 at railo.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:37):37 at railo.runtime.reflection.Reflector.callMethod(Reflector.java:699):699 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 at cfstox.model.javaloader_cfc$cf._1(/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc:100):100 |
at cfstox.model.javaloader_cfc$cf.udfCall(/var/lib/tomcat7/webapps/ROOT/cfstox/model/JavaLoader.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:215):215 at railo.runtime.type.UDFImpl._call(UDFImpl.java:434):434 at railo.runtime.type.UDFImpl.call(UDFImpl.java:384):384 at railo.runtime.ComponentImpl._call(ComponentImpl.java:615):615 at railo.runtime.ComponentImpl._call(ComponentImpl.java:502):502 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1815):1815 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:733):733 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1480):1480 |
at cfstox.model.ta_cfc$cf._1(/var/lib/tomcat7/webapps/ROOT/cfstox/model/TA.cfc:26):26 |