Problem setting up DB with sample data

Hello,

I am trying to evaluate JasperIntelligence. I have checked and have the necessary system requirements.

When I attempt to execute:

./ji-import.sh --import-path=ji-catalog --import-file=ji-catalog.xml

from the scripts directory to import the sample Foodmart and Sugarcrm databases, I get the following error:

java.io.FileNotFoundException: class path resource [applicationContext-for-export.xml] cannot be opened because it does not exist

I have checked for the file and it exists in ./ji-export-util.

I have tried moving the file around into other directories but this does not seem to help.

I'd be grateful if someone could point me in the right direction to solving this. My environment is as follows:

java version "1.5.0_06" standard edition
OS X 10.4.7
apache-tomcat-5.5.17
mysql Ver 14.12 Distrib 5.0.24

Apologies in advance for my lack of java knowledge!

Regards,

Matt
mglubb's picture
17
Joined: Aug 14 2006 - 9:14pm
Last seen: 16 years 10 months ago

5 Answers:

Hi Matt,

There is a shell script related bug under non-windows platforms. This may be what you are hitting. It has to do with how the command line gets parsed and handed off to the java code. Anyway, try this and see how it goes:

./ji-import.sh --foo --import-path=ji-catalog --import-file=ji-catalog.xml

Note the "--foo"

Also, check that the path and file names actually exist in the locations specified.

Let me know if this doesn't fix it.

Thanks,

-Tony
tkavanagh's picture
15128
Joined: Jul 7 2006 - 8:54am
Last seen: 8 years 9 months ago
Hi Tony,

Thanks for your reply. I tried what you suggested but I get the same error :(

Let me stress that I have not moved any files and I am executing that command from the scripts directory after following the steps in the Installation docs up to that point. It just can't seem to find applicationContext-for-export.xml. If I knew what the working directory of the import app was or knew where I could specify an absolute path for this file, maybe that would fix it.

Regards,

Matt
mglubb's picture
17
Joined: Aug 14 2006 - 9:14pm
Last seen: 16 years 10 months ago
Oops, I missed that it was the applicationContext-for-export.xml that was missing.

Can you tell me which package you used to get the application. Was it "JasperIntelligence-1.0.1-bin.zip" (ie. the stand-alone war files)?

You are using OS X 10, so I assume you didn't use the linux installer.
tkavanagh's picture
15128
Joined: Jul 7 2006 - 8:54am
Last seen: 8 years 9 months ago
Hi there,

You are correct. I am using JasperIntelligence-1.0.1-bin.zip, I didn't use the linux installer.

Matt
mglubb's picture
17
Joined: Aug 14 2006 - 9:14pm
Last seen: 16 years 10 months ago
hi!

It seems like the path where applicationContext-for-export.xml is located (ji-export-util) is missing from the classpath.

Changing the last line in ji-import-export.sh from
java -cp "$EI_CLASSPATH" com.jaspersoft.jasperserver.util.ExportImportCommand $CMD $CMD_LINE_ARGS
to
java -cp "$EI_CLASSPATH:$JI_EXPORT_UTIL" com.jaspersoft.jasperserver.util.ExportImportCommand $CMD $CMD_LINE_ARGS
did the job for me.

Regards
Christian
fccpr's picture
31
Joined: Sep 6 2006 - 8:47pm
Last seen: 16 years 9 months ago
Feedback
randomness