J Bolla

+ Follow
since Nov 23, 2004
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by J Bolla

Form the faces config DTD

The "managed-bean-scope" element represents the scope into which a newly
created instance of the specified managed bean will be stored (unless
the value is "none"). It must be of type "ScopeOrNone".

14 years ago
Thanks Tim !
The log message that I entered for the commit was invalid. So the hook wouldnt let me commit.

Please tell me why this error occurs when I try to commit the code in svn.
Is there a way I can refer to class files in src/test/java across multiple maven modules that depend on each other ?
I want to have a base class for all the test class files that can be extended in other modules.

15 years ago
Thanks Tim, Nathan for the reply.

I mistakenly got the jars in the src/webapp/WEB-INF/lib folder. So they kept going to the final webapp in the server.

Thanks again
16 years ago
Hi All

My project has multiple modules. I want to use a particular version of a jar in the web app. I am ending up with multiple versions now. I cant even figure out where the other versions are coming from.

How can I force maven to use a single version of a jar.

16 years ago
Thanks for the reply Tim.

Looks like my source files are not being compiled properly.
16 years ago
I have the necessary jar(tomahawk.jar) in the lib folder. Still I am getting the error when I deploy the app using Maven.

It runs fine when I deploy with myeclipse.


java.lang.Error: Unresolved compilation problems:
The import org.apache.myfaces.component cannot be resolved
The import org.apache.myfaces.custom cannot be resolved
UploadedFile cannot be resolved to a type
HtmlDataTable cannot be resolved to a type
HtmlDataTable cannot be resolved to a type
hitListDataTable cannot be resolved
HtmlDataTable cannot be resolved to a type
hitListDataTable cannot be resolved or is not a field
UploadedFile cannot be resolved to a type
uploadedFile cannot be resolved
UploadedFile cannot be resolved to a type
uploadedFile cannot be resolved or is not a field
uploadedFile cannot be resolved
uploadedFile cannot be resolved
hitListDataTable cannot be resolved
hitListDataTable cannot be resolved
hitListDataTable cannot be resolved

at com.ariel.web.HitListController.<init>(HitListController.java:14)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:277)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:268)
at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)
at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:314)
at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1078)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:201)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:252)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)

Here is my pom.xml for the web module
16 years ago
Hi Sac,

I renamed appserv-ws-update.jar to appserv-w.jar

i am able to deploy the war. But the server console shows errors :

e-9f4d-6b65058b7cf4;|WebModule[/hello-jaxws]Exception sending context initialize
d event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSSe
WSSERVLET11: failed to parse runtime descriptor: java.lang.annotation.Annotation
TypeMismatchException: Incorrectly typed data found for annotation element publi
c abstract javax.xml.bind.annotation.XmlAccessType javax.xml.bind.annotation.Xml
AccessorType.value() (Found data of type Ljavax/xml/bind/annotation/AccessType;.

As a result i cant run the client.

I had read somewhere that javax.xml.bind.annotation.XmlAccessType
thing has been modified in jaxb and a latest build has to be taken..

Can anybody pls help me :roll:
17 years ago
Finally passed SCBCD after a long preparation.

Thanks to Kathy and Bert for a wonderful book. The mocks at JDiscuss.com and ejbCertificate.com were invaluable.

- I read the Mastering EJB by ed Roman ( its a great book )
- Went through the J2EE tutorial from sun (its pretty good and compact with lots of easy to understand examples)
- Tried to reproduce all the scenarios, exceptions etc in the programs that i wrote.

Thanks to all the java ranchers......

[ November 20, 2005: Message edited by: Jagdish Bolla ]
18 years ago

Both the toArray functions of the ArrayList return Object[] but the commented
line gives a runtime exception. We know that arrays cant be upcasted like the
regular datatypes.

This :

is identical to

So it seems that the assignment and casting is redundant in the
first statement.
Amazing score Ramy !!!

Way to go....

All The Best.
19 years ago
Thanks a lot Rajith, Shency and William.
19 years ago
Thanks a lot Bert.

It would have been very difficult without the K&B book and javaranch.
Please accept my sincere regards.

19 years ago
Thanks Jay. Thanks MannY.

Next Stop Is SCBCD.

I think i can trust HF EJB with my life on this one.
But just to be extra sure i am going through the Mastering EJB by Ed Roman as well.

Good Luck.
19 years ago