Pradyut Bhattacharya

Ranch Hand
+ Follow
since Aug 12, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pradyut Bhattacharya

I have made a mysql connection pool in glassfish.

After every 5 mins its giving this error although i can use the connection pool.



The mysql config file(my.ini) is


thanks
I m having an web application with few jar files namely:
commons-io-1.4.jar
commons-fileupload-1.2.1.jar
gdata-base-1.0.jar

first i could easily deploy the web application with the libraries without any problems
but for the second time i could not re deploy the application

i get the error:
Exception while loading the app : Error in linking security policy for void -- Inconsistent Module State

after renaming the jar files to _ wihtout the hyphen(-) i could deploy the application for the first time

but for the second time i could not re deploy the application

Now i consistently getting the error: -

Exception while loading the app : Error in linking security policy for void -- Inconsistent Module State
I think i will have fall back to glassfish 3.01 without the recent update

even doing this... deleting the _internal directory and restarting the server did not help

http://www.mentby.com/jacques-21/error-in-linking-security-policy-for-testing-inconsistent-module-state.html

I have issued this in jira

http://java.net/jira/browse/GLASSFISH-16238

and at glassfish forums
http://www.java.net/forum/topic/glassfish/glassfish/not-able-re-deploy-application-glassfish-301-1


the log files say that:-

8 years ago
Hi
In mysql i m having a stored procedure which has a sql like:


I m using a jstl code to get the values: -


But this code does not return anything but when the replace the above code ${rows.i_firstname} with ${rows.firstname} i get the correct values.

Anything wrong with jstl, is this replicable or my fault here...

Question also posted here: - http://stackoverflow.com/questions/4998749/jsp-jstl-sql-strange-behaviour-with-as-in-mysql

thanks
8 years ago
JSP
Hi,

How can i set automatic parsing delay in netbeans 6.8

I have a js file which is 1000+ lines and it takes 10s of continuous processing in my triple core 4gigs machine
before i can continue typing.

I found this blog but this is for ver 5.5

I have found clearing cache and restarting can speed up things...does that make any diff...

Please help

Thanks
I have post a bug on netbeans bugzilla...
hope you guys contribute so that may be jsp/servlets containers can be done better in future

http://netbeans.org/bugzilla/show_bug.cgi?id=194121
8 years ago
should i go for opening a glassfish issue/enhancement as jsp/servlets are here for less than a decade now... still a simple feature missing...
8 years ago
I have a JSP/Servlet web application deployed in Glassfish which is having a number of Servlets and huge class files.
When I make even minor changes in the Servlet or class file, then the whole web application gets re-deployed which takes considerable amount of time.
Not only that, all the JSPs and Servlets are unloaded from memory and upon being called it takes around 1 second for getting initialized.

This problem does not occur when I change code of JSP, JS or CSS files as only that particular file is re-deployed.

Can I do anything so that the Servlets or those huge class files are deployed separately
and thus I do not have to deploy the whole web application?
8 years ago
Hi i m having a text having multiple links wrapped inside text...

i want a regex(i m using javascript) which can parse the text and return a array of the links...

for example for the text...
"http://www.youtube.com/watch?v=-LiPMxFBLZY
testing
http://www.youtube.com/watch?v=Q3-l22b_Qg8&feature=related"


the regex would parse the text and return a array of the links


i m trying to do so with the code...


but its not returning the appropriate results...

please help

thanks>
Hi

I can write a ejb like this...



And call it using this from a servlet



But whenever i put a variable into newTest() i cannot access it



The servlet and EJB are both deployed but still the server gives the error



Any Help

Thanks

Pradyut

India
Hi

I m able to get values using JPA when i have only mapped one table

Now when i have gone for mapping related tables i get the error



I m using [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600)

In one of the child tables i have this code



What changes i have to do in this code to make the fields read-only

or are there any better workaround for not making these fields read only

Thanks

Pradyut

India
no solution with admin console...

by using a filter and coding in that filter

request.getUrl and then parsing the url and redirecting appropriatly...

Cheers...

Pradyut
9 years ago
Hi

I want to set up a virtual server for subdomain

my domain is redirected from
pradyut.dyndns.org

to pradyut.dyndns.org/WebApplicationSecurity

using a virtual server whose default web module is
WebApplicationSecurity
I have used the string "${com.sun.aas.hostName},pradyut.dyndns.org"
in the hosts of the virtual server

now to the question
if someone enters "newa.pradyut.dyndns.org"
how can i redirect to

pradyut.dyndns.org/WebApplicationSecurity/newa

or "*.pradyut.dyndns.org"
redirects to pradyut.dyndns.org/WebApplicationSecurity/*

Thanks
Pradyut
9 years ago
Hi
I have a form realm authentication
with which i am securing a directory "secureUser"

well my question is: -
How i can redirect the user once logged in to the requested page

the details: -

now i can log on a user using this (login.jsp)



Now a user requests two or more pages in the same session browser (firefox/ie tabs)
"secureUser/one.jsp"
"secureUser/two.jsp"
"secureUser/three.jsp"

Now the user gets a login form page thats login.jsp for all the three requested pages

The user authenticates into the page requested "secureUser/one.jsp"

Now if the user reloads the page "secureUser/two.jsp" or "secureUser/three.jsp" which is now showing login.jsp
he gets the same login.jsp page

How i can redirect the user after logging in once to the requested page
such that the page login.jsp after reloading goes to referred page

I can do this in the login.jsp page



but i cannot get the referred page such as two.jsp or three.jsp

Thanks
Pradyut
9 years ago
JSP
the code should be....without any problems but can be good with a function static Transport getTransport() method



Thanks
Pradyut
9 years ago
That solves it...

really i missed out a basic thing... although gave it a thought too....

anyways.... thanks a ton...

Pradyut

9 years ago