Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

siva kumarl

Greenhorn
+ Follow
since Nov 29, 2008
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 siva kumarl

Hi Friends,

I am newbie to Maven, i have create a web applicaiton structure using maven and added all dependencies, java files are compiled fine, but i am seeing lot a errors in JSP files because i have imported so many class files in JPS's. So JSP files are not able to identify the java files. Please let me know the configuration for identifying the java class in jsp files.. so that all the errors will clear.

Thanks in Advance
Siva kumar.
5 years ago
Hi Friends,

I am converting Word document to PDF , but while converting PDF text alone is writing to PDF but not images. Could you please let me know how to convert word to PDF along with images using POI API. Please find the below code which i am using .



Thanks in Advance,
Siva Kumar.
5 years ago
Hi Vijay Chandran,

I am also facing the same problem for wiriting log in Websphere 7.0 server, and tried all the above metioned settings but it is not working. Could you please let me know the changes you have made.

Thanks in Advance,
Siva Kumar.
5 years ago
Hi Basudev,

Thanks for your reply. All applications in same profile, will this make any problem. I hope this will not a problem. Could you please let me know if any alternate solution.


Thanks
Siva Kumar.
5 years ago
Dear Friends,

I am not able to write log file with specifed location, I have 2 EAR applications deployed in Websphere Application Server 7.0. Each EAR file contian a WAR file inside it. The log files have different path for all the applications. For Example:

Following is the log file path mentioned in the log4j.properties file for all the 3 EAR applications:

EAR application 1: log4j.appender.log.File=C:/EAROne/log/EAROne.log
EAR application 2: log4j.appender.log.File=C:/EARTwo/log/EARTwo.log

The problem is, if i execute any EAR application. all the logs are written in the same log file. Suppose if i execute application EAROne, the logs generated from the application are written in the EAROne.log. Similarly, if i execute applications EARTwo and EARThree, the logs generated from those applications are also written in the same EAROne.log file.

Even i have change the parent class loading settings for the server as below

Servers -> Server Types -> WebSphere application servers -> servername -> General Properties
Server-specific Application settings as
Classloader policy : Multiple
Class loading mode : Classes loaded with local class loader first(parent last).

How to make the applications write their respective logs in their own log files according to the log file paths mentioned in their respective log4j.properties file?


Thanks in Advance,
Siva Kumar.
5 years ago
Hi Paul,
I hope you understand almost my problem , yes exactly correct what you have mentioned , but the HTTP session associated with the request to the application that includes in the iframe is changing every time . I doesn't understand why it's happening so. And this is working for some systems and not for some systems.

Thanks in Advance,
Siva kumar.
7 years ago
Source is different application. I think source is not a matter, whenever IFRAME point to application , session will intiate and if user gives the request on the rendered application again the session is intiating as new session . This is the exact problem.


Thanks in Advacne.
Siva kumar.
7 years ago
Hi Bear,
But session sharing is working in some systems in IE browser. As per your statement it should not work in all the systems , i doesn't understand why it is happening so . Do you have any idea regarding this , and one more thing i am not sharing the session between the two applications . I am using the session of same application .

Thanks in Advance.
Siva Kumar.

7 years ago
Hi Sourabh,

Thanks for your reply, I am not sharing the session , i have included the application in IFRAME , it is just like a open application in seperate browser , the request coming from IFRAME is resetting every time means it is just like a new session or new request. So i need the synchronize the session/request.

Thanks in Advance,
Siva kumar.
7 years ago
Hi Experts,

I am facing a session problem with IFRAME , i have two applications , i have used the IFRAME to include the Application 2 in Application 1 , while posting the request from first application through IFRAME , each and every request posted is treating as a new request , due to this i am facing session maintainence problem , i have stored some data in session , but each and every request the session is coming as a new session , so i am unable to retrieve the session data . I have tried with cookies , for cookies also i am facing the same problem. I have searched in google, i didn't find any solution . Kindly suggest me friends how to handle this situation.

Thanks in Advance,
Siva kumar.
7 years ago
Hi Friends,

I need to compare the two excel sheets ,i.e.,i need to check row1 from sheet1 and row1 from sheet2 is equal or not.
kindly provide the details.


Thanks in Advacne
Siva kumar
7 years ago
Hi Friends,

I am Siva, i am new to WebSphere , while i am running admin console using RAD 7.0 , admin is dispalying but while i am clicking any one of the links , it is display as 404 error . kindly find the below error details

Error 404

An error occurred while processing request: /admin/ApplicationServer.content.main

Message: File not found: /ApplicationServer.content.main

Kindly suggest me how to rectify this , i have searched a lot , i didn't find any solution


Thanks in Advance,
Siva kumar
7 years ago
Hi Friends,
I generated a keystore file(.jks) which contains both public key and private key, i converted it .pfx file, but this contains only private, now i have to import the public key into .pfx , i am getting the following error. Friends kindly help me. please find the below errordetails:

c:/>keytool -import -v -trustcacerts -alias kiwiservice -file kiwiclient.cer -keyst
ore kiwiservice.pfx -storetype pkcs12
Enter keystore password:********
Owner: CN=CLIENT, OU=YALAMANCHILI_CLIENT, O=YSE, L=VSP, ST=AP, C=IN
Issuer: CN=CLIENT, OU=YALAMANCHILI_CLIENT, O=YSE, L=VSP, ST=AP, C=IN
Serial number: 4b31954e
Valid from: Wed Dec 23 09:28:06 IST 2009 until: Tue Dec 22 09:28:06 IST 2015
Certificate fingerprints:
MD5: C8:C9:89:E2:CA:F9:30:AF:7A0:9AD:5F:F5:18:78
SHA1: BA:F9:F8:82A:54:26:1B:2B:22:18:88:AA:792:E30:13:F1:B9
Signature algorithm name: SHA1withRSA
Version: 3
Trust this certificate? [no]: y
keytool error: java.security.KeyStoreException: TrustedCertEntry not supported
java.security.KeyStoreException: TrustedCertEntry not supported
at com.sun.net.ssl.internal.pkcs12.PKCS12KeyStore.engineSetCertificateEn
try(PKCS12KeyStore.java:620)
at java.security.KeyStore.setCertificateEntry(KeyStore.java:941)
at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1954)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:814)
at sun.security.tools.KeyTool.run(KeyTool.java:171)
at sun.security.tools.KeyTool.main(KeyTool.java:165)


kindly help me to import .cer into .pfx file

Thanks in Advance
---------------
Siva
8 years ago
Request is as follows:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
s:mustUnderstand="1">
<o:BinarySecurityToken
u:Id="uuid-44be1d15-8af6-429e-a633-4be8f1e739f5-2"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">
MIICKDCCAZECBEsMz8YwDQYJKoZIhvcNAQEEBQAwWzELMAkGA1UEBhMCSU4xCzAJBgNVBAgTAkFQMQwwCgYDVQQHEwNWU1AxDDAKBgNVBAoTA1lTRTEMMAoGA1UECxMDWVNFMRUwEwYDVQQDEwxZQUxBTUFOQ0hJTEkwHhcNMDkxMTI1MDYzMzQyWhcNMTUxMTI0MDYzMzQyWjBbMQswCQYDVQQGEwJJTjELMAkGA1UECBMCQVAxDDAKBgNVBAcTA1ZTUDEMMAoGA1UEChMDWVNFMQwwCgYDVQQLEwNZU0UxFTATBgNVBAMTDFlBTEFNQU5DSElMSTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAitT4Erhz3J239bbecmJubqOY/Y08CGyeX+KGMo2TqQfVyX+DXXuUsFtyp7PZvs40RH7NfL1d7eJYJPAoxp8GpjbxJ2DDyVTnCgiK3FIbcU8tpEUMRbS9Y/rDxuImwRBA0M7yrMUI2g8GgAqEkXAZ80V/czzm1DRGC9H/nqMXxT0CAwEAATANBgkqhkiG9w0BAQQFAAOBgQBrvfVYiIHsSTXLu/WXwUXXAOx0G7dtp4HBjZUlTF1HeDWJAX3RjuDBQeEfpYa2yFDlN2dsItxS9jxyrkOnxdFlswbOa/eTq3j6PXl7s2Vx6d/PPupyJV5vf4CHp1hYIAeTIrYJf6Q3eLKTjCjt09to9Ygy8zDMdpcjadE0yuIS/g==
</o:BinarySecurityToken>
<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#"
Id="_0">
<e:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<o:SecurityTokenReference>
<X509Data>
<X509IssuerSerial>
<X509IssuerName>
CN=YALAMANCHILI, OU=YSE, O=YSE,
L=VSP, S=AP, C=IN
</X509IssuerName>
<X509SerialNumber>
1259130913
</X509SerialNumber>
</X509IssuerSerial>
</X509Data>
</o:SecurityTokenReference>
</KeyInfo>
<e:CipherData>
<e:CipherValue>
BrnZKoPbH5awJ2AAPzWgU/1rl41xYreGsY0DsIEDj/cqajnvvR7DAIbOKAFCdo2qMy3j+NBIDTqDAY1RjqtyoeLqMa1DFnaOwpTYYZ9FIgpp1ulSfWwGf91M2f44NNrKB7RG7EWhu4HSwH03VMpW+M+PyLSwaj1bW/V/GpzhjnY=
</e:CipherValue>
</e:CipherData>
<e:ReferenceList>
<eataReference URI="#_2" />
</e:ReferenceList>
</e:EncryptedKey>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="#_1">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>
T8OEOfpC22IfegITR83D0f+jcsQ=
</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>
XPD5JQT8d7xttnoQy5U6YGtigtOQjPEiKcKeuICqSLcD3adkFl+Vavk+ZOEEQnV9Gts976tvzlfD
FWOn59lmcun4pqfF3sD2Obts7/e8DcPUXu1VFveKrAeB1gjpP3Iyd8HMjK3PbfyCvEVNfVnhSX61xGelH
Z78tUYYI8RG/wQ=
</SignatureValue>
<KeyInfo>
<o:SecurityTokenReference>
<o:Reference
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
URI="#uuid-44be1d15-8af6-429e-a633-4be8f1e739f5-2" />
</o:SecurityTokenReference>
</KeyInfo>
</Signature>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" u:Id="_1">
<e:EncryptedData xmlns:e="http://www.w3.org/2001/04/xmlenc#"
Id="_2" Type="http://www.w3.org/2001/04/xmlenc#Content">
<e:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" />
<e:CipherData>
<e:CipherValue>
dBLGv8DQOuX+39y5YOVrvzDl3ILy2sHJHWf9zsIqtB/ro1rJZaH2nRHL86/cClzEJDUr9jRn
+7+mryNg9oz1FIsoGY/BkCVm3B2kh0ea6F2U1u+ejWjuA4ROi6Lc8UBwalFMBCrPhE2KYgii
b0bX18RBUZReL7gIQ20vz9RgjOiuHGq9bTQbmX18uWH3B9m7ZuHKEvWbKmCcpNiTIFMT1gC2TwUKyw
Cx+SB0k4/BiX0yf5nqGVCr+MzGPsg3vPZCg0orfssW6jJqk6rxC8IrrHauLdgMjfRaawAy
p52jghtuUJvNAuJKh7rXuiJ13rf4wRLKOAEafBbFSaGmiQlbhE3xQMi/woJG005GXWR9g1
PspUSQckkST9hOQeRllbaGydUy9jqIzdOHSgIktk6yA505PoyXDigjZt2sAvnAGpx81QUdHt2PtVCo
/jmMZ4ehAJDNWpdgPL/rvHdch9An56umh5+aQnxTghUGrniuneUXBWphfREe86znk9tgOnLUmzp+61
WIPiQxhwWv+a+0CncGLxDnnh4d3XMOfkCYfwm/ikWaYAx1YPHMYdyXIgzFYrcJwzFCn1CzNeryF5jz
SWQPrJs5B3YEmI0bwMXJAKpcWc6OkkEXJbgUcEyTkazpLx215CCYaO3aTspOCJoR0Q==
</e:CipherValue>
</e:CipherData>
</e:EncryptedData>
</s:Body>
</s:Envelope>
8 years ago
Hi Friends,
I have developed a webservice with Encrypt and Signature tokens as security, my client is .NET, while connecting i am getting an error as below

2009-12-16 13:39:45,604 [TP-Processor2] ERROR org.apache.axis2.engine.AxisEngine - WSDoAllReceiver: security processing fail
ed
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed

Caused by: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid; nested exception is:
java.lang.Exception: alias is null
Caused by: java.lang.Exception: alias is null

How to solve this situation. kindly help me

Thanks in advance
-----------
Siva kumar

8 years ago