You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Nate Keegan <na...@cityofprescott.net> on 2007/12/17 18:46:22 UTC

Roller 4.0 and Sun Java Application Server 9.1 Issue

Solaris 10 update 4
Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
MySQL 5.0.37
Java SDK 1.5

I am following the Roller installation guide and everything is smooth up 
to the point where I deploy Roller and try to access it.

I get the following in server.log for Sun Application Server:

[#|2007-12-14T13:40:54.141-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-37;_Re
questID=392792ee-8171-4b8f-90d3-acd905938469;|WebModule[/roller]PWC1277: 
Exception sending context destroyed event to listener insta
nce of class org.apache.roller.weblogger.ui.core.RollerContext
java.lang.IllegalStateException: Roller Weblogger has not been 
bootstrapped yet
        at 
org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
        at 
org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
        at 
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4559)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:5347)
        at com.sun.enterprise.web.WebModule.stop(WebModule.java:356)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:5203)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
        at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:148)
        at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:170)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:955)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
        at 
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
        at 
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
        at 
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
        at 
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
        at 
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
        at 
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at 
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at 
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at 
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at 
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at 
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at 
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
        at 
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
        at java.lang.Thread.run(Thread.java:595)
|#]

I get a 503 error at http://myserver:8080/roller which I am going to 
assume is the end result of this error.

I'm not sure what is causing this error as I can deploy say hello.war 
(GlassFish sample app) with no problem.

I Googled around, checked my setup method, etc and I haven't seen 
anything about this issue or a remedy for it (if any).

Any pointers or suggestions would be greatly appreciated.

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Matt Raible <ma...@raibledesigns.com>.
I agree with this. However, to deploy Roller on Geronimo with
roller-custom.properties, I *had* to put it in WEB-INF/classes. I
tried many other directories and it couldn't be found from any of
them. I even contacted the Geronimo list - WEB-INF/classes was their
recommendation and it worked. Probably just a Geronimo thing.

Matt

On 12/18/07, Dave <sn...@gmail.com> wrote:
> On Dec 18, 2007 11:10 PM, Matt Raible <ma...@raibledesigns.com> wrote:
> > The best place I've found to put roller-custom.properties (so it works
> > on multiple servers) is in WEB-INF/classes.
>
> I don't recommend placing roller-custom.properties in WEB-INF/classes.
> It's best to place it outside of the Roller context so that it is not
> deleted when you redeploy the Roller WAR or install a newer version of
> Roller.
>
> - Dave
>

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
On Dec 18, 2007 11:10 PM, Matt Raible <ma...@raibledesigns.com> wrote:
> The best place I've found to put roller-custom.properties (so it works
> on multiple servers) is in WEB-INF/classes.

I don't recommend placing roller-custom.properties in WEB-INF/classes.
It's best to place it outside of the Roller context so that it is not
deleted when you redeploy the Roller WAR or install a newer version of
Roller.

- Dave

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
On Dec 20, 2007 6:08 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> SJAS is running as root by default and root has read/write access to all
> files in my domain

Well, dang.

FYI: http://forums.java.net/jive/thread.jspa?threadID=34580

- Dave

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Imam Indra Prayudi <im...@meruvian.org>.
hi all

my www.nagasakti.or.id using roller RC10, and glassfish v2 :) stable

never down in last 2 week, and this is better than our last tomcat,
only 1 week and lag.

F

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
Success using the following:

SJAS 9.1 Update 1
Java SDK 1.6.0_03
MySQL 5.0.37

roller-custom.properties in /opt/SUNWappserver/domains/domain1/lib/classes

installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=roller
database.jdbc.password=fooblat
mail.configurationType=properties
mail.hostname=your.server.somewhere.com

MySQL JDBC 5.1.5 driver used

The only thing I am seeing now is this (not sure if this is worth 
worrying about or not)
 
[#|2007-12-20T17:31:07.791-0700|WARNING|sun-appserver9.1|org.apache.coyote.tomcat5.CoyoteRequest|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=fafd07c8-c572-499f-90f7-5f3e207ff56c;|PWC4011: 
Unable to set request character encoding to UTF-8 from context /roller, 
because request parameters have already been read, or 
ServletRequest.getReader() has already been called|#]

Big up to everyone who pitched in their 2 cents on this





Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Rodrigo Reyes <ro...@gmail.com>.
Nate

I have Roller running on Solaris and Windows using Derby. Try my tutorial at
http://rreyes.corbitecso.com/?p=88 and see if it works for you. If that
works, then the problem could be your connectivity with mySQL.

On the other hand, I had problems too when I first installed it (try looking
for my post about a week ago) but in my case the problem was that I had
incorrect information in my roller-custom.properties (that by the way, I
also placed on WEB-INF/classes).

Hope this helps...

Rodrigo

On Dec 20, 2007 6:08 PM, Nate Keegan <na...@cityofprescott.net> wrote:

> SJAS is running as root by default and root has read/write access to all
> files in my domain
>
> Dave wrote:
> >> [#|2007-12-20T12:02:
> 34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28
> ;_ThreadName=Thread-44;|JACC
> >> Policy Provider: PolicyWrapper.implies, context(null)-
> >> permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
> >> domain that failed(ProtectionDomain
> >>
> (file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-
> 2.0.4.jar
> >> <no signer certificates>)
> >>
> >
> >
> >
> >> [#|2007-12-20T12:02:
> 34.337-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28
> ;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1270:
> >> Exception starting filter struts2
> >> java.security.AccessControlException: access denied
> >> (java.lang.reflect.ReflectPermission suppressAccessChecks)
> >>         at
> >> java.security.AccessControlContext.checkPermission(
> AccessControlContext.java:264)
> >>
> >
> >
> > I can't explain that yet, but here's another question. Does the user
> > account that you are using to run SJAS have read/write permission to
> > all of the files in the domain1 directory and it's sub-directories?
> >
> > - Dave
> >
>

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
SJAS is running as root by default and root has read/write access to all 
files in my domain

Dave wrote:
>> [#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC
>> Policy Provider: PolicyWrapper.implies, context(null)-
>> permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
>> domain that failed(ProtectionDomain
>> (file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar
>> <no signer certificates>)
>>     
>
>
>   
>> [#|2007-12-20T12:02:34.337-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1270:
>> Exception starting filter struts2
>> java.security.AccessControlException: access denied
>> (java.lang.reflect.ReflectPermission suppressAccessChecks)
>>         at
>> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
>>     
>
>
> I can't explain that yet, but here's another question. Does the user
> account that you are using to run SJAS have read/write permission to
> all of the files in the domain1 directory and it's sub-directories?
>
> - Dave
>   

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
> [#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC
> Policy Provider: PolicyWrapper.implies, context(null)-
> permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
> domain that failed(ProtectionDomain
> (file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar
> <no signer certificates>)


> [#|2007-12-20T12:02:34.337-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1270:
> Exception starting filter struts2
> java.security.AccessControlException: access denied
> (java.lang.reflect.ReflectPermission suppressAccessChecks)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)


I can't explain that yet, but here's another question. Does the user
account that you are using to run SJAS have read/write permission to
all of the files in the domain1 directory and it's sub-directories?

- Dave

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
Sure, no problem.

Will report back on what I find out.

Dave wrote:
> On Dec 20, 2007 4:18 PM, Nate Keegan <na...@cityofprescott.net> wrote:
>   
>> /opt/SUNWappserver/appserver/lib
>>
>> Dave wrote:
>>     
>>> On Dec 20, 2007 3:48 PM, Nate Keegan <na...@cityofprescott.net> wrote:
>>>
>>>       
>>>> This is a stock install of SJAS with no other applications on it (aside
>>>> from hello.war from the GlassFish site to make sure the install was not
>>>> totally screwed up somehow)
>>>>
>>>>         
>>> Hmm... must be something else.
>>>
>>> You didn't mention your JDBC driver jar. Did you place the MySQL
>>> driver jar in the SJAS lib directory?
>>>       
>
> Yowza... I'm stumped. I think we're gonna have to seek assistance from
> the Glassfish team.
>
> I'm going to forward your stack-trace/error message to some folks I
> know on the team and to the forum. Also, would you be willing to try
> the Glassfish V2 UR1 update that came out yesterday?
>
>    ANNOUNCEMENT : GlassFish v2 UR1 released
>    https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=5175
>
> - Dave
>   

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
On Dec 20, 2007 4:18 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> /opt/SUNWappserver/appserver/lib
>
> Dave wrote:
> > On Dec 20, 2007 3:48 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> >
> >> This is a stock install of SJAS with no other applications on it (aside
> >> from hello.war from the GlassFish site to make sure the install was not
> >> totally screwed up somehow)
> >>
> >
> > Hmm... must be something else.
> >
> > You didn't mention your JDBC driver jar. Did you place the MySQL
> > driver jar in the SJAS lib directory?

Yowza... I'm stumped. I think we're gonna have to seek assistance from
the Glassfish team.

I'm going to forward your stack-trace/error message to some folks I
know on the team and to the forum. Also, would you be willing to try
the Glassfish V2 UR1 update that came out yesterday?

   ANNOUNCEMENT : GlassFish v2 UR1 released
   https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=5175

- Dave

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
/opt/SUNWappserver/appserver/lib

Dave wrote:
> On Dec 20, 2007 3:48 PM, Nate Keegan <na...@cityofprescott.net> wrote:
>   
>> This is a stock install of SJAS with no other applications on it (aside
>> from hello.war from the GlassFish site to make sure the install was not
>> totally screwed up somehow)
>>     
>
> Hmm... must be something else.
>
> You didn't mention your JDBC driver jar. Did you place the MySQL
> driver jar in the SJAS lib directory?
>
> - Dave
>   

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
On Dec 20, 2007 3:48 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> This is a stock install of SJAS with no other applications on it (aside
> from hello.war from the GlassFish site to make sure the install was not
> totally screwed up somehow)

Hmm... must be something else.

You didn't mention your JDBC driver jar. Did you place the MySQL
driver jar in the SJAS lib directory?

- Dave

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
This is a stock install of SJAS with no other applications on it (aside 
from hello.war from the GlassFish site to make sure the install was not 
totally screwed up somehow)

Dave wrote:
> Hi Nate,
>
> I run on SJAS and I haven't run into this problem. But then again, I
> always work off of a fresh install of SJAS with default settings and
> without any apps installed but Roller.
>
> The part of the stack trace below seems to indicate that your SJAS
> install has some security policy setup. Is this a stock install of
> SJAS or have you modified the security settings in some way?
>
> [#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC
> Policy Provider: PolicyWrapper.implies, context(null)-
> permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
> domain that failed(ProtectionDomain
> (file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar
> <no signer certificates>)
>  WebappClassLoader
>  delegate: true
>   

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
Hi Nate,

I run on SJAS and I haven't run into this problem. But then again, I
always work off of a fresh install of SJAS with default settings and
without any apps installed but Roller.

The part of the stack trace below seems to indicate that your SJAS
install has some security policy setup. Is this a stock install of
SJAS or have you modified the security settings in some way?

[#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC
Policy Provider: PolicyWrapper.implies, context(null)-
permission((java.lang.reflect.ReflectPermission suppressAccessChecks))
domain that failed(ProtectionDomain
(file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar
<no signer certificates>)
 WebappClassLoader
 delegate: true

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
Here is what I did:

cd /path/to/apache-roller-blah.zip
unzip apache-roller-blah.zip
cd apache-roller-blah/webapps/roller
jar cvf /somewhere/roller.war *

vi roller-custom.properties
installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=roller
database.jdbc.password=fooblat
mail.configurationType=properties
mail.hostname=mail.cityofprescott.org

cp roller-custom.properties 
/opt/SUNWappserver/appserver/domains/domain1/lib/classes
chmod 444 
/opt/SUNWappserver/appserver/domains/domain1/lib/classes/roller-custom.properties

When I deploy the .war file I get this in server.log (not sure what this 
means but it isn't good obviously):

[#|2007-12-20T12:02:24.197-0700|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=27;_ThreadName=Thread-45;|deployed 
with moduleid = roller|#]

[#|2007-12-20T12:02:26.210-0700|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;|PWC1412: 
WebModule[/roller] ServletContext.log():Loading Spring root 
WebApplicationContext|#]

[#|2007-12-20T12:02:27.777-0700|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=28;_ThreadName=Thread-44;|
Roller Weblogger: Successfully loaded custom properties file from 
classpath|#]

[#|2007-12-20T12:02:34.332-0700|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=28;_ThreadName=Thread-44;|JACC 
Policy Provider: PolicyWrapper.implies, context(null)- 
permission((java.lang.reflect.ReflectPermission suppressAccessChecks)) 
domain that failed(ProtectionDomain  
(file:/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar 
<no signer certificates>)
 WebappClassLoader
  delegate: true
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
 Parent -> java.net.URLClassLoader@c16b18


 <no principals>
 java.security.Permissions@1799338 (
 (javax.management.MBeanPermission [com.sun.messaging.jms.*:*] *)
 (java.util.PropertyPermission java.version read)
 (java.util.PropertyPermission java.vm.name read)
 (java.util.PropertyPermission java.vm.vendor read)
 (java.util.PropertyPermission os.name read)
 (java.util.PropertyPermission java.vendor.url read)
 (java.util.PropertyPermission java.vm.specification.vendor read)
 (java.util.PropertyPermission java.specification.vendor read)
 (java.util.PropertyPermission os.version read)
 (java.util.PropertyPermission java.specification.name read)
 (java.util.PropertyPermission java.class.version read)
 (java.util.PropertyPermission file.separator read)
 (java.util.PropertyPermission java.vm.version read)
 (java.util.PropertyPermission os.arch read)
 (java.util.PropertyPermission java.vm.specification.name read)
 (java.util.PropertyPermission java.vm.specification.version read)
 (java.util.PropertyPermission java.specification.version read)
 (java.util.PropertyPermission java.vendor read)
 (java.util.PropertyPermission * read,write)
 (java.util.PropertyPermission path.separator read)
 (java.util.PropertyPermission line.separator read)
 (java.io.FilePermission /var/tmp//- delete)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/lib/databases/- delete)
 (java.io.FilePermission <<ALL FILES>> read,write)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/- 
read)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib 
read)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/- 
read)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller 
read)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/generated/jsp/j2ee-modules/roller/- 
read,write,delete)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/generated/jsp/j2ee-modules/roller 
read,write)
 (java.io.FilePermission 
/opt/SUNWappserver/appserver/domains/domain1/applications/j2ee-modules/roller/WEB-INF/lib/xwork-2.0.4.jar 
read)
 (unresolved 
com.sun.corba.ee.impl.presentation.rmi.DynamicAccessPermission access null)
 (unresolved com.sun.enterprise.security.CORBAObjectPermission * *)
 (java.net.SocketPermission localhost:1024- listen,resolve)
 (java.net.SocketPermission * connect,resolve)
 (org.apache.naming.JndiPermission jndi:/server/roller/WEB-INF/classes/*)
 (org.apache.naming.JndiPermission jndi:/server/roller/*)
 (org.apache.naming.JndiPermission jndi:/server/roller/WEB-INF/lib/*)
 (javax.management.MBeanTrustPermission register)
 (javax.security.auth.PrivateCredentialPermission 
javax.resource.spi.security.PasswordCredential * "*" read)
 (java.lang.RuntimePermission loadLibrary.*)
 (java.lang.RuntimePermission getClassLoader)
 (java.lang.RuntimePermission modifyThreadGroup)
 (java.lang.RuntimePermission accessDeclaredMembers)
 (java.lang.RuntimePermission setContextClassLoader)
 (java.lang.RuntimePermission queuePrintJob)
 (java.lang.RuntimePermission getProtectionDomain)
 (java.lang.RuntimePermission stopThread)
)

)|#]

[#|2007-12-20T12:02:34.337-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1270: 
Exception starting filter struts2
java.security.AccessControlException: access denied 
(java.lang.reflect.ReflectPermission suppressAccessChecks)
        at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at 
java.security.AccessController.checkPermission(AccessController.java:427)
        at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at 
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
        at 
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:275)
        at 
com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:130)
        at 
com.opensymphony.xwork2.inject.ContainerImpl$3.create(ContainerImpl.java:128)
        at 
com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:154)
        at 
com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:126)
        at 
com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:111)
        at 
com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)
        at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)
        at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
        at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
        at 
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
        at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
        at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:257)
        at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369)
        at 
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
        at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4381)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:5181)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
        at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:148)
        at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:170)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:955)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
        at 
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
        at 
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
        at 
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
        at 
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
        at 
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
        at 
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at 
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at 
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at 
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at 
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at 
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at 
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
        at 
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
        at java.lang.Thread.run(Thread.java:595)
|#]

[#|2007-12-20T12:02:34.713-0700|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|PWC1306: 
Startup of context /roller failed due to previous errors|#]

[#|2007-12-20T12:02:34.729-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=28;_ThreadName=Thread-44;_RequestID=409f91df-89a1-4d54-8d99-23b24e89207c;|WebModule[/roller]PWC1277: 
Exception sending context destroyed event to listener instance of class 
org.apache.roller.weblogger.ui.core.RollerContext
java.lang.IllegalStateException: Roller Weblogger has not been 
bootstrapped yet
        at 
org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
        at 
org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
        at 
org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4559)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:5347)
        at com.sun.enterprise.web.WebModule.stop(WebModule.java:356)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:5203)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:327)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
        at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:148)
        at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:170)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:955)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1581)
        at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
        at 
com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
        at 
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
        at 
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
        at 
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
        at 
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
        at 
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
        at 
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
        at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
        at 
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
        at 
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
        at 
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
        at 
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at 
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
        at $Proxy1.invoke(Unknown Source)
        at 
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at 
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at 
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
        at 
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
        at java.lang.Thread.run(Thread.java:595)
|#]



Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
I will try that and report back my results

Matt Raible wrote:
> The best place I've found to put roller-custom.properties (so it works
> on multiple servers) is in WEB-INF/classes.
>
> Matt
>
> On 12/18/07, Dave <sn...@gmail.com> wrote:
>   
>> On Dec 17, 2007 12:46 PM, Nate Keegan <na...@cityofprescott.net> wrote:
>>     
>>> Solaris 10 update 4
>>> Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
>>> MySQL 5.0.37
>>> Java SDK 1.5
>>>
>>> I am following the Roller installation guide and everything is smooth up
>>> to the point where I deploy Roller and try to access it.
>>>
>>> I get the following in server.log for Sun Application Server:
>>>
>>> [#|2007-12-14T13:40:54.141-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-37;_Re
>>> questID=392792ee-8171-4b8f-90d3-acd905938469;|WebModule[/roller]PWC1277:
>>> Exception sending context destroyed event to listener insta
>>> nce of class org.apache.roller.weblogger.ui.core.RollerContext
>>> java.lang.IllegalStateException: Roller Weblogger has not been
>>> bootstrapped yet
>>>         at
>>> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>>>         at
>>> org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
>>>       
>> Where did you place your roller-custom.properties file and what does it contain?
>>
>> - Dave
>>
>>     

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Matt Raible <ma...@raibledesigns.com>.
The best place I've found to put roller-custom.properties (so it works
on multiple servers) is in WEB-INF/classes.

Matt

On 12/18/07, Dave <sn...@gmail.com> wrote:
> On Dec 17, 2007 12:46 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> > Solaris 10 update 4
> > Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
> > MySQL 5.0.37
> > Java SDK 1.5
> >
> > I am following the Roller installation guide and everything is smooth up
> > to the point where I deploy Roller and try to access it.
> >
> > I get the following in server.log for Sun Application Server:
> >
> > [#|2007-12-14T13:40:54.141-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-37;_Re
> > questID=392792ee-8171-4b8f-90d3-acd905938469;|WebModule[/roller]PWC1277:
> > Exception sending context destroyed event to listener insta
> > nce of class org.apache.roller.weblogger.ui.core.RollerContext
> > java.lang.IllegalStateException: Roller Weblogger has not been
> > bootstrapped yet
> >         at
> > org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
> >         at
> > org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
>
>
> Where did you place your roller-custom.properties file and what does it contain?
>
> - Dave
>

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Nate Keegan <na...@cityofprescott.net>.
I placed roller-custom.properties in 
/opt/SUNWappserver/appserver/lib/classes per the Roller install guide

File contents:

installation.type=auto
database.configurationTypd=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=roller
database.jdbc.password=fooblat
mail.configurationType=properties
mail.hostname=mail.cityofprescott.org

Dave wrote:
> On Dec 17, 2007 12:46 PM, Nate Keegan <na...@cityofprescott.net> wrote:
>   
>> Solaris 10 update 4
>> Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
>> MySQL 5.0.37
>> Java SDK 1.5
>>
>> I am following the Roller installation guide and everything is smooth up
>> to the point where I deploy Roller and try to access it.
>>
>> I get the following in server.log for Sun Application Server:
>>
>> [#|2007-12-14T13:40:54.141-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-37;_Re
>> questID=392792ee-8171-4b8f-90d3-acd905938469;|WebModule[/roller]PWC1277:
>> Exception sending context destroyed event to listener insta
>> nce of class org.apache.roller.weblogger.ui.core.RollerContext
>> java.lang.IllegalStateException: Roller Weblogger has not been
>> bootstrapped yet
>>         at
>> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>>         at
>> org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
>>     
>
>
> Where did you place your roller-custom.properties file and what does it contain?
>
> - Dave
>   

Re: Roller 4.0 and Sun Java Application Server 9.1 Issue

Posted by Dave <sn...@gmail.com>.
On Dec 17, 2007 12:46 PM, Nate Keegan <na...@cityofprescott.net> wrote:
> Solaris 10 update 4
> Sun Java Application Server 9.1 (i.e. GlassFish version 2.0)
> MySQL 5.0.37
> Java SDK 1.5
>
> I am following the Roller installation guide and everything is smooth up
> to the point where I deploy Roller and try to access it.
>
> I get the following in server.log for Sun Application Server:
>
> [#|2007-12-14T13:40:54.141-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=Thread-37;_Re
> questID=392792ee-8171-4b8f-90d3-acd905938469;|WebModule[/roller]PWC1277:
> Exception sending context destroyed event to listener insta
> nce of class org.apache.roller.weblogger.ui.core.RollerContext
> java.lang.IllegalStateException: Roller Weblogger has not been
> bootstrapped yet
>         at
> org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
>         at
> org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)


Where did you place your roller-custom.properties file and what does it contain?

- Dave