[JBoss Seam] - Seam and OpenJPA
by rgarret
Greetings,
My company is evaluating Seam 2.0 and I have a concern. There was a forum post back in September which suggested that OpenJPA does not work in Seam 2.0. As per Gavin's request the poster submitted a bug (JBSEAM-1946). My concern is that the bug remains unassigned with no comments. I have not personally tried to use OpenJPA with Seam 2.0 but perhaps someone here can provide a quick answer that will save me some time.
The obvious answer would be to use Hibernate instead of OpenJPA, however we find OpenJPA's annotation-based implementation of JDO fetch groups (which Hibernate docs refer to as "mostly a marketing feature...") quite useful and are making good use of them in several applications.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115988#4115988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115988
18 years, 3 months
[Beginners Corner] - log4j problem with jBoss app server
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">
| <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=4115979#4115979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115979
18 years, 3 months
[Beginners Corner] - Re: jboss AS, jboss Web and php
by nitm
peter,
i uninstalled and deleted everything (java, jboss, php) and re-installed them...
installations:
- java: C:\apps\java\jdk1.5.0_14
- jboss: C:\apps\server\jboss\application-server\jboss-4.2.2.GA
- php: C:\apps\server\php\php5servlet-windows-SP1-i586\PHP
steps i did to configure jboss with php:
- copied the php5servlet.dll to the bin\native dir of the jboss
- added a Listener to the server.xml in server\default\deploy\jboss-web.deployer
- added the servlets/servlet-mapping in the web.xml in server\default\deploy\jboss-web.deployer\conf
i still get the same error (Can't find SAPI class, no libphp5servlet in java.library.path).
JBossAS is working with 1.5VM:
[ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_14-b03,Sun Microsystems Inc.
what the server says on startup:
JBoss Bootstrap Environment
|
| JBOSS_HOME:
| C:\apps\server\jboss\application-server\jboss-4.2.2.GA
|
| JAVA:
| C:\apps\java\jdk1.5.0_14\bin\java
|
| JAVA_OPTS:
| -Djava.library.path="
| C:\apps\server\jboss\application-server\jboss-4.2.2.GA\bin\native;
| C:\WINDOWS\system32;
| C:\WINDOWS;
| C:\WINDOWS\System32\Wbem;
| C:\apps\java\jdk1.5.0_14\bin;
| C:\apps\server\jboss\application-server\jboss-4.2.2.GA\bin;
| %JBOSS_HOME\bin\native;
| C:\apps\server\php\php5servlet-windows-SP1-i586\PHP\bin;
| C:\apps\server\php\php5servlet-windows-SP1-i586\PHP\bin\ext;"
| -Dprogram.name=run.bat -server -Xms128m -Xmx512m
| -Dsun.rmi.dgc.client.gcInterval=3600000
| -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH:
| C:\apps\java\jdk1.5.0_14\lib\tools.jar;
| C:\apps\server\jboss\application-server\jboss-4.2.2.GA\bin\run.jar
i also checked the php5servlet.dll with the dependency walker and it shows the same as before...
did i forget something?
i used these two urls for help:
- http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modul...
- http://samaxes.com/php-tutorial/jbossweb.php
and on the first one it says: "Replace the servlets-php.jar by jbossweb-extras.jar"..
i can't find any servlets-php.jar so i don't know where i should place that new file (if at all), plus there's a link there to the "latest" version of the jbossweb-extras, how can i know that it's really the latest?
i did try to put that jar in server\default\deploy\jbossws.sar but it did not work.. do i need that file at all?
that's about it i guess.. i did try to keep a log of everything i'm doing so i hope that this post has enough information.
thanks a lot, nitzan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115971#4115971
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115971
18 years, 3 months