JBoss Community

Re: jBPM5.3 and EJB3

created by ous2k in jBPM - View the full discussion

i've changed my project to maven one but i'm getting this execption  i've read about it is eclipse plugins dependecy jdt, i've add it but i staill have exeption

it seems that there are others JDT eclipse dependency can you give some help please:

ide:netbeans

OS:win7

pom.xml

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

<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>

    <parent>

        <artifactId>ocana</artifactId>

        <groupId>com.mycompany</groupId>

        <version>0.0.9-SNAPSHOT</version>

    </parent>

 

 

    <groupId>com.mycompany</groupId>

    <artifactId>ocana-web</artifactId>

    <version>0.0.9-SNAPSHOT</version>

    <packaging>war</packaging>

 

 

    <name>ocana-web</name>

 

 

    <properties>

        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>

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

        <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>

    </properties>

    <repositories>

 

 

<!--         JBOSS REPOSITORY-->

        <repository>

            <id>JBoss Repo</id>

            <url>http://repository.jboss.com/maven2</url>

        </repository>

       

        <repository>

            <id>JBoss</id>

            <name>JBoss repository</name>

            <url>https://repository.jboss.org/nexus/content/groups/public-jboss</url>

        </repository>                

        <repository>

            <url>http://download.java.net/maven/2</url>

            <id>hibernate-support</id>

            <layout>default</layout>

            <name>Repository for library Library[hibernate-support]</name>

        </repository>

        <repository>

            <id>prime-repo</id>

            <name>PrimeFaces Maven Repository</name>

            <url>http://repository.primefaces.org</url>

            <layout>default</layout>

        </repository>

        <repository>

            <url>http://download.java.net/maven/2/</url>

            <id>jsf20</id>

            <layout>default</layout>

            <name>Repository for library Library[jsf20]</name>

        </repository>

        <repository>

            <url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url>

            <id>eclipselink</id>

            <layout>default</layout>

            <name>Repository for library Library[eclipselink]</name>

        </repository>

       

    </repositories>

    <dependencies>

       

<!--         ocana-EJB module -->

        <dependency>

            <groupId>com.mycompany</groupId>

            <artifactId>ocana-ejb</artifactId>

            <version>0.0.9-SNAPSHOT</version>

            <scope>provided</scope>

            <exclusions>

                <exclusion>

                    <artifactId>hibernate-core</artifactId>

                    <groupId>org.hibernate</groupId>

                </exclusion>

            </exclusions>

        </dependency>

        <!-- Persistence Dependencies -->

        <dependency>

            <groupId>org.hibernate</groupId>

            <artifactId>hibernate-entitymanager</artifactId>

            <version>4.1.0.Final</version>

            <exclusions>

                <exclusion>

                    <artifactId>hibernate-core</artifactId>

                    <groupId>org.hibernate</groupId>

                </exclusion>

            </exclusions>

        </dependency>

       

        <dependency>

            <groupId>org.hibernate.common</groupId>

            <artifactId>hibernate-commons-annotations</artifactId>

            <version>4.0.1.Final</version>

        </dependency>

       

        <dependency>

            <groupId>org.hibernate.javax.persistence</groupId>

            <artifactId>hibernate-jpa-2.0-api</artifactId>

            <version>1.0.1.Final</version>

        </dependency>

 

 

        <dependency>

            <groupId>org.hibernate</groupId>

            <artifactId>hibernate-core</artifactId>

            <version>4.1.1.Final</version>

        </dependency>

       

        <dependency>

            <groupId>org.hibernate</groupId>

            <artifactId>hibernate-testing</artifactId>

            <version>4.1.1.Final</version>

        </dependency>

 

 

        <dependency>

            <groupId>org.javassist</groupId>

            <artifactId>javassist</artifactId>

            <version>3.16.1-GA</version>

        </dependency>

 

 

        <dependency>

            <groupId>org.hibernate</groupId>

            <artifactId>hibernate-validator</artifactId>

            <version>4.2.0.Final</version>

        </dependency>

       

        <dependency>

            <groupId>org.jboss.shrinkwrap</groupId>

            <artifactId>shrinkwrap-api</artifactId>

            <version>1.0.0-cr-3</version>

        </dependency>

 

 

        <dependency>

            <groupId>org.jboss.shrinkwrap</groupId>

            <artifactId>shrinkwrap-impl-base</artifactId>

            <version>1.0.0-cr-3</version>

        </dependency>

                                                                   

           

        <!-- Validation-->

        <dependency>

            <groupId>javax.validation</groupId>

            <artifactId>validation-api</artifactId>

            <version>1.0.0.GA</version>

        </dependency>

       

        <!--EJB3 persistance -->

        <dependency>

            <groupId>org.hibernate</groupId>

            <artifactId>ejb3-persistence</artifactId>

            <version>1.0.1.GA</version>

        </dependency>

      

        <!--MySQL Driver-->

        <dependency>

            <groupId>mysql</groupId>

            <artifactId>mysql-connector-java</artifactId>

            <version>5.1.6</version>

        </dependency>

       <!-- Transaction Management -->

        <dependency>

            <groupId>javax.transaction</groupId>

            <artifactId>jta</artifactId>

            <version>1.0.1B</version>

        </dependency>

        <dependency>

            <groupId>org.jboss.spec.javax.transaction</groupId>

            <artifactId>jboss-transaction-api_1.1_spec</artifactId>

            <version>1.0.1.Final</version>

        </dependency>

       

       <!-- Logging-->

        <dependency>

            <groupId>commons-logging</groupId>

            <artifactId>commons-logging</artifactId>

            <version>1.1.1</version>

        </dependency>

       

        <dependency>

            <groupId>commons-logging</groupId>

            <artifactId>commons-logging-api</artifactId>

            <version>1.1</version>

        </dependency>

       

        <dependency>

            <groupId>org.jboss.logging</groupId>

            <artifactId>jboss-logging</artifactId>

            <version>3.1.0.GA</version>

        </dependency>       

       

        <dependency>

            <groupId>dom4j</groupId>

            <artifactId>dom4j</artifactId>

            <version>1.6.1</version>

        </dependency>

       

        <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-api</artifactId>

            <version>1.6.4</version>

        </dependency>

       

        <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-log4j12</artifactId>

            <version>1.6.4</version>

        </dependency>

       

        <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>jcl-over-slf4j</artifactId>

            <version>1.6.4</version>

        </dependency>

                                   

       

        <!--Test-->

        <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.10</version>

        </dependency>

                   

       <!-- WEB -->

        <dependency>

            <groupId>javax</groupId>

            <artifactId>javaee-api</artifactId>

            <version>6.0</version>

            <type>jar</type>

        </dependency>

        <dependency> 

            <groupId>javax</groupId>

            <artifactId>javaee-web-api</artifactId>

            <version>6.0</version>

            <scope>provided</scope>

        </dependency>

     

                    <!-- primefaces -->

        <dependency>

            <groupId>org.primefaces</groupId>

            <artifactId>primefaces</artifactId>

            <version>3.1.1</version>

                              <!-- <scope>compile</scope> -->

        </dependency>

                    <!-- JSF 2 -->

        <dependency>

            <groupId>com.sun.faces</groupId>

            <artifactId>jsf-api</artifactId>

            <version>2.1.2</version>

        </dependency>

 

 

        <dependency>

            <groupId>com.sun.faces</groupId>

            <artifactId>jsf-impl</artifactId>

            <version>2.1.2</version>

        </dependency>

                    <!-- JSTL 1.1 -->

        <dependency>

            <groupId>javax.servlet</groupId>

            <artifactId>jstl</artifactId>

            <version>1.1.2</version>

        </dependency>

                    <!-- taglib -->

        <dependency>

            <groupId>taglibs</groupId>

            <artifactId>standard</artifactId>

            <version>1.1.2</version>

        </dependency>

 

 

        <dependency>

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

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

            <version>2.3.2</version>

            <type>maven-plugin</type>

        </dependency> 

        <!--- drools -->

        <dependency>

            <groupId>org.eclipse.jdt</groupId>

            <artifactId>core</artifactId>

            <version>3.4.2.v_883_R34x</version>

        </dependency>

       

        <dependency>

            <groupId>org.drools</groupId>

            <artifactId>knowledge-api</artifactId>

            <version>5.4.0.Beta2</version>

        </dependency>

          <!-- Internal dependencies -->

        <dependency>

            <groupId>org.drools</groupId>

            <artifactId>drools-core</artifactId>

            <version>5.2.0-SNAPSHOT</version>

        </dependency>

        <dependency>

            <groupId>org.drools</groupId>

            <artifactId>drools-compiler</artifactId>

            <version>5.2.0-SNAPSHOT</version>

        </dependency>

        <dependency>

            <groupId>org.drools</groupId>

            <artifactId>drools-decisiontables</artifactId>

            <version>5.2.0-SNAPSHOT</version>

        </dependency>

        <dependency>

            <groupId>org.drools</groupId>

            <artifactId>drools-templates</artifactId>

            <version>5.2.0-SNAPSHOT</version>

        </dependency>       

        <dependency>

            <groupId>org.swinglabs</groupId>

            <artifactId>swing-layout</artifactId>

            <version>1.0.3</version>

        </dependency>

    </dependencies>

 

 

 

    <build>

<!--        <pluginManagement>

            <plugins>

                <plugin>

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

                    <artifactId>maven-jar-plugin</artifactId>

                    <configuration>

                        <archive>

                            <manifest>

                 Needed for runExamples.sh and runExamples.bat

                                <addClasspath>true</addClasspath>

                                <classpathPrefix>../../binaries/</classpathPrefix>

                            </manifest>

                        </archive>

                    </configuration>

                </plugin>

            </plugins>

        </pluginManagement>-->

        <plugins>

<!--            <plugin>

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

                <artifactId>maven-eclipse-plugin</artifactId>

                <configuration>

                    <additionalBuildcommands>

                        <buildcommand>org.drools.eclipse.droolsbuilder</buildcommand>

                    </additionalBuildcommands>

                </configuration>

            </plugin>-->

            <!-- eclipse plugin -->

            <plugin>

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

                <artifactId>maven-eclipse-plugin</artifactId>

                <version>2.5</version>

                <configuration>

                        <!--<downloadSources>true</downloadSources>-->

                </configuration>

            </plugin>

            <plugin>

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

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

                <version>2.3.2</version>

                <configuration>

                    <source>1.6</source>

                    <target>1.6</target>

                    <compilerArguments>

                        <endorseddirs>${endorsed.dir}</endorseddirs>

                    </compilerArguments>

                </configuration>

            </plugin>

            <plugin>

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

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

                <version>2.1.1</version>

                <configuration>

                    <failOnMissingWebXml>false</failOnMissingWebXml>

                </configuration>

            </plugin>

            <plugin>

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

                <artifactId>maven-dependency-plugin</artifactId>

                <version>2.1</version>

                <executions>

                    <execution>

                        <phase>validate</phase>

                        <goals>

                            <goal>copy</goal>

                        </goals>

                        <configuration>

                            <outputDirectory>${endorsed.dir}</outputDirectory>

                            <silent>true</silent>

                            <artifactItems>

                                <artifactItem>

                                    <groupId>javax</groupId>

                                    <artifactId>javaee-endorsed-api</artifactId>

                                    <version>6.0</version>

                                    <type>jar</type>

                                </artifactItem>

                            </artifactItems>

                        </configuration>

                    </execution>

                </executions>

            </plugin>

            <plugin>

                <groupId>org.codehaus.mojo</groupId>

                <artifactId>exec-maven-plugin</artifactId>

                <configuration>

                    <executable>java</executable>

          <!-- only waltz12 is configured at the moment -->

          <!-- TODO waltz50, manners64 and manners128 -->

                    <arguments>

                        <argument>-Xms1024M</argument>

                        <argument>-Xmx1024M</argument>

                        <argument>-cp</argument>

                        <classpath/>

                        <argument>org.drools.benchmark.waltz.WaltzBenchmark</argument>

                        <argument>waltz12.dat</argument>

                    </arguments>

                </configuration>

            </plugin>

        </plugins>

    </build>

</project>


Error:

run:

org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'

          at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:277)

          at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:262)

          at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:175)

          at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:153)

          at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:252)

          at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:180)

          at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)

          at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)

          at com.himilco.ocana.workflow.core.bo.sm.ServiceNotifiedClient.createKnowledgeSession(ServiceNotifiedClient.java:37)

          at com.himilco.ocana.workflow.core.bo.sm.ServiceNotifiedClient.main(ServiceNotifiedClient.java:21)

Caused by: org.drools.RuntimeDroolsException: value '1.7' is not a valid language level

          at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.getDefaultLanguageLevel(JavaDialectConfiguration.java:161)

          at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:56)

          at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:273)

          ... 9 more

BUILD SUCCESSFUL (total time: 1 second)


Reply to this message by going to Community

Start a new discussion in jBPM at Community