I'm having a new problem with the snapshot that I did not notice at
first sight. It seems that something changed in amber ejb manager
configuration. I have a new error :
database java:comp/env/adljavaejbflex starting
(URL:jdbc:mysql://localhost/adljavaejbflex)
com.caucho.amber.AmberRuntimeException:
com.caucho.config.ConfigException: No data-source specified for
PersistenceUnit
So I tried to add it in persistence.xml :
<persistence-unit name="adljavaejbflex_pun" data-source="adljavaejbflex">
this produces another error :
adljavaejbflex.Adlservice.m_manager: @PersistenceContext cannot find any
persistence contexts. No JPA persistence-units have been deployed
This is exactly the same error if I remove the file persistence.xml. The
config used to work with 3.1.5 release
You'll find my new config files enclosed. I declare my service like this :
public class Adlservice extends HessianServlet
{
@PersistenceContext(name="adljavaejbflex_pun") private EntityManager
m_manager;
Thanks for any information
Scott Ferguson wrote:
There's a new snapshot available. We're mostly doing bug fixes and
regression cleanup, so there aren't a lot of new features. We're in
week 7 of a planned 8 for the 3.1.6 release.
(2008-04-17) quercus: fsockopen allows host:port as the host string
(#2603, rep by billybigpotatoes)
quercus: use getRealPath for php-ini in QuercusServlet (#2605, rep by
sgraf)
quercus: var_dump takes multiple args (#2508, rep by etzel)
quercus: mysql_fetch_field updates to handle table aliasing
quercus: xml_parse needs to allow unassigned character values for
Mediawiki import/export (#2592)
quercus: DOM constants needed for Mediawiki 1.12
watchdog: add <jvm-classpath>
(2008-04-16) quercus: json was not working with SimpleXmlElement
(#2569, rep by Matthew Schmidt)
quercus: xml_get_current_column_number (#2574, #2604, rep by P Fischer)
amber: @OneToOne persist cascade issues (#2599, rep by tsv)
amber: startup timing issues. the codegen must occur before the
database is selected
jsp: body tag interaction with jsp:include and i18n (#2581, rep by T
Fukuda)
(2008-04-11) response.sendRedirect should encode in utf-8 (#2580, rep
by Sanjeev)
admin: added .war manifest as a JMX value (#2462)
jms: polling issues with jdbc store (#2570, rep by J Deffenbaugh)
rewrite: add exists condition (#2328, rep by Arthur Naylor)
amber: update classloader order (#2588, rep by Riccardo Cohen)
quercus: xml_set_element_handler with empty string callback was
causing UnsupportedOperationException (#2591, rep by P Fisher)
host: allow host-alias-regexp in host.xml (#2582, rep by kenjrwalker)
amber: multiple @OneToMany annotations were ignored (#2586, rep by
Charles Lyons)
amber: mysql shouldn't use RETURN_GENERATED_KEYS when no @GeneratedId
(#2579, rep by Charles Lyon)
admin: update log_ reloading for remove/restart (#2568, rep by wesley)
boot: jmx defines must be set by boot process (#2567)
ejb: stateless calls to self do not invoke interceptors (#2529, rep by
Daniel D'Alessandro)
win32 service: nullpointer due to PATH changes to support win64
(#2470, rep by Sharad Kelkar)
versioning: nullpointer in WebApp.stop() with versioning (#2565, rep
by stbu)
amber: class changes not picked up for reevaluation (#2562, rep by tsv)
loader: restricted synchronized block on DynamicClassLoader to reduce
blocking (rep by Knut Forkalsrud)
(2008-03-31) config: connection-max and keepalive-select-max should
default to infinite (#2555, rep by paulberto)
config: connection-max belongs in <server> (#2555, rep by paulberto)
admin: add thresholds for stat-service
jmx: jmx operations need to occur in classloader context of the mbean
(#2556, rep by Karl Goldstein)
admin: add thread dumps for cpu load and ping failure (#2428)
cache: update miss rate to better reflect total caching (#2505)
openssl: ssl_write updates for SSL_ERROR_WANT_READ and
SSL_ERROR_WANT_WRITE (#2465, rep by D Ngo)
resin.conf: ejb-server in ear-default should not have data-source
(#2472, rep by stbu)
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest
--
Très cordialement,
Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
<web-app xmlns="http://caucho.com/ns/resin">
<database jndi-name="adljavaejbflex">
<driver>
<type>com.mysql.jdbc.Driver</type>
<url>jdbc:mysql://localhost/adljavaejbflex</url>
<init-param autoReconnect="true"/>
<init-param noDatetimeStringSync="true"/>
<init-param jdbcCompliantTruncation="false"/>
<init-param characterEncoding="utf8" />
<user>adljavaejbflex</user>
<password>adljavaejbflex</password>
</driver>
<prepared-statement-cache-size>8</prepared-statement-cache-size>
<max-connections>20</max-connections>
<max-idle-time>30s</max-idle-time>
<spy>true</spy>
</database>
<!--<persistence-manager data-source="adljavaejbflex"/>-->
<!--<ejb-server data-source="adljavaejbflex" create-database-schema="false"/>-->
<servlet servlet-name="adlservice" servlet-class="adljavaejbflex.Adlservice">
<load-on-startup/>
</servlet>
<servlet-mapping url-pattern="/adlservice/*" servlet-name="adlservice"/>
<welcome-file-list>
<welcome-file>index.swf</welcome-file>
</welcome-file-list>
<path-mapping url-pattern='/.administration/*' real-path='nowhere'/>
<path-mapping url-pattern='/.settings/*' real-path='nowhere'/>
</web-app>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="adljavaejbflex_pun" data-source="adljavaejbflex">
<class>adljavaejbflex.Ejbuser</class>
<exclude-unlisted-classes />
</persistence-unit>
</persistence>
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest