[Installation, Configuration & DEPLOYMENT] - log4j configuration problem
by badgerduke
Hello:
I get the following errors when I start up jBoss (4.2.1.GA):
-------------------------------------------------
ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppend
er" object is not assignable to a "org.apache.log4j.Appender" variable.
ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
My jboss-log4j.xml file is as follows:
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
|
| <appender name="HVGN" class="org.apache.log4j.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="c:/jboss-4.2.1.GA/server/hvgn/log/hvgn.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="3"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss} - [%c{1}.%M] - %p - %m%n"/>
| </layout>
| </appender>
|
| <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="c:/jboss-4.2.1.GA/server/hvgn/log/server.log"/>
| <param name="Append" value="false"/>
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
|
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="INFO"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
| <category name="org.apache">
| <priority value="INFO"/>
| </category>
|
| <category name="org.jboss.serial">
| <priority value="INFO"/>
| </category>
|
| <category name="org.jgroups">
| <priority value="WARN"/>
| </category>
|
| <category name="duke">
| <priority value="DEBUG"/>
| <appender-ref ref="HVGN"/>
| </category>
|
| <category name="org.jboss.management">
| <priority value="INFO"/>
| </category>
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| </root>
|
| </log4j:configuration>
|
------------------------------------------------
The log file for the HVGN appender is created but nothing is written to it when "duke" and descendant package class files issue log
statements. In addition, despite the error with the FILE appender,
content is still written to server.log. I don't see an error in my jboss-log4j.xml file. I tried to substitue in
"jboss.logging.appender" for the class attributes in the appenders, but I get the same errors.
Anybody got any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116002#4116002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116002
17 years
[Beginners Corner] - Problem starting service persistence.units (ClassCastExcept
by mjhammel
Does anyone have any idea where I should look for what's causing this error during deployment of my application EAR file?
I'm using JBOSS V4.2.2GA.
My persistence.xml file:
<persistence>
| <persistence-unit name="Crunch">
| <jta-data-source>java:/CrunchDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
| <property name="hibernate.connection.url" value="jdbc:mysql://localhost/crunch"/>
| <property name="hibernate.connection.username" value="root"/>
| </properties>
| </persistence-unit>
| </persistence>
When the ear file is deployed, I get the following error. I don't have any clue what might be causing this as all the code in the EAR (except for one Session bean and its Remote interface - actually a WebServices interface) is generated from Hibernate using reveng.xml.
17:40:38,109 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CrunchDS' to JNDI name 'java:CrunchDS'
| 17:40:38,155 INFO [EARDeployer] Init J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear
| 17:40:38,530 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
| 17:40:38,530 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Crunch.ear,unitName=Crunch with dependencies:
| 17:40:38,530 INFO [JmxKernelAbstraction] jboss.jca:name=CrunchDS,service=DataSourceBinding
| 17:40:38,534 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Crunch.ear,unitName=Crunch
| 17:40:38,543 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Analysisresult
| 17:40:38,547 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Application
| 17:40:38,550 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Computeros
| 17:40:38,552 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Configdata
| 17:40:38,555 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Cpu
| 17:40:38,558 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Dir
| 17:40:38,563 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fileservice
| 17:40:38,567 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Filetype
| 17:40:38,570 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionalgorithm
| 17:40:38,573 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionalgorithmresult
| 17:40:38,576 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionjobsetting
| 17:40:38,579 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionrequestorsetting
| 17:40:38,582 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Fusionresult
| 17:40:38,586 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Groups
| 17:40:38,588 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Insertionalgorithm
| 17:40:38,591 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Interpreter
| 17:40:38,597 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Job
| 17:40:38,626 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobfusionresult
| 17:40:38,629 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobtask
| 17:40:38,632 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Jobtool
| 17:40:38,635 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Organizations
| 17:40:38,638 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profileadmin
| 17:40:38,641 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profilerequestor
| 17:40:38,644 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profiletoolpublisher
| 17:40:38,649 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Profileworker
| 17:40:38,652 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Roles
| 17:40:38,658 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Serverstat
| 17:40:38,667 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Subscriber
| 17:40:38,670 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Subscribersession
| 17:40:38,675 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Task
| 17:40:38,678 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskanalysisresult
| 17:40:38,682 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskdatum
| 17:40:38,684 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskfiles
| 17:40:38,688 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskinvocation
| 17:40:38,692 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tasklogs
| 17:40:38,695 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskreject
| 17:40:38,700 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Taskworkerinfo
| 17:40:38,703 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Teams
| 17:40:38,708 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tool
| 17:40:38,711 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolcpu
| 17:40:38,714 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolfiletype
| 17:40:38,717 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tooloption
| 17:40:38,720 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolos
| 17:40:38,723 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Toolparameter
| 17:40:38,727 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Tooltype
| 17:40:38,735 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Usercomputer
| 17:40:38,738 INFO [Ejb3Configuration] found EJB3 Entity bean: com.cei.crunch.ejb.Viewlevels
| 17:40:38,798 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
| 17:40:38,799 INFO [Ejb3Configuration] [PersistenceUnit: Crunch] no META-INF/orm.xml found
| 17:40:38,883 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Analysisresult
| 17:40:38,965 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Analysisresult on table analysisresult
| 17:40:39,189 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Application
| 17:40:39,189 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Application on table application
| 17:40:39,195 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Computeros
| 17:40:39,195 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Computeros on table computeros
| 17:40:39,201 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Configdata
| 17:40:39,202 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Configdata on table configdata
| 17:40:39,204 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Cpu
| 17:40:39,205 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Cpu on table cpu
| 17:40:39,233 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Dir
| 17:40:39,246 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Dir on table dir
| 17:40:39,261 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fileservice
| 17:40:39,278 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fileservice on table fileservice
| 17:40:39,291 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Filetype
| 17:40:39,301 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Filetype on table filetype
| 17:40:39,312 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionalgorithm
| 17:40:39,327 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionalgorithm on table fusionalgorithm
| 17:40:39,334 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionalgorithmresult
| 17:40:39,334 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionalgorithmresult on table fusionalgorithmresult
| 17:40:39,340 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionjobsetting
| 17:40:39,344 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionjobsetting on table fusionjobsetting
| 17:40:39,348 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionrequestorsetting
| 17:40:39,362 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionrequestorsetting on table fusionrequestorsetting
| 17:40:39,367 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Fusionresult
| 17:40:39,368 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Fusionresult on table fusionresult
| 17:40:39,371 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Groups
| 17:40:39,372 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Groups on table groups
| 17:40:39,379 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Insertionalgorithm
| 17:40:39,397 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Insertionalgorithm on table insertionalgorithm
| 17:40:39,402 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Interpreter
| 17:40:39,402 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Interpreter on table interpreter
| 17:40:39,406 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Job
| 17:40:39,406 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Job on table job
| 17:40:39,431 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobfusionresult
| 17:40:39,431 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobfusionresult on table jobfusionresult
| 17:40:39,434 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobtask
| 17:40:39,435 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobtask on table jobtask
| 17:40:39,439 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Jobtool
| 17:40:39,439 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Jobtool on table jobtool
| 17:40:39,444 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Organizations
| 17:40:39,444 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Organizations on table organizations
| 17:40:39,450 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profileadmin
| 17:40:39,451 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profileadmin on table profileadmin
| 17:40:39,454 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profilerequestor
| 17:40:39,454 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profilerequestor on table profilerequestor
| 17:40:39,460 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profiletoolpublisher
| 17:40:39,461 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profiletoolpublisher on table profiletoolpublisher
| 17:40:39,464 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Profileworker
| 17:40:39,464 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Profileworker on table profileworker
| 17:40:39,480 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Roles
| 17:40:39,480 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Roles on table roles
| 17:40:39,483 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Serverstat
| 17:40:39,484 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Serverstat on table serverstat
| 17:40:39,507 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Subscriber
| 17:40:39,508 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Subscriber on table subscriber
| 17:40:39,544 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Subscribersession
| 17:40:39,544 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Subscribersession on table subscribersession
| 17:40:39,549 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Task
| 17:40:39,549 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Task on table task
| 17:40:39,568 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskanalysisresult
| 17:40:39,568 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskanalysisresult on table taskanalysisresult
| 17:40:39,571 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskdatum
| 17:40:39,572 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskdatum on table taskdatum
| 17:40:39,577 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskfiles
| 17:40:39,577 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskfiles on table taskfiles
| 17:40:39,580 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskinvocation
| 17:40:39,580 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskinvocation on table taskinvocation
| 17:40:39,589 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tasklogs
| 17:40:39,589 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tasklogs on table tasklogs
| 17:40:39,595 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskreject
| 17:40:39,595 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskreject on table taskreject
| 17:40:39,599 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Taskworkerinfo
| 17:40:39,599 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Taskworkerinfo on table taskworkerinfo
| 17:40:39,610 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Teams
| 17:40:39,611 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Teams on table teams
| 17:40:39,616 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tool
| 17:40:39,616 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tool on table tool
| 17:40:39,633 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolcpu
| 17:40:39,634 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolcpu on table toolcpu
| 17:40:39,637 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolfiletype
| 17:40:39,637 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolfiletype on table toolfiletype
| 17:40:39,640 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tooloption
| 17:40:39,640 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tooloption on table tooloption
| 17:40:39,643 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolos
| 17:40:39,643 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolos on table toolos
| 17:40:39,646 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Toolparameter
| 17:40:39,646 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Toolparameter on table toolparameter
| 17:40:39,656 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Tooltype
| 17:40:39,657 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Tooltype on table tooltype
| 17:40:39,661 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Usercomputer
| 17:40:39,661 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Usercomputer on table usercomputer
| 17:40:39,709 INFO [AnnotationBinder] Binding entity from annotated class: com.cei.crunch.ejb.Viewlevels
| 17:40:39,710 INFO [EntityBinder] Bind entity com.cei.crunch.ejb.Viewlevels on table viewlevels
| 17:40:39,833 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Analysisresult.taskanalysisresults -> taskanalysisresult
| 17:40:39,838 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Computeros.usercomputers -> usercomputer
| 17:40:39,849 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Computeros.tooloses -> toolos
| 17:40:39,850 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Cpu.usercomputers -> usercomputer
| 17:40:39,850 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Cpu.toolcpus -> toolcpu
| 17:40:39,851 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.tools -> tool
| 17:40:39,851 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.taskfileses -> taskfiles
| 17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fileservice.fusionalgorithmresults -> fusionalgorithmresult
| 17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.fusionrequestorsettings -> fusionrequestorsetting
| 17:40:39,852 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.analysisresults -> analysisresult
| 17:40:39,853 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Filetype.toolfiletypes -> toolfiletype
| 17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionalgorithm.fusionalgorithmresults -> fusionalgorithmresult
| 17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionalgorithm.fusionrequestorsettings -> fusionrequestorsetting
| 17:40:39,854 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Fusionresult.jobfusionresults -> jobfusionresult
| 17:40:39,855 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Insertionalgorithm.analysisresults -> analysisresult
| 17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobfusionresults -> jobfusionresult
| 17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.fusionjobsettings -> fusionjobsetting
| 17:40:39,856 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobtasks -> jobtask
| 17:40:39,857 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Job.jobtools -> jobtool
| 17:40:39,857 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Profilerequestor.fusionrequestorsettings -> fusionrequestorsetting
| 17:40:39,858 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.usercomputers -> usercomputer
| 17:40:39,860 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profilerequestors -> profilerequestor
| 17:40:39,861 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.subscribersessions -> subscribersession
| 17:40:39,861 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.groupses -> groups
| 17:40:39,862 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.organizationses -> organizations
| 17:40:39,870 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profileadmins -> profileadmin
| 17:40:39,871 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.tasks -> task
| 17:40:39,871 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.jobs -> job
| 17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.teamses -> teams
| 17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.applications -> application
| 17:40:39,872 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profiletoolpublishers -> profiletoolpublisher
| 17:40:39,873 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.roleses -> roles
| 17:40:39,873 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.profileworkers -> profileworker
| 17:40:39,874 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.toolsForToolOwner -> tool
| 17:40:39,874 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Subscriber.toolsForToolValidator -> tool
| 17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.taskanalysisresults -> taskanalysisresult
| 17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.jobtasks -> jobtask
| 17:40:39,875 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Task.taskinvocations -> taskinvocation
| 17:40:39,876 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Taskinvocation.taskfileses -> taskfiles
| 17:40:39,876 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Taskinvocation.taskdatums -> taskdatum
| 17:40:39,877 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.tooloses -> toolos
| 17:40:39,877 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolcpus -> toolcpu
| 17:40:39,878 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.analysisresults -> analysisresult
| 17:40:39,879 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolfiletypes -> toolfiletype
| 17:40:39,880 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.jobtools -> jobtool
| 17:40:39,881 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.tasks -> task
| 17:40:39,889 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tool.toolparameters -> toolparameter
| 17:40:39,890 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Toolparameter.tooloptions -> tooloption
| 17:40:39,890 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Tooltype.tools -> tool
| 17:40:39,891 INFO [CollectionBinder] Mapping collection: com.cei.crunch.ejb.Usercomputer.taskinvocations -> taskinvocation
| 17:40:40,440 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 17:40:40,444 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 17:40:40,483 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45
| 17:40:40,483 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
| 17:40:40,484 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 17:40:40,485 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
| 17:40:40,485 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 17:40:40,486 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 17:40:40,486 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 17:40:40,486 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 17:40:40,486 INFO [SettingsFactory] JDBC batch size: 15
| 17:40:40,486 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 17:40:40,486 INFO [SettingsFactory] Scrollable result sets: enabled
| 17:40:40,486 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 17:40:40,486 INFO [SettingsFactory] Connection release mode: auto
| 17:40:40,487 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 17:40:40,487 INFO [SettingsFactory] Default batch fetch size: 1
| 17:40:40,487 INFO [SettingsFactory] Generate SQL with comments: disabled
| 17:40:40,487 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 17:40:40,487 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 17:40:40,487 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 17:40:40,487 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 17:40:40,488 INFO [SettingsFactory] Query language substitutions: {}
| 17:40:40,488 INFO [SettingsFactory] JPA-QL strict compliance: enabled
| 17:40:40,488 INFO [SettingsFactory] Second-level cache: enabled
| 17:40:40,488 INFO [SettingsFactory] Query cache: disabled
| 17:40:40,488 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 17:40:40,489 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 17:40:40,489 INFO [SettingsFactory] Cache region prefix: Crunch_ear,Crunch
| 17:40:40,489 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 17:40:40,489 INFO [SettingsFactory] Statistics: disabled
| 17:40:40,489 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 17:40:40,489 INFO [SettingsFactory] Default entity-mode: pojo
| 17:40:40,489 INFO [SettingsFactory] Named query checking : enabled
| 17:40:40,571 INFO [SessionFactoryImpl] building session factory
| 17:40:42,047 WARN [ServiceController] Problem starting service persistence.units:ear=Crunch.ear,unitName=Crunch
| java.lang.ClassCastException: org.hibernate.type.StringType
| at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:84)
| at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:168)
| at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
| at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
| at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy71.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 17:40:42,048 INFO [EJB3Deployer] Deployed: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/tmp/deploy/tmp64392Crunch.ear-contents/crunch-ejb.jar
| 17:40:42,054 INFO [TomcatDeployer] deploy, ctxPath=/Crunch, warUrl=.../tmp/deploy/tmp64392Crunch.ear-contents/crunch-web-exp.war/
| 17:40:42,331 INFO [EARDeployer] Started J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear
| 17:40:42,332 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=Crunch.ear,unitName=Crunch
| State: FAILED
| Reason: java.lang.ClassCastException: org.hibernate.type.StringType
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=CrunchDS
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:ear=Crunch.ear,unitName=Crunch
| State: FAILED
| Reason: java.lang.ClassCastException: org.hibernate.type.StringType
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=CrunchDS
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116000#4116000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116000
17 years
[Installation, Configuration & DEPLOYMENT] - Re: well got somewhere???!!!
by wiggy
spent a hard day on this and seem to have discovered some things.
1. I need to build an ear project, and set the j2ee dependencies to include the projects i want in the ear. This is the only way i can see to set the J2EE dependencies on the individual projects themselves.
2. create the various projects and set their respective dependencies.
3. I tried to create the domainModel entity project as a utility jar (they are after all POJOs) - however, the persistence unit if using entity.class wont recognise the class with an @entity tag unless its in the same module -
what this means is that that i had to define the persistence unit in the same project as the entity classes themselve.
however whilst this compiles - I cant get the Ear to load in the server it says it cant start my persistence unit.
4. Instead i had to rebuild the domainModel as an ejb file (not a utility) with its persistence unit - and include this into the EAR instead.
This seemed to make it happy and it loads the EAR and my code seems to work.
However I now have ejb projects not util projects for my pojo entities. This does feel kinda counter intuitive.
5. I re read chapter 11 in "EJB in action" where it talks about peristence unit scoping - but i dont quite get it. It implies i can create an persistence unit in a JAR - but i have to put the jar in the /lib directory in the EAR.
not sure how do do this - as my eclipse EAR project has an EARContent and META-INF dir but no lib - and how would put any jar file (with persistence.xml) into that /lib dir?
do i have to create it by hand ? tried and tried to link to util project and got all messed up.
All in all a hard day - Is it just me or does any else find the dearth of material on how to use eclipse for large persistence projects something frustracting?
how any one focuses on code writing without getting stuck in build structure problems to distract one is a bit of a mystery.
Would still appreciate anyone with a little more knowledeg than me explaining whether you can use utility projects for POJO entities and if so how.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115994#4115994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115994
17 years
[Tomcat, HTTPD, Servlets & JSP] - Create plugin for a web application
by loopix
Hi all,
I'm trying to make a Web application but now, I'm stuck because I try to do things that I don't know if it's possible....
I have write the "base" of the application, that consist of a login page and a main page. The application wanted must work with plugin, like Eclipse (a plateform and severals plugin). So, I can say that I've got a plateform, and now, I must develop some plugin to add some function to the web application.
The problem is that a plugin will contains:
- html page
- jsp page
- servlet page
- class file
- other file
Recently, I've learn how to make plugin for Java project (normal application)... So, I must create some interfaces and search, into a specific directories, for plugin. But, for a web application, I don't know how to add html page and servlet (and set context for servlet) into a web module who is already deploied and running ...
My web application is packaged into a war file wich is also packaged into an ear archive. So, I want to make the base of the plateform into an EAR file and add somes .jar files to a specific directories.
So for now, I'm stuck because I don't know if it's possible to add page and context to an web based application. The perfect solution should use Java stuff and not JBoss stuff ...
Because I'm really stuck, it would be great if someones try to put me on the good way :)
Thanks to all
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115993#4115993
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115993
17 years
[JBoss Seam] - @DataModel makes me go nuts or it's a bug ?
by dexjam
Either this is a bug, or possibly i don't get it, why is this working:
--- BEGIN DOES work (TM) ---
| @Stateful
| @Name("admin")
| public class AdminUserBean implements Serializable, AdminUser {
|
| @PersistenceContext()
| private EntityManager entityManager;
|
| // @DataModel()
| // private List<User> userList;
|
| @Logger Log log;
|
| /*@Factory("userList")
| public void fetchUserList() {
| userList = entityManager.createNamedQuery("User.findAll").getResultList();
| }*/
|
| @Factory("userList")
| public List<User> getUserList() {
| return entityManager.createNamedQuery("User.findAll").getResultList();
| }
|
| @Remove
| public void destroy() {
| //No special treatment
| }
|
| }
| --- END DOES work (TM) ---
and this isn't???
--- BEGIN DOESn't work (TM) ---
| @Stateful
| @Name("admin")
| public class AdminUserBean implements Serializable, AdminUser {
|
| @PersistenceContext()
| private EntityManager entityManager;
|
| @DataModel()
| private List<User> userList;
|
| @Logger Log log;
|
| @Factory("userList")
| public void fetchUserList() {
| userList = entityManager.createNamedQuery("User.findAll").getResultList();
| }
|
| /*
| @Factory("userList")
| public List<User> getUserList() {
| return entityManager.createNamedQuery("User.findAll").getResultList();
| }
| */
|
| @Remove
| public void destroy() {
| //No special treatment
| }
|
| }
| --- END DOESn't work (TM) ---
The facelets page is:
| <?xml version='1.0' encoding='UTF-8' ?>
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:rich="http://richfaces.org/rich"
| xmlns:f="http://java.sun.com/jsf/core"
| template="../templates/myTemplate.xhtml">
|
| <ui:define name="content">
| <h:messages/>
| <h2>User list size: #{userList.size()}</h2>
| <h:dataTable value="#{userList}" var="singleUser">
| <h:column>
| <h:outputText value="#{singleUser.id}"/>
| </h:column>
| </h:dataTable>
|
| </ui:define>
|
| </ui:composition>
|
Anybody, please enlighten me or point me to some very explicit documentation please.
Jens
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115992#4115992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115992
17 years