aslam parveez

Ranch Hand
+ Follow
since Apr 25, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by aslam parveez

I found a way to have it done. For any one who is interested, please find below the jetty configuration snippet.

<Set name="handler">
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
<Set name="handlers">
<Array type="org.eclipse.jetty.server.Handler">
<Item>
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/abc</Set>
<Set name="war">WebContent</Set>
<Get name="securityHandler">
<Set name="loginService">
<New class="DummyLoginService">
<Call name="start"/>
</New>
</Set>
</Get>
</New>
</Item>
<Item>
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/xyz</Set>
<Set name="war">../otherProj/WebContent</Set>
<Get name="securityHandler">
<Set name="loginService">
<New class="DummyLoginService">
<Call name="start"/>
</New>
</Set>
</Get>
</New>
</Item>
</Array>
</Set>
</New>
</Set>
11 years ago
Hello,

I have a web-app hosted on embedded jetty. I would like to host the same web-app twice with different context-root so that I can access the app from both context-roots. I have my web-app context configured in jetty.xml like below, how can I have the same app added with a different context-root.
<Set name="handler">
<New class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/abc</Set>
<Set name="war">WebContent</Set>
<Get name="securityHandler">
<Set name="loginService">
<New class="DummyLoginService">
<Call name="start"/>
</New>
</Set>
</Get>
</New>
</Set>
11 years ago
I have a web-app built using wicket. This comprized of multiple functionalities. All this is bundled in a single EAR with a single WAR. We are planning to split this into multiple wars based on a functionality. Please suggest on the approach to be considered for this split, like from where I will have to start.
In a jsp page i'm popping up a new window by using window.open("some action"). My requirement is i'm supposed to utilize the form in the current jsp in the action that is invoked using window.open. Problem is once i say a window.open then i'm redirecting to the new URL and hence the form object is not available there. is there a way to access this form object in the new action without setting the form into session. (My form object will have plenty of data in it, like array of certain beans etc).
Any help will be greatly appreciated.
Thanks
Thanks a lot about the pointer. My build file finally got working.
I really has to bang my head to resolve another error,

"Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find the path specified)", until i discovered that using ws_ant.bat instead of ant will resolve the issue.

Thanks again.
17 years ago
Hi,

I have a requirement where in once i click on a link in a jsp page i will have to show a form in a popup window. And once i submit the form the pop-up window needs to be closed. I'm able to do the same by using java script function window.open("URL of action for showing the form',window properties). I'm able to submit the form also.
However, my problem is when i have an error situation during my submit then i'll have to display the error message in the parent jsp after closing the pop-up window. I have declaratively handled the exception by giving the parent page as the input but when there is an exception my parent page is not refreshed and error message is not displayed. How do i achieve the same ? Any help will be greatly appreciated.
17 years ago
Hello,

When i'm trying to run an ant build file with a Wsejbdeploy task i'm getting the following error

BUILD FAILED
W:\ACE.5.03.ODCMaint.dev_082307\ACE\_main\_build\buildejbNew.xml:13: taskdef class com.ibm.websphere.ant.tasks.WsEjbDeploy cannot be found

I have pointed out my Websphere path which is integrated in RAD 7.0 as
C:/Program Files/ibm/SDP70/runtimes/base_v61/lib

I dont know which jar file is required for this task and whether or not that is available in the Websphere instance lib folder i have pointed out.
Any help will be greatly appreciated.

Thanks
17 years ago
I'm trying to fix a broken ant build file which is used to build ejbs. However, i'm getting errors during wsejbdeploy as follows.

[wsejbdeploy] [*Error] /GlobalSettings(Class: com.fifththird.ebusiness.ace.core.
portal.settings.data.ejb.GlobalSettingsBean): CHKJ2907E: Type com.fifththird.ebu
siness.ace.core.portal.settings.data.ejb.GlobalSettingsBean, or one of its super
types, cannot be reflected. Check the classpath.

It looks like it's not recognizing the respective class but i believe i have given the classpath for the respective class. What else could be wrong.
Any help will be greatly appreciated.
Thanks in advance.
17 years ago
I have created a profile on a desktop by the name AppSrv02 and i can use the same to create a server. On the contrary if some body else will login to the same desktop and attempts to use the same profile he will get the following error.
ADMU0128I: Starting tool with the AppSrv02 profile
ADMU3100I: Reading configuration for server: server1
ADMU0111E: Program exiting with error:
com.ibm.websphere.management.exception.NoServerDefinedException: No
configuration defined for server: server1
ADMU1211I: To obtain a full trace of the failure, use the -trace option.
ADMU0211I: Error details may be seen in the file: C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv02\logs\server1\startServer.log

In the logs also i can see the same message. I have a requirement where more than 3 people will have to login to the same desktop and have their own Websphere 6.1 profiles. For that i have i have created 2 profiles AppSrv02 and Appsrv03 apart from the AppSrv01 which is the default one. Though i can use any of these profiles but when the other user attempts to use the profile AppSrv02 or AppSrv03 the above error will be flagged and it's not the case if they attemp to use the default profile AppSrv01. How do i resolve this problem ? Any help will be greatly appreciated. Thanks.
17 years ago
I have an ant task ejbjar to create jar file for the ejbs. However it's not able to create the jar file. As a result of which my another task wsejbdeploy is failing complaining that the jar is not available.

<target name="globalsettingsejb" description="Builds GlobalSettings ejb"
depends="sharedjar">
<echo message="deleting old ejbs ..." />
<delete file="${ear.dir}/GlobalSettings.jar"/>

<echo message="building ejbs ..." />

<echo>creating '_temp_ejbjar.jar'</echo>
<jar jarfile="${target.dir}/_temp_ejbjar.jar">
<fileset dir="${compile.dir}">
<include name="**/*.class"/>
</fileset>
</jar>

<property name="websphere.home" value="${appserver.root.dir}"/>

<ejbjar srcdir="${compile.dir}"
descriptordir="core/ejbconfig"
manifest="core/ejbconfig/EJB-MANIFEST.MF"
destdir="${target.dir}">

<include name="GlobalSettings-ejb-jar.xml"/>

<websphere ejbdeploy="false"
destdir="${target.dir}"
rebuild="false"
quiet="true"
tempdir="metadata">
<classpath>
<path refid="classpath"/>
<pathelement path="${target.dir}/_temp_ejbjar.jar"/>
</classpath>
</websphere>

<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
location="${appserver.root.dir}/deploytool/itp/plugins/com.ibm.etools.j2ee/dtds/ejb-jar_2_0.dtd"/>
</ejbjar>

have the deployment descriptors placed in the folder core/ejbconfig as specified and have a manifest file EJB-MANIFEST.MF which is just a template and also the supporting .xmi files. I dont know what is going wrong and why ejbjar is not able to create the jar file as a result of which wsejbdeploy is failing. Here is the log of ant command.
BUILD FAILED: W:\ACE.UDS.FeeRev.ODC.dev_2\ACE\_main\aceBuild\_build\buildejb.xml:111: Input Jar does not exist: W:\ACE.UDS.FeeRev.ODC.dev_2\ACE\_main\target\GlobalSettings.jar

Any help will be greatly appreciated. Thanks.
[ August 09, 2007: Message edited by: aslam parveez ]
17 years ago
Thanks a lot for your directions Merill. I'm able to create multiple profiles and henceforth multiple instances. Thanks again.
17 years ago
Thanks for your suggestion Merill. I'm able to migrate my projects into RAD 7.0. However, i have a new problem for me. Earlier on RAD 6.0 i use to create multiple instances of Websphere v5.1 test environment on the same desktop by just changing the port numbers. This is required for us because multiple users will log on to the same desktop and run their application on a seperate instance of server. I'm not able to create multiple instances of Websphere V6.1 server. How do i create multiple instances of Websphere 6.1 server by just changing the port numbers ? Any help will be greatly appreciated. Thanks.
17 years ago
I have just switched from RAD 6.0 to RAD 7.0.

I had an ear project created in RAD 6.0. I just migrated the same to RAD 7.0 using the option "Open existing projects". But when i created an instance of "Websphere 6.1 server" and went to add a project then no projects are available for me to add. Please help me in this.

Thanks
Aslam
17 years ago
In my application I use a code baseline(jar file) from a different layer.

So far both my application and the other layer were using WAS 5.1 for build and deploy. But now the other layer is using WAS 6.1 .

I would like to know the consequences of using the baseline produced out of WAS 6.1 and using it in WAS 5.1.
Thanks in Advance.
17 years ago


In my class for the chart I try to get session in this way:

HttpServletRequest req;
HttpSession sess = req.getSession();



req is not initialized or in other words you have not obtained the refrence of req here and hence using req will obviously will give you a NullPointerException.
18 years ago