SunilRee Gupta

Greenhorn
+ Follow
since Mar 03, 2005
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 SunilRee Gupta

Will you give scenario on which you are working and the log details.

Regards
SKG
16 years ago
Hi Ishita,

Apart from the links mentioned above by others, you can follow the following IBM INfo Cener Link

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp.

you use search in this link, you will get lots.It talks about install, develop, deploy, tunes of WebSphere.

Regards
Sunil Kumar Gupta
16 years ago
Hi Sean,

you can use the jacl or jython script to deploy your ear files. here you have to use wsadmin.bat utility.

wsadmin.bat -profileName abc -tracefile abc.txt conntype SOAP -f jython.file

IN IBM Info center you can find out how to write wrote JACL or Jython code to install your application.

Hope this will solve your issue

Warm Regards
Sunil Kumar Gupta
16 years ago
Hi


1) I have installed WAS 6.1.0.3
2) Created App Server Profile
3) Added the following java option in <jvmEntry> <systemProperty> of sever.xml

<systemProperties xmi:id="Property_1187707290069" name="java.util.logging.config.file" <br /> <br /> value="C:/PT850-103I/webserv/peoplesoft01/installedApps/peoplesoft01NodeCell/peoplesoft01.ear/logging.properties" <br /> <br /> description="java.util.logging.config.file" />

<systemProperties xmi:id="Property_1187707290070" name="org.apache.commons.logging.Log" <br /> <br /> value="org.apache.commons.logging.impl.Jdk14Logger"/>

I have also edited logging.peoperties file to use FileHnadler and the location for generate log But no log file is generated

Can anyone help me How can I configure or use Jdk14Logger to generate log file?


Regards
Sunil Kumar Gupta
16 years ago
Our Requirement is
1) we have to use same java file i e constraint
2) we have to give input through batch file or ant file or any other means ie we can write our file in different package which can extend this file but the java file I have mentioned above we can not modify single word.

thanks and Regards
Sunil
17 years ago
Java file: ConsoleInputReader.java which is prompting us for key Input.Our requirement is that we can not modify this file as you can think as
venodor specific file.

our requirement is that using batch file or ant file or any other means without modifying this java file we have to print the name variable of this java file


import java.io.*;

public class ConsoleInputReader
{
public static void main(String[] args) throws Exception
{
inputProcess();
}

static void inputProcess() throws Exception
{
System.out.println("Please Enter your name");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String name = br.readLine();
System.out.println("Your Name is "+ name);
}
}

Awaiting for reply.

Thanks and Regards
Sunil
17 years ago
import javax.enterprise.deploy.shared.factories.DeploymentFactoryManager;
import javax.enterprise.deploy.spi.DeploymentManager;
import javax.enterprise.deploy.spi.factories.DeploymentFactory;
import java.util.jar.JarFile;
import java.io.*;
import java.util.jar.*;

public class JSR88
{
public static void main(String args[]) throws Exception
{
// Get the DeploymentFactory implementation class from the MANIFEST.MF file.
JarFile wjmxappJar = new JarFile(new File("wjmxapp.jar"));
java.util.jar.Manifest manifestFile = wjmxappJar.getManifest();
Attributes attributes = manifestFile.getMainAttributes();
String key = "J2EE-DeploymentFactory-Implementation-Class";
String className = attributes.getValue(key);

// Get an instance of the DeploymentFactoryManager
DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();

// Create an instance of the WebSphere Application Server DeploymentFactory.
Class deploymentFactory = Class.forName(className);
DeploymentFactory deploymentFactoryInstance = (DeploymentFactory) deploymentFactory.newInstance();

// Register the DeploymentFactory instance with the DeploymentFactoryManager.
dfm.registerDeploymentFactory(deploymentFactoryInstance);

// Provide WebSphere Application Server URL, user ID, and password.
// For more information, see the step that follows.

System.setProperty("com.ibm.SOAP.ConfigURL", "C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\default\\properties\\soap.client.props");
//System.out.println("property value..."+System.getProperty("com.ibm.SOAP.ConfigURL"));

DeploymentFactory[] dfs=dfm.getDeploymentFactories();

DeploymentManager deploymentManager= dfs[0].getDeploymentManager("deployer:WebSphere:localhost:8880","admin","admin");

// DeploymentManager deploymentManager= dfs[0].getDeploymentManager("deployer:Websphere:localhost:2809?connectorType=RMI","","");
System.out.println("Successfull...");
}

}

The Error Message is as Follows:

Jan 6, 2006 5:12:57 PM com.ibm.websphere.management.AdminClientFactory
WARNING: ADMC0046W
Jan 6, 2006 5:12:57 PM com.ibm.ws.management.application.j2ee.deploy.spi.factori
es.DeploymentFactoryImpl
SEVERE: ADMJ1002ESEVERE: ADMJ1002E
Exception in thread "main" javax.enterprise.deploy.spi.exceptions.DeploymentMana
gerCreationException: ADMJ1002E: An error occurred creating the application depl
oyment manager. com.ibm.websphere.management.exception.ConnectorException: Could not create SOAP Connector to connect to host localhost at port 8880 with SOAP C
onnector security enabled

at com.ibm.ws.management.application.j2ee.deploy.spi.factories.Deploymen
tFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:193) at JSR88.main(JSR88.java:37)


If some one knows How to Instantiate he DeploymentManager please help me

Thanks Regards
Sunil Gupta
18 years ago
Yes You are right if you are talking with respect to javax.servlet.* Package. WE are having 4 Wrappers class.Generally used when you want to give your own implemetation for HttpServletRequest or HttpServletResponse methods.
18 years ago
Apart from Mark reply I want to add some more points

AppServer provides a lot of functioanlity which is not available with web server. If you want to use that functioanlity with Web server than you have to code yourself. AppServer is making the coders life simple so they can put their effort on logic.
18 years ago
It depends on your need and the context in which you are using. It seems you can put your that object with Context.For each WebApp your are having only One ServleContext.
18 years ago
Same Code I have compiled in java version 1.4.2_04. I did not get any warning, note etc.

It seems it just Note, probably yu can ignore it.
18 years ago
A lots of congratulations Anitha securing very good percentage. Your certification strategy is appeciable.please share your exam notes at covansys_skg@rediffmail.com will be appreciable.

Regards
Sunil Gupta