-
1. Re: FileNotFoundException trying to run example
alpic80 Sep 17, 2016 5:17 PM (in response to alpic80)Doing a bit more research I found the following link https://issues.jboss.org/browse/AS7-4868 that describes what I'm seeing but that has been closed for quite a while.
-
2. Re: FileNotFoundException trying to run example
rareddy Sep 19, 2016 9:25 AM (in response to alpic80)I am suspicious about the missing back slash after c:\ in your log, did you set the JBOSS_HOME env yourself or it automatically got configured?
-
3. Re: FileNotFoundException trying to run example
alpic80 Sep 19, 2016 9:30 AM (in response to rareddy)Automatically configured but I also tried to configure it manually and I
got the same results
Alain Picard
Chief Strategy Officer
Castor Technologies Inc
o:514-360-7208
m:813-787-3424
www.castortech.com
-
4. Re: FileNotFoundException trying to run example
rareddy Sep 19, 2016 9:49 AM (in response to alpic80)You can avoid this error by providing the full path instead of using the "${jboss.home.dir}" in your configuration. IMO this should not happen, but needs to be verified on Windows machine.
-
5. Re: FileNotFoundException trying to run example
alpic80 Sep 20, 2016 5:21 PM (in response to rareddy)This is what I did to get pass this issue, but ....:)
-
6. Re: FileNotFoundException trying to run example
rareddy Sep 20, 2016 5:42 PM (in response to alpic80)What is your Windows and Java SDK version on this machine?
-
7. Re: FileNotFoundException trying to run example
alpic80 Sep 20, 2016 5:57 PM (in response to rareddy)Windows 10 & Java 8
Calling "C:\teiid-9.0.3\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_45\bin\java"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: "C:\teiid-9.0.3"
JAVA: "C:\Program Files\Java\jdk1.8.0_45\bin\java"
JAVA_OPTS: "-Dprogram.name=standalone.bat -Xms64M -Xmx512M
-XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true
-Djboss.modules.system.pkgs=org.jboss.byteman"
Alain Picard
Chief Strategy Officer
Castor Technologies Inc
o:514-360-7208
m:813-787-3424
www.castortech.com
-
8. Re: FileNotFoundException trying to run example
rareddy Sep 21, 2016 10:29 AM (in response to alpic80)Alain,
I have Windows 7 VM, so I worked the same example and replicated the issue. I believe the culprit here is H2 driver, the URL for it is defined as 'jdbc:h2:mem:accounts;INIT=RUNSCRIPT FROM '${jboss.home.dir}/teiidfiles/customer-schema.sql' which will resolve to 'jdbc:h2:mem:accounts;INIT=RUNSCRIPT FROM 'c:\teiid-9.0.3/teiidfiles/customer-schema.sql' however, it is ignoring the backslashes, thus the issue. To confirm my case I found this c# - H2: Supplying an init script via full path (Windows 7) - Stack Overflow
I will update the example not to use the ${jboss.home.dir}, and thank you for bringing this issue to our attention.
Ramesh..