facebook

Setup for Atomikos files

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #352503 Reply

    dknutson
    Member

    I’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

    #352505 Reply

    dknutson
    Member

    Update: 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?

    #352506 Reply

    dknutson
    Member

    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.

    Not sure why. Even tried to manually create it. no joy.

    #352515 Reply

    dknutson,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Setup for Atomikos files

You must be logged in to post in the forum log in