- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by support-pradeep.
-
AuthorPosts
-
dknutsonMemberI’m running the CRUD example and want to deploy it to an actual server. When I do, tomcat complains that it can not create the /atomikos-sw-tmp directory.
I see under resources in the jta.properties file there are settings you can make for this folder. In my case the value is set to /atomikos-sw-tmp. and it is trying to create this in the root of the tomcat folder.
How can I change this path so that it creates the folder in the withing the app structure? ie under webapps/myapp folder
dknutsonMemberUpdate: Since I’m working on a developement server, I set the root of the tomcat server to 777. Now it works, and creates the files at the root level of tomcat7 – in my case, in var/lib/tomcat7
Obviously, not an ideal solution. In jta.properties, it has these settings –
com.atomikos.icatch.output_dir=/atomikos-sw-tmp/
com.atomikos.icatch.log_base_dir=/atomikos-sw-tmp/How to I get these settings over to the tomcat server when I export the war?
dknutsonMemberHere are the last few lines of catalina.out from when I start the app in tomcat. As you can see, it tries to read the jta.properties settings, but something is wrong with it using the /atomikos-sw-tmp/ location.
Not sure why. Even tried to manually create it. no joy.
support-pradeepMemberdknutson,
I have modified the Atomikos output directory (in the jta.properties file) to webapps\MyApp folder and could see that folder after deploying the application.
How can I change this path so that it creates the folder in the withing the app structure? ie under webapps/myapp folder
In the jta.properties file, you need to change the path in the following lines to External Server dir\webapps\yourapp folder (for ex: C:\Servers\Tomcat 7\webapps\TestApplication) and then export the application as a WAR file.
com.atomikos.icatch.output_dir=/atomikos-sw-tmp/
com.atomikos.icatch.log_base_dir=/atomikos-sw-tmp/Here are the last few lines of catalina.out from when I start the app in tomcat. As you can see, it tries to read the jta.properties settings, but something is wrong with it using the /atomikos-sw-tmp/ location.
The error stack trace from the catalina.out is missing from your post. Can you please attach the error stack trace to help us investigate further.
-
AuthorPosts