Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added policy file location for Ubuntu

...

Wookie is designed to be downloaded using subversion; to checkout the latest code:

svn co http://svn.apache.org/repos/asf/incubator/wookie/trunkImage Removed

If you are a committer you should use https:// rather than http://

...

cd PROJECT_HOME_DIRECTORY
ant

The first time you run this command all dependencies will be downloaded so you must be online and it will take some time. Subsequent builds will be much faster.

...

Once the server is running go to http://localhost:8080/wookieImage Removed

To access the administration menu (http://localhost:8080/wookie/adminImage Removed) use the username 'java' and password 'java'.

...

For more on remote debugging with Eclipse see http://www.eclipsezone.com/eclipse/forums/t53459.htmlImage Removed

Note, you can set up a run configuration to be able to run Wookie from the UI of Eclipse, but I'll leave that for you to work out as I use the command line.

...

<role rolename="widgetadmin"/>
<user username="java" password="java" roles="widgetadmin"/>

...

To access the administration menu (http://localhost:8080/wookie/adminImage Removed) use the username 'java' and password 'java'.

...

If you are running Wookie with a security manager you will have to grant some permissions to get Wookie running properly. Otherwise you are likely to run into this of a similar error:

No Format
 
SEVERE: Exception sending context initialized event to listener instance of
 class org.apache.wookie.server.ContextListener 
java.security.AccessControlException: access denied
(java.util.PropertyPermission user.dir read) at ...

If you can't turn off the security manager but don't really care about it, you can consider to replace to contents of the policy file (in Tomcat this is typically $TOMCAT_HOME/conf/catalina.policy, Ubuntu users will find the policy files in /etc/tomcat6/policy.d/) with the grant all statement:

No Format
 
grant {
  permission java.security.AllPermission;
};

...

Code Block
// fixes access denied (java.util.PropertyPermission user.dir read)
grant { 
  permission java.util.PropertyPermission "*", "read,write";
};


// fixes access denied (java.io.FilePermission TOMCAT_HOME\bin\local.widgetserver.properties read)
grant {
  permission java.io.FilePermission 
	"<<ALL FILES>>", "read, write";
};

// fixes access denied (java.net.SocketPermission localhost resolve)
grant  {
   permission java.net.SocketPermission "*", "resolve,connect";
};

// fixes access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.catalina)
// fixes access denied (java.lang.RuntimePermission accessDeclaredMembers)
// fixes access denied (java.lang.RuntimePermission getProtectionDomain)
grant {
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina";
	permission java.lang.RuntimePermission "accessDeclaredMembers";
	permission java.lang.RuntimePermission "getProtectionDomain";
};

// fixes access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
grant  {
   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};

...