eclipse-ee4j / jakartaee-examples Goto Github PK
View Code? Open in Web Editor NEWJakarta EE Examples
License: Other
Jakarta EE Examples
License: Other
I would like to suggest correcting the values of mainClass in pom.xml files in tutorial/jms module which have this element.
java.lang.ClassNotFoundException occured when I executed jar files generated after building simple module in tutorial/jms module following the tutorial. (I used appclient command of GlassFish)
This was resolved by modifying the value of mainClass element. For example,
jakartaee-examples/tutorial/jms/simple/asynchconsumer/pom.xml contains the following:
jakarta.examples.tutorial.asynchconsumer.AsynchConsumer
The correct class name would be jakarta.tutorial.asynchconsumer.AsynchConsumer.
Other child modules than simple in tutorial/jms, too, seem to have incorrect mainClass value which does not match with the name of corresponding main class. An extra "examples" part as a fully-qualified class name for mainClass element if any.
Thank you,
Instead of linking to the readme file in each module, it'd be more useful to go to the module directory since GitHub shows the content of the readme file anyway. Also, some of the links are broken.
ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven3-plugin:1.10.6:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven3-plugin:1.10.6:redeploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.glassfish.GlassFish7xInstalledLocalDeployer for the parameters (container [id = [glassfish7x]], deployer type [installed]).: InvocationTargetException: The container configuration directory "C:\Users\andyt\Desktop\jakartaee-examples\tutorial\web\faces\hello1/target/glassfish7/glassfish/domains" does not exist. Please configure the container before attempting to perform any local deployment. Read more on: https://codehaus-cargo.github.io/cargo/Local+Configuration.html -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
I followed all the steps in the tutorial, but when trying to build the first example, I get this error. Any help would be appreciated :)
Thank you!
jakartaee-examples/tutorial/jaxws/helloservice-war
/pom.xml
modify jakarta.examples.tutorial.helloservice.Hello
as jakarta.tutorial.helloservice.Hello
Issue with Dukes-bookstore:
I thought managed beans declared in faces-config.xml were still allowable in Jakarta 10.
The image map in index.xhtml does not work because none of the managed beans in faces-config.xml get created. Test this by adding an expression language test for null for one of the managed beans from faces-config.xml to the index.xhtml page. For example, in the index.xhtml page add the following line after the second <h:form> element:
<h:outputText value=" Book201 eq null #{Book201 eq null}"/>
Next, deploy the war and view the outputText below the blue background image.
Tested with:
Eclipse GlassFish 7.0.13 (commit: 5829ac5e2aed76402d08dc51752223ccb72ff4ae)
Jakarta 10
Netbeans 21, JDK 21.0.2 Maven (Bundled) 3.9.6
Netbeans 20, JDK 21.0.2, Maven (Bundled) 3.9.5
Netbeans 19, JDK 17.08, Maven (External) 3.8.8
Currently, I am working on an Issue of JakartaEE's tutorial project. According to that issue I have to change all files or folders with name or containing artifact jaxrs
with rest
.
For the same can I change the folder name of https://github.com/eclipse-ee4j/jakartaee-examples/tree/main/tutorial/jaxrs with https://github.com/eclipse-ee4j/jakartaee-examples/tree/main/tutorial/rest.
Issue reference:- https://github.com/eclipse-ee4j/jakartaee-examples/tree/main/tutorial/jaxrs
Hello,
i wanted to build the master (tutorial). Here I used the following maven command to run the tests:
mvn -P glassfish-ci-managed,windows test
While building some projects it came to errors, because
some package references in some pom files are not correct:
tutorial\jaxws\helloservice-war\pom.xml
jakarta.examples.tutorial.helloservice.Hello => jakarta.tutorial.helloservice.Hello
tutorial\jaxws\hello-appclient\pom.xml
jakarta.examples.tutorial.hello.appclient.HelloAppClient
= >
jakarta.tutorial.hello.appclient.HelloAppClient
tutorial\jaxws\hello-webclient\pom.xml
jakarta.examples.tutorial.helloservice.endpoint
= >
jakarta.tutorial.helloservice.endpoint
Maybe I also did something wrong while building and someone can help me.
I also noticed that in the parent pom the following propertie.
is defined:
<glassfish.embedded.version>6.0.0</glassfish.embedded.version>
I could not find the artefact with version 6.0.0 on mavenrepository.com and I then took version 6.2.5.
I am glad about a feedback
Emilio
POM successful Build and run on Tomcat 10.0.27 the following Error is displayed
Dec 29, 2022 4:58:43 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet [Faces Servlet]
java.lang.ClassNotFoundException: com.sun.faces.util.Util
at jakarta.faces.CurrentThreadToServletContext.getFactoryFinder(CurrentThreadToServletContext.java:51)
at jakarta.faces.FactoryFinder.getFactory(FactoryFinder.java:259)
at jakarta.faces.webapp.FacesServlet.acquireFacesContextFactory(FacesServlet.java:493)
at jakarta.faces.webapp.FacesServlet.init(FacesServlet.java:342)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1165)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1118)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:789)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:128)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:119)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:356)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:870)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1762)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:833)
**Updated the POM with**
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.20</version>
</dependency>
java.lang.IllegalStateException: Error starting child
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1027)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2001)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:828)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:478)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1708)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:320)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/annotatedServerEndpoint-9-SNAPSHOT]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
... 37 more
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletRequestListener
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2510)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:877)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1413)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:535)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:516)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150)
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1091)
at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:662)
at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5169)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 38 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRequestListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
... 53 more
Hi
I am trying to use some samples from faces folder to build some composite components and notice some strange behaviour.
The example shows that a resource folder named 'ezcomp' is accessible through the path 'jakarta.faces.composite.ezcomp' but in my environment this is only possible with the path 'jakarta.faces.composite/ezcomp'. Is it some documentation mistake or a faces bug?
My environment is:
Windows 10 (64bits)
Embedded Apache Tomcat v10.1.24
Mojarra v4.0.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.