Monday, May 25, 2015

could not find a valid parent module to add to the server websphere 8.5 RAD 8.5

In the parent project, under properties -> deployment assembly, add your "web" project. Also check off your "web" project under Project References.
Hopefully this will cause your app to be employable to WAS...

Wednesday, May 20, 2015

Problems to org/richfaces/VersionBean.VERSION application in Websphere 8.5

Re: Problems to org/richfaces/VersionBean.VERSION  application in Websphere 8.5

Mar 10, 2012  in response to SystemAdmin
Under RAD - If you deployed the app with an ear.
1) Right click, menu JavaEE, Open Websphere Application Server Deployment
2) Choose the panel: Shared Library
2.1) button Add
2.2) Fill the required fields
3) Choose the panel: Application
3.1) Classloader mode: PARENT_LAST
3.2) WAR classloader policy: APPLICATION
3.3) You can also try these above steps by selecting the war entry
4) On you web project (war), right click, menu Properties
4.1) Projects facets
4.2) In my case, All JavaServer faces check boxes are unchecked
5) Redeploy your ear or restart your server

OR

Under WAS:
1) Under RAD produce a Ear File
2) Start the admin console
3) Panel: Environment (at right)
4) Sub-menu: Shared libraries
5) Button New and select the required fields. Read with attention the tooltip on each field
6) Check the box Class Loading - Use an isolated class loader for this shared library
7) Panel: Applications > Application Types > WebSphere enterprise applications
8) Button: Install, select your ear and Next
9) Select the radio button: Detailed - Show all installation options and parameters.
10) Follow the steps - moslty default value are ok
10.1) Step 4 Map shared libraries
10.2) Select your ear
10.3) Button: References Shared Libraries
10.4) Select your library previously created and OK button
10.5) Follow the next steps and start your ear file

10.a) If it does not work, then try to create a class loader
Panel: Servers > Server Types > WebSphere application servers > Your server (server1)
10.b) Panel: Server Infrastructure > Java and Process Management > Class loader
10.c) Button New: > Class loader order > Classes loaded with local class loader first (Parent Last)
10.d) Apply Button
10.e) Then at the same panel: Shared library references link
10.f) Button Add and select your shared library, OK and Save
10.g) Restart your server and your application

Other resources:
- http://publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=%2Fcom.ibm.websphere.express.iseries.doc%2Finfo%2Fiseriesexp%2Fae%2Ftweb_jsf.html
- http://wasbehindtheglass.blogspot.com/2011/11/myfaces-20-and-websphere-application.html
- http://wiki.apache.org/myfaces/Websphere_Installation.

If IBM people can complete the answer, it would be nice.

Monday, May 11, 2015

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor

2012-12-09 06:16:15,734 [main] INFO  org.springframework.context.support.AbstractApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@b24044e: startup date [Sun Dec 09 06:16:15 EET 2012]; root of context hierarchy
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:121)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:168)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:167)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:195)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:527)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:441)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    at com.nortal.pirs.test.independant.Test4.main(Test4.java:9)
Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 10 more

http://stackoverflow.com/questions/13784612/spring-cant-find-configuration-in-path

Monday, April 6, 2015

Error. Project facet Java version 1.7 is not supported in Eclipse

Go to Windows Preferences > Server > run time Environment .update the JRE as per project JRE

Sunday, April 5, 2015

Thursday, March 26, 2015

Tomcat 7 - Servlet 3.0: Invalid byte tag in constant pool

metadata-complete="true" 
to your web.xml should sort the issue

Wednesday, February 11, 2015

java.lang.RuntimeException: ERROR: Failed to recover corrupt cache entry

java.lang.RuntimeException: ERROR: Failed to recover corrupt cache entry
                at com.sun.deploy.cache.CacheEntry.recover(Unknown Source)
                at com.sun.deploy.cache.CacheEntry.getManifest(Unknown Source)
                at com.sun.deploy.cache.CachedJarFile.getManifest(Unknown Source)
                at com.sun.deploy.security.DeployURLClassPath$JarLoader$2.getManifest(Unknown Source)
                at java.net.URLClassLoader.defineClass(Unknown Source)
                at java.net.URLClassLoader.access$000(Unknown Source)
                at java.net.URLClassLoader$1.run(Unknown Source)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.net.URLClassLoader.findClass(Unknown Source)
                at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.ClassLoader.loadClass(Unknown Source)

Ans :
http://www.java.com/en/download/help/plugin_cache.xml