tukai chakraborty

Greenhorn
+ Follow
since Feb 02, 2004
Merit badge: grant badges
For More
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 tukai chakraborty

first of all thanx Rahul for the site info
i had somehow managed to create a domain and configured jbuilder with weblogic.
i have developed a sample BMP application and tried to run it in weblogic.
i am getting following exception in my console

java.lang.ArrayIndexOutOfBoundsException: 0
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:222)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:97)
at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:80
2)
at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:423)
at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicatio
nContainer.java:1359)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1184)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
tainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.management.ManagementException: - with nested exception:
[java.lang.ArrayIndexOutOfBoundsException: 0]
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<Nov 10, 2004 4:39:32 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thre
ad "ListenThread.Default" listening on port 7002, ip address *.*>
<Nov 10, 2004 4:39:32 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000331> <Star
ted WebLogic Admin Server "myserver" for domain "testdomain" running in Developm
ent Mode>
<Nov 10, 2004 4:39:32 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000360> <Serv
er started in RUNNING mode>

I wud be grateful if you can specify why this exception is coming.
Thnks and Regards
Koushik
19 years ago
hii all
i am new to weblogic.can u please guide me in deploying a j2ee application in weblogic 8.1 step by step
i.e. how to create a server,where to deploy the application and also if possible how do i configure jbuilder with weblogic.
thanks in advance
koushik
19 years ago
After successful completion of ur logic in ur Action class u can forward it to the same jsp from which u submitted.

Say in ur struts-config.xml u have
<action name="LoginForm" type="LoginAction" input="/Login.jsp" scope="request" path="/LoginAction">
<forward name="sucess" path="/Login.jsp" />
</action>

Now from ur Action Class u have to do
return(mapping.findForward("another")); which will take to ur jsp page and then do necessary upadtes again.

hope it soves ur problem
19 years ago
if u want to read the values from application resource property file in jsp then this is what u need to do.
in applicationresources.properties file if u do
login.name=Login Name
then in the jsp u have to use the <bean:message key="login.name"> to retrieve the value

is this what u wanted?
19 years ago
dont set the scope to session unless needed,keep it to request.

This is what you need to do.

Say you 1 jsp,a form and 2 actions

In the struts-config.xml this is the mapping you need to do.

<action name="FormName" type="Action 1" input="/jsp1.jsp" scope="request" path="/Action 1"> <forward name="another" path="/another.do" /> </action>

<action path="/another" type="AnotherAction" scope="request" input="/jsp1.jsp"> <forward name="success" path="/Success.jsp" /> </action>

Note that from Action 1 you would forward to Action 2 and also note that there should not be any form bean mapping with the Action 2.

Now in Action 1,after re-setting the form bean values you need to set the form bean object in the request scope before forwarding it to the Action 2.

i.e.in Action 1

Say you had already done

YourForm yourForm = (YourForm )form;

So before forwarding it to Action 2 you need to do

request.setAttribute("updatedform",yourForm);

return(mapping.findForward("another"));(from struts-config)

Now in Action 2,you have to do

YourForm yourForm = (YourForm)request.getAttribute("updatedform");

If you now want to read the form values ,you would get the updated ones which you had re-setted in Action 1.

This would solve your problem.
19 years ago
i had tried out this option also but its not working.struts straight away calls the BeanUtils.populate method and hence resulting in the exception which i had said about.
19 years ago
1.)u need to write the validate() method in the form.
2.)ae will return to ur input page,i.e. the jsp.and there u need to write the <html:errors/> to trap the the errors and display the error message in the jsp page.
3.)??? is any KEY u associate with the error object
19 years ago
Hi
I am using DynaAction from struts 1.1 in building a form dynamically.
Say I have a purchase order form where there are multiple line items and
which are being added dynamically.
I have added couple of line items and then after a brief period when i try
to add more line items I get the above error javax.servlet.ServletException:BeanUtils.populate.
This occurs if there is session timeout which if I remove does not give the
above error,but which is not a viable solution.
Is there any way to get rid of this problem.
Looking forward to yours reply.
Thanks in advance
Koushik
19 years ago
Hi All
I have a file which is in compressed form without any extension.(say A)
My requirement is to rename it to A.gz and then extract it to a file and save it to B ,the data in which can be viewed using a WordPad.
What I am doing is as follows:-
1)renaming it to A.gz
2)trying to extract this gz file using GZIPInputStream.
But when I am executing my program I am getting the following error:-
java.io.IOException: Not in GZIP format
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:131)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
at GZip.main(GZip.java:16)
Can any one please tell me y I am geting this error.
Thanks in Advance
Koushik
19 years ago
i have 2 jsp pages.
When i click a hyperlink,it calls 1st jsp which fetched values from session bean and passes the values to another jsp which basically displays the values along with 2 text boxes.
now when i m validating using struts i m getting a javascript error "parent.bottom.document is null or not an object".
in my struts-config.xml i have mapped my action class with the 2nd jsp.
in case of any errors i m returning to the 1st jsp ,which itself forwards to 2nd jsp.
can anyone explain y this error is coming?
in my applicationresources.properties i hv written
errors.header=<script>var riter=parent.bottom.document;parent.document.open();
parent.document.focus();parent.document.close();
riter.write('<html><body>'unable to process errors');
riter.write('</body></html> ;</script>
errors.goodsreceipt.shipname=riter.writer('<li>ship name cannot be blank</li>');
this error is not displayed at the bottom of the page.but u can the value when u VIEW SOURCE the jsp page.
instead it displays the javascript error.
hope i m able to clarify my doubts.
thanx in advance for urs solution
20 years ago
i have 2 jsp pages.
When i click a hyperlink,it calls 1st jsp which fetched values from session bean and passes the values to another jsp which basically displays the values along with 2 text boxes.
now when i m validating using struts i m getting a javascript error "parent.bottom.document is null or not an object".
in my struts-config.xml i have mapped my action class with the 2nd jsp.
in case of any errors i m returning to the 1st jsp ,which itself forwards to 2nd jsp.
can anyone explain y this error is coming?
in my applicationresources.properties i hv written
errors.header=<script>var riter=parent.bottom.document;parent.document.open();
parent.document.focus();parent.document.close();
riter.write('<html><body>'unable to process errors');
riter.write('</body></html> ;</script>
errors.goodsreceipt.shipname=riter.writer('<li>ship name cannot be blank</li>');
this error is not displayed at the bottom of the page.but u can the value when u VIEW SOURCE the jsp page.
instead it displays the javascript error.
hope i m able to clarify my doubts.
thanx in advance for urs solution