Sandeep P Kulkarni

Greenhorn
+ Follow
since Sep 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sandeep P Kulkarni

jian jin wrote:Hi,

Because what we used is JBoss Community edition, there is no support for this open source edition. If you used a JBoss commercial edition, you can request a fix for it.

As i know there is no workaround for it unless you want to fix it by yourself.



Yes , thank you.
14 years ago

daphna deutsch wrote:Hi,
I'm trying to migrate from jboss 4.2.3 to jboss 5.1.0 (JDK 6.0).
My application reads xml over http requests from several clients.

After migrating to jboss 5 and sending the xml request I'm sometime getting IllegalArgumentException from tomcat. Same request may sometime works fine and sometime gets the exception.





Here is a sample of my code that read the request. Same code work fine on jboss 4.0.5 and 4.2.3.


how can i solve this?

Thanks,
Daphna




I was using BufferedReader readLine() API , using read() I was able to solve this issue. read() will be slower than readLine() , because of blocking calls.

14 years ago

jian jin wrote:I opened a defect for JBoss: https://jira.jboss.org/jira/browse/JBAS-7817
It was accepted.


Are you able to resolve this issue?Any workaround you have applied for Jboss 5.1.0 ?
Seems they have resolved it in 6.0.0.M3.
14 years ago
Hi Norm ,

I want to give permissions to file packaged inside a jar.
16 years ago
How to read a file[resource] inside jar under Java Security Manager?
Ex- in myApp.jar , I want to read file placed under com/mystuff/queries/abc.sql
myApp.jar
|
|-com/mystuff/queries/abc.sql


I am using Class.class.getResourceAsStream("")to read the content of a file which is packaged inside a jar. This works fine if not run under Java Security manager. This fails under Java Security Manager. I am getting a NULL InputStream under security manager. Probably I need to give "read" permission to "queries" folder recursively.

What is the syntax to be used in policy file to give permission recursively to folder inside a jar?

OR Please let me know if this is the correct syntax-
16 years ago