Ravi Choudhary

Greenhorn
+ Follow
since Sep 03, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Ravi Choudhary



Hi Vineet,



Hope above code will work for you.
5 years ago
JSF
Thanks Levytskyi for your quick response.


But this will not solve my problem, actually this is happening on each of the action of that page ( i.e New Regisgration , forgot password etc) so I am looking any thing where i can disable/enable session out in application.

5 years ago
JSF
Hi Everybody,

I have one login page of JSF application. Once I left login page idle for 30 minutes or more than that, then input login id and password and submit button than getting message:

The website cannont display the page - an HTTP 500 error

.

while i did not configure anywhere timeout in application and I am using web sphere server for deploying the application.


Please help.





Thanks & Regards,
Ravi Kumar
5 years ago
JSF


Campbell Ritchie
Post Today 1:57:48 PM Subject: having problems with scanner variables
Welcome to the Ranch

You need to give your variables good and descriptive names (as well as CapitalLettersInClassNames). Have a look at these conventions. See if you can find the misprint where they have exchanged the words variables and constants. If you had called the Scanner object scan or input, rather than name, you would not have tried to print it out. Because you called it name, you got confused about its meaning, and that long line is what you get when you try to print the Scanner object.
I think there is a much better way to get the String than you have been told, based on the rule of thumb that you should declare local variables as late as possible; you do not need the name variable before you fill it with the input from the Scanner. That also avoids the dangerous practice of tolerating variables pointing to null.




You can get an output similar to what you had like this: System.out.println(input);





@Ritchie

Thanks Ritchie for your valuable suggestions, I will keep in mind for future reference.

6 years ago
Hi Levi,

Check the below code, I suppose this will work.
6 years ago
Hi,

Finally got the solution after a long R&D

What we did just change the module level of application to 2.4 and placed wsdl folder under WebContent.
The main issue was due to annotation processing of the application at the time of deployment.
The deployment process for the module metadata requires a new step to scan the Java annotations data
from classes that are packaged in the module.
As we are using JAX-WS as a client of WebServices it includes annotation processing. The processing of annotation of JAX-WS requires reading of wsdl files to generate update clients for each deployments. In this process of reading wsdl it was facing problem as its located in WEB-INF folder initially. I just change the location of wsdl and its working fine now.



6 years ago
When I am deploying an application on WebSphere Application Server 7.0 , I am getting zip file exception and its taking too much time to deploy/publishing application. If I publish application our application 3-4 time then the server start generating heap dumps and running out of memory. In our application we are using JAX-WS for generating Web Service Clients. We are also using JSF 1.2 for view. Any suggestion is appreciated.

Error
000000ff annotations E ClassScanner scanInputStream Exception occurred while scanning input stream:{0} java.util.zip.ZipException: ZipFile closed at java.util.zip.ZipFile.ensureOpenOrZipException(ZipFile.java:424) at java.util.zip.ZipFile.access$1100(ZipFile.java:40) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:456) at java.util.zip.ZipFile$1.fill(ZipFile.java:241) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.io.BufferedInputStream.fill(BufferedInputStream.java:229) at java.io.BufferedInputStream.read1(BufferedInputStream.java:269) at java.io.BufferedInputStream.read(BufferedInputStream.java:328) at java.io.FilterInputStream.read(FilterInputStream.java:127) at java.io.PushbackInputStream.read(PushbackInputStream.java:180) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:232) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.util.zip.ZipInputStream.read(ZipInputStream.java:157) at java.io.FilterInputStream.read(FilterInputStream.java:127) at org.objectweb.asm.ClassReader.a(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at com.ibm.ws.amm.scan.util.ClassScanner.scanInputStream(ClassScanner.java:231) at com.ibm.ws.amm.AnnotativeMetadataManagerImpl$1.applyTo(AnnotativeMetadataManagerImpl.java:259) at com.ibm.wsspi.amm.scan.context.ArchiveInputStreamData.iterate(ArchiveInputStreamData.java:241) at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.scan(AnnotativeMetadataManagerImpl.java:257) at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.scan(AnnotativeMetadataManagerImpl.java:218) at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:108) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.processAnnotations(WARFileImpl.java:297) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:243) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:173) at com.ibm.etools.commonarchive.impl.WARFileImpl.getExtensions(WARFileImpl.java:440) at com.ibm.etools.commonarchive.impl.WARFileImpl.getContextRoot(WARFileImpl.java:736) at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.loadDeploymentDescriptor(Ear50NoDDImportStrategyImpl.java:388) at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.importMetaData(Ear50NoDDImportStrategyImpl.java:253) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:377) at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:641) at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:720) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:1517) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1205) at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552) at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:271) at com.ibm.ws.management.application.client.AppInstallHelper.getEarFile(AppInstallHelper.java:157) at com.ibm.ws.webservices.admin.utils.CommonUtils.getMergeEar(CommonUtils.java:450) at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTask.performTask(ServiceIndexServerTask.java:126) at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:284) at java.lang.Thread.run(Thread.java:735)

[9/13/12 12:00:44:138 IST] 000000ff annotations E ArchiveInputStreamData iterate unable to open file iterator java.util.zip.ZipException: ZipFile closed at java.util.zip.ZipFile.ensureOpenOrZipException(ZipFile.java:424) at java.util.zip.ZipFile.access$1100(ZipFile.java:40) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:456) at java.util.zip.ZipFile$1.fill(ZipFile.java:241) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.io.BufferedInputStream.fill(BufferedInputStream.java:229) at java.io.BufferedInputStream.read1(BufferedInputStream.java:269) at java.io.BufferedInputStream.read(BufferedInputStream.java:328) at java.io.FilterInputStream.read(FilterInputStream.java:127) at java.io.PushbackInputStream.read(PushbackInputStream.java:180) at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:232) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152) at java.util.zip.ZipInputStream.read(ZipInputStream.java:157) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:103) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:81) at org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.NestedArchiveIteratorDirect.getInputStream(NestedArchiveIteratorDirect.java:117) at com.ibm.wsspi.amm.scan.context.ArchiveInputStreamData.iterate(ArchiveInputStreamData.java:238) at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.scan(AnnotativeMetadataManagerImpl.java:257) at com.ibm.ws.amm.AnnotativeMetadataManagerImpl.scan(AnnotativeMetadataManagerImpl.java:218) at com.ibm.ws.amm.commonarchive.AnnotationsProcessorImpl.merge(AnnotationsProcessorImpl.java:108) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.processAnnotations(WARFileImpl.java:297) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:243) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getDeploymentDescriptor(WARFileImpl.java:173) at com.ibm.etools.commonarchive.impl.WARFileImpl.getExtensions(WARFileImpl.java:440) at com.ibm.etools.commonarchive.impl.WARFileImpl.getContextRoot(WARFileImpl.java:736) at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.loadDeploymentDescriptor(Ear50NoDDImportStrategyImpl.java:388) at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl.importMetaData(Ear50NoDDImportStrategyImpl.java:253) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl.getDeploymentDescriptor(EARFileImpl.java:377) at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeModuleExtensions(EARFileImpl.java:641) at com.ibm.etools.commonarchive.impl.EARFileImpl.initializeAfterOpen(EARFileImpl.java:720) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openSpecificArchive(CommonarchiveFactoryImpl.java:1517) at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:1205) at com.ibm.etools.commonarchive.impl.CommonarchiveFactoryImpl.openEARFile(CommonarchiveFactoryImpl.java:552) at com.ibm.ws.management.application.client.AppInstallHelper.getArchive(AppInstallHelper.java:271) at com.ibm.ws.management.application.client.AppInstallHelper.getEarFile(AppInstallHelper.java:157) at com.ibm.ws.webservices.admin.utils.CommonUtils.getMergeEar(CommonUtils.java:450) at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTask.performTask(ServiceIndexServerTask.java:126) at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:284) at java.lang.Thread.run(Thread.java:735)
6 years ago
Hi Das,

You can refer this link for CRUD application using Struts2 and Hibernate, This example for eclipse IDE you can customize it according to Netbeans project structure.
6 years ago
Hi Vishall,

This problem is related to jar file, so verify your library for display tag.
you can download updated library from here.
6 years ago
Congrats! Micheal

only HFSJ is enough to score such %?
8 years ago
Congrats
I am also preparing for this through HFSJ book. But to ask how much time you take for it. Thanks!
8 years ago
To Know more about the annotations check out this link:webpage
8 years ago