[Anthill] Pagelets not installed?

varban vvv at urbancode.com
Thu Oct 20 13:54:01 CDT 2005


Dan, try executing java -version on the command prompt and see if 
1.4.2_09 is the version that shows. Also make sure that the JAVA_HOME 
variable for the user running tomcat is also set to point to the correct JVM

I will ask my colleagues if they know of a similar problem.

Regards,
Varban

Dan Crow wrote:
> Varban, yes that was my first thought as well. I deleted the pagelets 
> directory after switching from JVM 1.5.0 back to 1.4.2 - which is the 
> version I want to standardize on.
> 
> Just to check, I shutdown Tomcat, deleted the pagelets directory and 
> restarted Tomcat. The pagelets directory gets recreated and the same 
> error occurs. Most baffling. I checked the process that is running 
> Tomcat and its using the correct JVM: 1.4.2_09
> 
> Has anyone run into this problem before? Any suggestions for a fix 
> gratefully received.
> 
> Thanks,
> 
> Dan
> 
> varban wrote:
> 
>> Hi Dan,
>>
>> it seems that you might be mixing the different versions of java that 
>> you have on your machine. Make sure that you delete the contents of 
>> the pagelet directory, then set a JAVA_HOME variable in your system 
>> pointing to the JVM of choice and try again. It is possible that you 
>> had a JAVA_HOME setting for one user and the other one just used the 
>> java executable on the path and those were two different versions.
>>
>> Let me know how it goes!
>>
>> Regards,
>> Varban
>> Dan Crow wrote:
>>
>>> Varban,
>>>
>>> Many thanks for the quick reply. The problems I had were sort of 
>>> permissions related - Tomcat was running under a user account with 
>>> limited permissions. Restarting Tomcat as root got me a great deal 
>>> further.
>>>
>>> I still have one more mysterious problem through. In building the 
>>> Anthill-Example I'm getting UnsupportedClassVersion exceptions 
>>> thrown. Here's the relevant Tomcat console log:
>>>
>>> 10:01:59:374 [Thread - AnthillBuildDaemon] ERROR 
>>> com.urbancode.anthill.BuildManager  - 
>>> Unix/unix_cvs/getWorkingProject_pgl (Unsupported major.minor version 
>>> 49.0)
>>> java.lang.UnsupportedClassVersionError: 
>>> Unix/unix_cvs/getWorkingProject_pgl (Unsupported major.minor version 
>>> 49.0)
>>>         at java.lang.ClassLoader.defineClass0(Native Method)
>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
>>>         at 
>>> com.urbancode.pagelet.PageletClassLoader.loadClass(PageletClassLoader.java:46) 
>>>
>>>         at com.urbancode.pagelet.Pagelet.loadClass(Pagelet.java:274)
>>>         at com.urbancode.pagelet.Pagelet.service(Pagelet.java:157)
>>>         at com.urbancode.pagelet.Pagelet.service(Pagelet.java:122)
>>>         at 
>>> com.urbancode.anthill.adapter.ProfileRepositoryAdapter.getWorkingProjectCopy(ProfileRepositoryAdapter.java:287) 
>>>
>>>         at 
>>> com.urbancode.anthill.adapter.CVSRepositoryAdapter.getWorkingProjectCopy(CVSRepositoryAdapter.java:167) 
>>>
>>>         at 
>>> com.urbancode.anthill.BuildManager.build(BuildManager.java:104)
>>>         at 
>>> com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231) 
>>>
>>>         at 
>>> com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
>>>         at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
>>>
>>>
>>> Any ideas what might be causing this? I've tried with Java 1.5.0 and 
>>> 1.4.2 and I get the same exceptions from both.
>>>
>>> Thanks,
>>>
>>> Dan
>>>
>>> varban wrote:
>>>
>>>> Hi Dan,
>>>>
>>>> the pagelets directory is not part of the AnthillOS installation. 
>>>> All the pagelets that come with AnthillOS should be in 
>>>> conf/profiles. The pagelets directory is where AnthillOS creates and 
>>>> compiles custom pagelets for the specific project it is building. I 
>>>> would check if the user running tomcat has permissions to write to 
>>>> the pagelets directory. Any permissions denied messages would be a 
>>>> good indicator.
>>>>
>>>> Regards,
>>>> Varban
>>>>
>>>> Dan Crow wrote:
>>>>
>>>>> I've just installed the latest Anthill version (1.8.0.264) from:
>>>>>
>>>>> http://www.urbancode.com/projects/anthill/installation.jsp
>>>>>
>>>>> I followed the installation instructions and have the 
>>>>> administration pages up and working. I tried to build the 
>>>>> Anthill-Example and it fails. The only output is an empty (zero 
>>>>> bytes) file in the buildLogs. Looking at the Tomcat console log I 
>>>>> see that Anthill is attempting to execute files out of the 
>>>>> /usr/local/anthill/pagelets. Here's a typical error message:
>>>>>
>>>>> 19:55:27:431 [Thread - AnthillBuildDaemon] INFO 
>>>>> com.urbancode.anthill.BuildManager  - step 1) Retrieve working copy 
>>>>> of code from repository
>>>>> 19:55:27:432 [Thread - AnthillBuildDaemon] INFO 
>>>>> com.urbancode.anthill.adapter.CVSRepositoryAdapter  - 
>>>>> RepositoryException in checkout. message: Checkout failed: 
>>>>> /usr/local/anthill/pagelets/Unix/unix_cvs/getWorkingProject_pgl.java 
>>>>> (No such file or directory)
>>>>>
>>>>> Unfortunately the pagelets directory and its contents were not 
>>>>> installed along with the rest of the Anthill. I checked the tar 
>>>>> file and it does not contain a pagelets directory.
>>>>>
>>>>> Any ideas how I can get Anthill running? Where do I find the 
>>>>> pagelets files?
>>>>>
>>>>> Many thanks,
>>>>>
>>>>> Dan
>>>>>
>>>>
>>>>
>>>
>>
>>
> 




More information about the Anthill mailing list