hazamonzo Posted August 22, 2007 Share Posted August 22, 2007 Hello folks. I have been trying to deploy JI from the .WAR file for a couple of days now with no luck so far. Here is some information: JI 2.0.1.WARTomcat 5.5.23 - Fresh installMySQL 5.0.27JI 2.0.1 jasper-server-install-guide.pdf I have followed the steps for deploying JI with tomcat: Created the jasperserver database and populated it with the basic records (16 records for basic population) Created the jasperadmin user for the database and assigned privileges extracted the .WAR file into the webapps folder under jaspersever Edited the webapps/METE-INF/context.xml file with the correct settings for database connection Checked that the settings where right in the webapps/WEB-INF/hibernate.properties Started up tomcat (list of errors)http://localhost:8080 workshttp://localhost:8080/jasperserver returns a 404 error. I am happy to post log files and config files on request. Maybe someone out ther could help me? Best regards, Harris Link to comment Share on other sites More sharing options...
hazamonzo Posted August 22, 2007 Author Share Posted August 22, 2007 Hello again folks. After playing around a little more i can provide more information. I decided to also use the JI 2.0.1 installer. So now i have 2 copies of JI. one using the installer and one build from the .WAR file. Here is what i have found out. As a quick test i decided to copy the jasperserver folder in the webapps from the INSTALLED verion and overwrite the jasperserver folder in my other copy of JI (the one built from the .war file). I then loaded my version of tomcat with the INSTALLED versions jasperserver folder (making sense so far?) It looks like this did not work which leads me to think sometjing might be wrong with my version of tomcat. I then decided to try it the other way round and copied my version of the WAR file from my tomcat and overwrite the INSTALLED verion. I loaded the INSTALLED version of tomcat and it did work! This means that the build on my server of the >WAR file is configured correctly. It just doesnt work on my version of tomcat(fresh install by the way) I also noticed that the INSTALLED version runs on tomcat 5.5.20 and my version is 5.5.23 Is it a version problem or maybe there is somethig i need to configure on my tocat to get my .WAR file working? Hope that helps. Any pointers? Best regards, Harris Link to comment Share on other sites More sharing options...
hazamonzo Posted August 22, 2007 Author Share Posted August 22, 2007 This may also be of use to a Java developer. I have attached the logfile from ROOT/webapps/jasperserver/WEB-INF/logs Theres i lovely big error message in there. If someone could have a look at it i appreciate it! :) Best regards, Harris [file name=jasperserver-5089c3f03a7af44c2e8e779fb246cd95.txt size=66985]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/jasperserver-5089c3f03a7af44c2e8e779fb246cd95.txt[/file]Post edited by: hazamonzo, at: 2007/08/22 13:59 Link to comment Share on other sites More sharing options...
lucianc Posted August 22, 2007 Share Posted August 22, 2007 Are you using Java 1.6? If so, could you also try 1.5? Regards,Lucian Link to comment Share on other sites More sharing options...
hazamonzo Posted August 22, 2007 Author Share Posted August 22, 2007 Hi Lucian, I have installed another instance of tomcat configured to use jre 1.5.0_10 and then places the jasperservre webapp in the right directory. start up tomcat and i get this error message Best regards, Harris [file name=part2.txt size=174455]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/part2.txt[/file] Post edited by: hazamonzo, at: 2007/08/22 15:36Post edited by: hazamonzo, at: 2007/08/22 15:37 Link to comment Share on other sites More sharing options...
hazamonzo Posted August 22, 2007 Author Share Posted August 22, 2007 I had to break the log file into two parts as it was too big to upload. here is the first part of the log file. in the previous post id the second part [file name=part1.txt size=167412]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/part1.txt[/file] Link to comment Share on other sites More sharing options...
tkavanagh Posted August 22, 2007 Share Posted August 22, 2007 Harris, I found this in the log from part1.txt: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) So, it looks like jasperserver is not finding the database driver. Check <tomcat>/common/lib and see if the mysql driver has been copied from the <unpacked-war-dir>/scripts/drivers directory Also, see section A.6.6 Copy Database Driver in the jasperserver-install-guide.pdf (page 15). Regards, -Tony Link to comment Share on other sites More sharing options...
hazamonzo Posted August 23, 2007 Author Share Posted August 23, 2007 Hi Tony, Its very odd that you should get that message in the error log as i did copy the mysql driver into the commom/lib dir mysql-connector-java-3.1.12-bin.jar Any other thoughts maybe? Maybe if it isnt too much trouble someone would like to try and deploy the 2.0.1 WAR file on tomcat 5.5.23? See if you get the same problems. At least then i will know im not the only one ;) Best regards, Harris Link to comment Share on other sites More sharing options...
hazamonzo Posted August 23, 2007 Author Share Posted August 23, 2007 Well its not looking good :( This has to be the 10th time ive tried to deploy with the .WAR file and failed. I even looked for an older version of Tomcat (5.5.20, the same one included with JI 2.0.1 installer) It doesn`t matter how many times i follow the "Jasper server install guide" simple steps (and they are very simple) i still get the same error messages. I cant decode these error message as i am pretty new to Java development. Any help is appreciated. Thanks you all in advance! :) Link to comment Share on other sites More sharing options...
mvisman Posted August 23, 2007 Share Posted August 23, 2007 I think should be a bug of some component of the last release. Triyng also the installation release for windows I have the same problem. I hope some programmer can help us :unsure: ... Massimo Link to comment Share on other sites More sharing options...
lucianc Posted August 23, 2007 Share Posted August 23, 2007 Indeed, there's a problem in 2.0.1. A (temporary) workaround: edit WEB-INF/applicationContext.xml, find a bean named profileAttributeServiceTarget and remove/comment its repositoryService property. This is a safe workaround for the moment, a proper solution will be provided in the future. Regards,Lucian Link to comment Share on other sites More sharing options...
lucianc Posted August 23, 2007 Share Posted August 23, 2007 PS: Please log this as a bug here. Regards,Lucian Link to comment Share on other sites More sharing options...
hazamonzo Posted August 23, 2007 Author Share Posted August 23, 2007 Hi Lucian, Thanks for looking into this! Its been driving me insanity!! :) I will give your fix a go and see what happens! Best regards, Harris Link to comment Share on other sites More sharing options...
tkavanagh Posted August 24, 2007 Share Posted August 24, 2007 I just did a test manual install from the war file bin zip and it worked fine for me. I installed the "minimal" JasperServer (ie no sample data). I'm using: Windows XPTomcat 5.5.15MySQL 5.0.18Java 1.5.0_06 I'm thinking we should maybe re-set the table. Perhaps the thing to do is to turn off tomcat and mysql and use the installer instead and let the installer put a bundled tomcat and bundled mysql on your machine. Then maybe we can get you to the login page! Are you running on Windows or Linux? Regards, -Tony PS. I'm checking with Lucian on the problem he found with applicationContext.xml Link to comment Share on other sites More sharing options...
hazamonzo Posted August 24, 2007 Author Share Posted August 24, 2007 Hi Tony, Im using:Windows XP SP2Tomcat 5.5.23Mysql 5.0.27Java 5.0_10 As for the 2.0.1 installer, That works fine for me if i use the bundled tomcat and my own MySQL server. Best regards, Harris Link to comment Share on other sites More sharing options...
rcohen Posted August 25, 2007 Share Posted August 25, 2007 Interesting: I could not get a 2.0.1 login screen until I dropped from 1.6.0_02 to 1.5.0_10. Tomcat 5.5.23 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now