Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] Cannot invoke "com.sun.faces.config.manager.FacesSchema.loadSchema()" because "schemaId" is null|#]

Hello, Hang-Hsin Yang,

I think it's better to raise your issue in the issue tracker on the GlassFish repository: https://github.com/eclipse-ee4j/glassfish/issues

The developer team is more active there and it's more convenient to discuss issues with GlassFish there. This mailing list is better to discuss general questions about GlassFish project and ideas on how to improve GlassFish in the future.

All the best,
Ondro

On Thu, Oct 12, 2023 at 3:09 AM allenyang--- via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:

Hello,

 

I have been using Glassfish since 2014. I am now migrating my project from Glassfish 4 to Glassfish 7.0.9. My project includes several ‘facelet-taglib’ files. I got an exception when I run my project on Netbeans 19.

 

Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'file:/C:/Users/allen/Documents/projects/emlucy/TagLib/TagLib/target/TagLib-1.0/WEB-INF/mytagLab.xml': Cannot invoke "com.sun.faces.config.manager.FacesSchema.loadSchema()" because "schemaId" is null|#]

 

Here is the content of the web.xml.

 

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns=https://jakarta.ee/xml/ns/jakartaee

   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

   xsi:schemaLocation=https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd

   version="6.0">

    <session-config>

        <session-timeout>

            30

        </session-timeout>

    </session-config>

    <welcome-file-list>

        <welcome-file>index.html</welcome-file>

    </welcome-file-list>

    <context-param>

        <param-name>jakarta.faces.FACELETS_LIBRARIES</param-name>

        <param-value>/WEB-INF/mytagLab.xml</param-value>

    </context-param>

</web-app>.

 

Here is the content of the pom.xml.

 

<project xmlns=http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

         xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd>

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.snfsoft</groupId>

    <artifactId>TagLib</artifactId>

    <version>1.0</version>

    <packaging>war</packaging>

    <name>TagLib-1.0</name>

   

    <properties>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <jakartaee>10.0.0</jakartaee>

    </properties>

   

    <dependencies>

        <!--ok list start -->

        <dependency>

            <groupId>org.primefaces</groupId>

            <artifactId>primefaces</artifactId>

            <version>10.0.0</version>

            <classifier>jakarta</classifier>

        </dependency>

        <!--ok list end -->

        <dependency>

            <groupId>jakarta.platform</groupId>

            <artifactId>jakarta.jakartaee-api</artifactId>

            <version>10.0.0</version>

            <type>jar</type>

        </dependency>

    </dependencies>

    <build>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-compiler-plugin</artifactId>

                <version>3.8.1</version>

                <configuration>

                    <source>11</source>

                    <target>11</target>

                </configuration>

            </plugin>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-war-plugin</artifactId>

                <version>3.3.2</version>

            </plugin>

        </plugins>

    </build>

</project>

 

 

Thank you very much.

Hang-Hsin Yang

 

_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

Back to the top