Home » Archived » BIRT » jboss security problem(BIRT gives errors when I activate security manager in jboss 5)
jboss security problem [message #736079] |
Thu, 13 October 2011 14:20 |
Mike Messages: 3 Registered: October 2011 |
Junior Member |
|
|
Hello all,
I have a BIRT web app that works fine till I activate the security manager on jboss 5 were it lives...
DOCGEN_ROOT=/docgen
JAVA_OPTS="$JAVA_OPTS \
-Djava.security.manager \
-Djava.security.policy=/hosting/apps/$appServerName/deploy/java2.policy\
-Ddocgen.root=$DOCGEN_ROOT \
-Djboss.log4j.config=/hosting/products/jboss50/bin/log4j.properties \
-Dbirt.engine=/docgen/birt"
I believe that I have added all the needed permissions, but it still fails...
Without activating the security manager works just fine...
If anyone has been there before I would appreciate any kind of feedback....
Many thanks in advance,
Mike
I have uploaded a file with the full server log portion of the failure.
The error starts like this:
2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: datafile
2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: design
2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: letter_code
2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: rendition
2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: unwrapped
2011-10-13 14:48:00,451 INFO [STDOUT] (http-0.0.0.0-20108-1) MJL >>>>> Rendition: html
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at org.eclipse.birt.core.framework.Platform.startup(Platform.java:90)
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtEngine.getBirtEngine(BirtEngine.java:59)
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtEngine.getBirtEngine(BirtEngine.java:34)
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtDocGen.createDocument(BirtDocGen.java:98)
2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtDocGen.createDocument(BirtDocGen.java:63)
and ends with:
2011-10-13 14:49:06,278 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:51:20,259 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:53:57,508 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.74:7600: java.net.SocketException: Socket closed
2011-10-13 14:54:49,499 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:54:52,663 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:55:30,324 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:55:53,689 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.74:7600: java.net.SocketException: Socket closed
2011-10-13 14:56:11,685 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
2011-10-13 14:56:11,686 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
even though I'm using the following to allow sockets to do anything...
permission java.net.SocketPermission "*", "listen, resolve, connect, accept";
-
Attachment: full.txt
(Size: 33.98KB, Downloaded 234 times)
|
|
|
Re: jboss security problem [message #736130 is a reply to message #736079] |
Thu, 13 October 2011 16:01 |
|
Mike,
What version of BIRT are you using? I assume you are using 2.6.2 or
earlier. Those versions of BIRT require write permission to the
WEB-INF/platform/configuration directory. I am not certain this is the
issue, but it may be as the OSGi instance never starts.
Jason
On 10/13/2011 10:20 AM, Mike wrote:
> Hello all,
> I have a BIRT web app that works fine till I activate the security manager on jboss 5 were it lives...
>
> DOCGEN_ROOT=/docgen
> JAVA_OPTS="$JAVA_OPTS \
> -Djava.security.manager \
> -Djava.security.policy=/hosting/apps/$appServerName/deploy/java2.policy\
> -Ddocgen.root=$DOCGEN_ROOT \
> -Djboss.log4j.config=/hosting/products/jboss50/bin/log4j.properties \
> -Dbirt.engine=/docgen/birt"
>
> I believe that I have added all the needed permissions, but it still fails...
> Without activating the security manager works just fine...
>
> If anyone has been there before I would appreciate any kind of feedback....
>
> Many thanks in advance,
>
> Mike
>
> I have uploaded a file with the full server log portion of the failure.
> The error starts like this:
>
> 2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: datafile
> 2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: design
> 2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: letter_code
> 2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: rendition
> 2011-10-13 14:48:00,434 INFO [STDOUT] (http-0.0.0.0-20108-1) Form item: unwrapped
> 2011-10-13 14:48:00,451 INFO [STDOUT] (http-0.0.0.0-20108-1) MJL>>>>> Rendition: html
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at org.eclipse.birt.core.framework.Platform.startup(Platform.java:90)
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtEngine.getBirtEngine(BirtEngine.java:59)
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtEngine.getBirtEngine(BirtEngine.java:34)
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtDocGen.createDocument(BirtDocGen.java:98)
> 2011-10-13 14:48:00,531 ERROR [STDERR] (http-0.0.0.0-20108-1) at com.mbna.europe.birt.BirtDocGen.createDocument(BirtDocGen.java:63)
>
> and ends with:
> 2011-10-13 14:49:06,278 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:51:20,259 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:53:57,508 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.74:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:54:49,499 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:54:52,663 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:55:30,324 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:55:53,689 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.74:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:56:11,685 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
> 2011-10-13 14:56:11,686 ERROR [org.jgroups.blocks.ConnectionTable] (ReceiverThread) failed sending data to 165.44.178.79:7600: java.net.SocketException: Socket closed
>
> even though I'm using the following to allow sockets to do anything...
> permission java.net.SocketPermission "*", "listen, resolve, connect, accept";
>
|
|
|
Re: jboss security problem [message #736211 is a reply to message #736130] |
Thu, 13 October 2011 20:10 |
Mike Messages: 3 Registered: October 2011 |
Junior Member |
|
|
Hi Jason,
To be honest I'm using an old version... 2.2.1
It's just that we're trying to move the existing apps on jboss servers and that issue manifested...
I'll try your tip and with some luck it might solve the issue...
Thanks,
Mike
Unfortunately the above solution doe not apply to my app...
any ideas anyone?
[Updated on: Fri, 14 October 2011 10:23] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 19 15:47:21 GMT 2024
Powered by FUDForum. Page generated in 0.02055 seconds
|