Vishal Saxena

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

Recent posts by Vishal Saxena

My understanding is that it is.
Dynamic downloading of classes is a choice, but when bind/rebind rmi.server.codebase is to be set.
I verified this - took this property off and exceptions were thrown. There are reasons why it should be like that, but still I have a feeling that if not specified when bind/rebind, the classpath should be considered as codebase.

-V
18 years ago
Megha,
Note the exception - anything and everything is not related to classpath.

Patwa..,
I don't understand what tname embed within Jdk is and you can see that I am not using CORBA. It is simple java:


anybody?
18 years ago
Extending is very common - like below:

How about implementing?
18 years ago
My thanks to somebody who can shoot this; I am stuck.

Note that the rmi registry has started successfully; still Naming.rebind() fails to connect. Is it because the rmiregistry 1099 starts at hostname and localhost doesn't resolve to it?


18 years ago
Say, a web application is added to a few already existing ones, in an engine of Tomcat supposed to run on a host. This web application makes a RMI call and needs to run with a RMISecurityManager.

If <catalina.home>/bin/startup -security is run with ./catalina.bat edited to specify -Djava.security.manager=java.rmi.RMISecurityManager all the other web applications too will run with that - perhaps not good! The question is, how to enable a Security Manager per web application? Things may be similiar but lets' talk about Tomcat 5.

Thanks. -V
18 years ago
Style1
private PaymentSchedule getPaymentSchedule()
{
//...blah blah...
if(<some condition>
{
//..blah..blah
return paymentSchedule.prorata(partialPaymentAmount);
}
else if(<some other condition>
{
// ..blah..blah
return new PaymentSchedule(partialPaymentAmount, principalPayment, interestPayment,
bankInterestAccruedSinceLastPayment, dealerInterestAccruedSinceLastPayment);

}

//if the program flow reaches here; it's a bug.
return null }
}
Style2
private PaymentSchedule getPaymentSchedule()
{
PaymentSchedule paymentSchedule = null;
if(<some condition>
{
//..blah..blah
paymentSchedule = paymentSchedule.prorata(partialPaymentAmount);
}
else if(<someothercondition>
{
// ..blah..blah
paymentSchedule = new PaymentSchedule(partialPaymentAmount, principalPayment, interestPayment,
bankInterestAccruedSinceLastPayment, dealerInterestAccruedSinceLastPayment);

}

return paymentSchedule }
}
19 years ago
Thank You for the reply.

What I am asking is this - Can it be closed between transactions by the setTransactionIsolation()? Will it always throw an exception, is it a bad practice or is it okay to do that?
I understand that the isolation level of a connection can not be changed when a transaction is in progress, but can it be changed between two transactions?
Let me ask this Q with an example:
I run my Class A from d:\product\scripts. In A I want to do a Runtime.getRuntime().exec("a.bat"); a.bat is in d:\product. So is there a way I can specify the dir. location of the Process that I get by doing a Runtime.getRuntime() - in this case as d:\product - meaning run a.bat @ d:\product.
Interestingly, I expected that there'll be an overloaded exec(), which let's me specify the dir. location.
20 years ago
hi all,
Consider, for e.g, the class org.apache.xerces.dom.DeferredTextImpl is present in both xmlx.jar and a01_topllink3.6.3.toplinkall.jar; if I were to use classpath I would mention the xmlx.jar before the a01_topllink3.6.3.toplinkall.jar and have the class picked from that; but if it's a web application deployed as a WAR in Weblogic6.1, and both these jars are at WEB-INF/lib inside the WAR, how to specify the order ?
I tried specifying the order in META-INF/Manifest.mf and warring it too, along with the rest of the application.
It's impending for me to find a solution to it, so plz treat it on a priority basis.
[Tavant Technologies, Bangalore India. iwishal@yahoo.com ]
20 years ago
hi,
If I redirect to a URL, I achieve a GET. How to achieve a POST ?
21 years ago
Can anybody tell me, why is this happening ?
21 years ago
hi,
Help me.
Starting WebLogic Server ....
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised:
java.lang.VerifyError: (class: bsh/Interpreter, method: jj_3R_140 signature: ()Z
) Expecting to find double on stack
at weblogic.management.internal.DynamicMBeanImpl.<clinit>(DynamicMBeanIm
pl.java:72)
at weblogic.management.Admin.initialize(Admin.java:242)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:378)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:220)
at weblogic.Server.main(Server.java:26)
at intuitive.audit.Main.runProgramWithClass(Native Method)
at intuitive.audit.Audit.main(Audit.java:851)
Reason: Fatal initialization exception
***************************************************************************
21 years ago
hello,
Following is the command and the exception. The scenario is, OptimizeIt attached to Weblogic JVM. The question is, what to edit in weblogic.policy.
C:\p4\vishal.saxena-ws47\branches\snap2\product\scripts>perl weblogicServer.pl -
wlpassword tavant7368
Running [rm -rf c:/config/tmp_ejb*/ c:/bea/wlserver6.1/tmp_ejb*/TavantEJBApp_ejb
c:/p4/vishal.saxena-ws47/branches/snap2/product/scripts/tmp_ejb*/TavantEJBApp_e
jb] ...
Starting Weblogic Server...
Running [C:/jdk1.3.1_08/bin/java -classic -Xrunj2i:filter=c:/Optimizeit/ServerTr
ace/filters/WebLogic.oif -Xbootclasspath/a:c:/Optimizeit/ServerTrace/lib/oibcp.j
ar -Xmx512m -Xms512m -Dweblogic.Domain=tavantdomain80 -Dweblogic.Name=myserver -
Dbea.home=c:/bea -Djava.security.manager -Dweblogic.RootDirectory=c:/ -Djava.sec
urity.policy=="c:/bea/wlserver6.1/lib/weblogic.policy" -Dweblogic.management.dis
cover=false -Dweblogic.ProductionModeEnabled=true -Dwli.bpm.server.evaluator.sup
portsNull=true -Dwli.bpm.server.nostatistics=true -classpath c:/p4/vishal.saxena
-ws47/branches/snap2/product/lib/axis.jar;c:/p4/vishal.saxena-ws47/branches/snap
2/product/lib/commons-discovery.jar;c:/p4/vishal.saxena-ws47/branches/snap2/prod
uct/lib/jaxrpc.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/saaj.jar;
c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/wsdl4j.jar;c:/p4/vishal.saxe
na-ws47/branches/snap2/product/lib/crimson.jar;;c:/bea/wlserver6.1/lib/webservic
ePatch.jar;c:/bea/wlserver6.1/lib/CR096950_61sp4.jar;C:/oracle/ora81/jdbc/lib/cl
asses12.zip;c:/bea/wlserver6.1/lib/weblogic.jar;c:/bea/wlserver6.1/jcom/lib/jcom
.jar;c:/bea/wlserver6.1/lib/xmlx.jar;c:/p4/vishal.saxena-ws47/branches/snap2/pro
duct/lib/log4j-1.2.6.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/opt
ional.jar;;c:/bea/wlintegration2.1/lib/wlicommon.jar;c:/bea/wlintegration2.1/lib
/wliserver.jar;c:/bea/wlintegration2.1/ext;c:/bea/wlintegration2.1/lib/powerapi.
jar;c:/bea/wlintegration2.1/lib/hlcommon.jar;c:/bea/wlintegration2.1/lib/mekshar
ed.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jsse1.0.2-jsse.jar;c:
/p4/vishal.saxena-ws47/branches/snap2/product/lib/jsse1.0.2-jcert.jar;c:/p4/vish
al.saxena-ws47/branches/snap2/product/lib/jsse1.0.2-jnet.jar;c:/p4/vishal.saxena
-ws47/branches/snap2/product/lib/jce1.2.1-jce1_2_1.jar;c:/p4/vishal.saxena-ws47/
branches/snap2/product/lib/local_policy.jar;c:/p4/vishal.saxena-ws47/branches/sn
ap2/product/lib/jce1.2.1-sunjce_provider.jar;c:/p4/vishal.saxena-ws47/branches/s
nap2/product/lib/US_export_policy.jar;c:/p4/vishal.saxena-ws47/branches/snap2/pr
oduct/lib/a01_topllink3.6.3.toplinkall.jar;c:/p4/vishal.saxena-ws47/branches/sna
p2/product/lib/a01_topllink3.6.3.xerces.jar;c:/p4/vishal.saxena-ws47/branches/sn
ap2/product/lib/jaxp1.0.1-jaxp.jar;c:/p4/vishal.saxena-ws47/branches/snap2/produ
ct/lib/jaxp1.0.1-parser.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/
junit3.8.1_junit.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/javamai
l1.1.3_mail.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jaf1.0.1_act
ivation.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jconfig10_21.jco
nfig.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jconfig10_21.oomode
l.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jconfig10_21.webc.jar;
c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/jconfig10_21.bcl.jar;c:/p4/v
ishal.saxena-ws47/branches/snap2/product/lib/jconfig10_21.jconfigall.jar;;c:/p4/
vishal.saxena-ws47/branches/snap2/product/lib/jdepend.jar;c:/p4/vishal.saxena-ws
47/branches/snap2/product/lib/AltaVistaSDK3.0.2_avs30.jar;c:/p4/vishal.saxena-ws
47/branches/snap2/product/lib/payflowpro_Verisign.jar;c:/p4/vishal.saxena-ws47/b
ranches/snap2/product/lib/TValue5.06-TValueApp.jar;c:/p4/vishal.saxena-ws47/bran
ches/snap2/product/lib/fop-0.20.3_fop.jar;c:/p4/vishal.saxena-ws47/branches/snap
2/product/lib/fop-0.20.3_avalon-framework-4.0.jar;c:/p4/vishal.saxena-ws47/branc
hes/snap2/product/lib/fop-0.20.3_logkit-1.0.jar;c:/p4/vishal.saxena-ws47/branche
s/snap2/product/lib/fop-0.20.3_batik.jar;c:/p4/vishal.saxena-ws47/branches/snap2
/product/lib/optit.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/NetCo
mponents-1.3.8a_NetComponents.jar;c:/p4/vishal.saxena-ws47/branches/snap2/produc
t/lib/velocity-1.3.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/strut
s.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/struts-menu.jar;c:/p4/
vishal.saxena-ws47/branches/snap2/product/lib/commons-digester.jar;c:/p4/vishal.
saxena-ws47/branches/snap2/product/lib/commons-beanutils.jar;c:/p4/vishal.saxena
-ws47/branches/snap2/product/lib/commons-logging.jar;c:/p4/vishal.saxena-ws47/br
anches/snap2/product/lib/jakarta-oro-2.0.7.jar;c:/p4/vishal.saxena-ws47/branches
/snap2/product/lib/castor-0.9.3.21-xml.jar;c:/p4/vishal.saxena-ws47/branches/sna
p2/product/lib/ras.rascore.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/l
ib/ras.ebus405.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ras.repor
tsourcefactory.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ras.corba
idl.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ras.serialization.ja
r;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ras.MetafileRenderer.jar;c
:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ras.webreporting.jar;c:/p4/vi
shal.saxena-ws47/branches/snap2/product/lib/ras.rasapp.jar;c:/p4/vishal.saxena-w
s47/branches/snap2/product/lib/ras.xerces.jar;c:/p4/vishal.saxena-ws47/branches/
snap2/product/lib/ras.webreportwizard.jar;c:/p4/vishal.saxena-ws47/branches/snap
2/product/lib/ras.reporttemplate.jar;c:/p4/vishal.saxena-ws47/branches/snap2/pro
duct/lib/dtdparser120.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/xs
ltc.jar;;c:/config/tavantdomain80/applications/tavantWebApp/WEB-INF/classes;c:/c
onfig/tavantdomain80/applications/tavantWebApp/WEB-INF/classes/classes.jar;c:/co
nfig/tavantdomain80/applications/tavantWebApp/WEB-INF/classes/resources.jar;c:/c
onfig/tavantdomain80/applications/tavantWebApp/WEB-INF;c:/p4/vishal.saxena-ws47/
branches/snap2/product;c:/p4/vishal.saxena-ws47/branches/snap2/product/remoteWeb
Services.jar;c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/ognl-2.1.4.jar;
c:/p4/vishal.saxena-ws47/branches/snap2/product/lib/commons-collections.jar;c:/c
onfig/tavantdomain80/applications/tavantWebApp/WEB-INF/product/code/java;c:/p4/v
ishal.saxena-ws47/branches/snap2/product/lib/wsFramework_1Data.jar;c:/p4/vishal.
saxena-ws47/branches/snap2/product/lib/wsMonitoring_1Data.jar;c:/p4/vishal.saxen
a-ws47/branches/snap2/product/lib/bpm_client.jar;c:/p4/vishal.saxena-ws47/branch
es/snap2/product/lib/bpm_wl_client.jar;; -Dweblogic.management.password=tavant7
368 intuitive.audit.Audit -startCPUprofiler -noexit weblogic.Server] ...
7 Extension(s) Activated.
Exception in thread "main" java.security.AccessControlException: access denied (
java.util.PropertyPermission AUDIT read)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:267)
at java.security.AccessController.checkPermission(AccessController.java:
394)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
73)
at java.lang.System.getProperty(System.java:555)
at intuitive.audit.Audit.isServerTrace(Audit.java:897)
at intuitive.audit.Audit.defaultPort(Audit.java:453)
at intuitive.audit.Audit.main(Audit.java:472)
Regards,
vishal.
21 years ago

Return an appropriate ActionForward object that identifies the JSP page to be used to generate this response, based on the newly updated beans. Typically, you will acquire a reference to such an object by calling findForward() on either the ActionMapping object you received (if you are using a logical name local to this mapping), or on the controller servlet itself (if you are using a logical name global to the application).


- struts-documentation\userGuide\building_controller.html
Please explain what's being meant by using a logical name local to this mapping vs if you are using a logical name global to the application.
Regards,
VishalSax
21 years ago