[Beginners Corner] - Re: Load Library problem
by tgcosta
Hey Peter
I tried to edit the run.conf file for setting the memory for Virtual Machine and edit the option that you told me. But when i started JBoss this message appear:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/jboss/jboss-4.2.2.GA
JAVA: /usr/java/jdk1.5.0_16/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /usr/jboss/jboss-4.2.2.GA/bin/run.jar:/usr/java/jdk1.5.0_16/lib/tools.jar
=========================================================================
is it correct? I don't think so...
Could you help-me?
Thiago.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165406#4165406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165406
17 years, 9 months
[JBoss Tools (users)] - Re: Overriding an EJB datasource for testing
by lowecg2004
Thanks for the reply Max.
I now specify the local datasource against DefaultDS.
I also needed to override some of my properties in that were specified in persistence.xml, specifically hibernate.dialect and hibernate.hbm2ddl.auto - for my test I want to use "create-drop", but in dev and production I just want to use "validate".
I tried editing bootstrap/META-INF/persistence.properties in order to override the values but this seemingly had no effect. In the end I moved the properties that I wanted to override into their own perstence.properties in the EJB for the dev/production properties and set my test properties in bootstrap/META-INF/persistence.properties. Now my tests and my dev/production environments work appear to work.
Is the factoring of the properties in this way legit or have I fluked it and Hibernate is just making some sensible defaults?
Cheers,
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165398#4165398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165398
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - Re: Upgrading from 4.0.4 to 4.2.2
by ssinger
Thanks. As you mentioned, I'm getting errors all over the place with y Web Services. But more concerning is I can't even get a JSP to compile on 4.2.2. Obviously, it works fine in 4.0.4GA and has nothing to do with the services. Just a plan old JSP. The error is:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 36 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165396#4165396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165396
17 years, 9 months
[EJB 3.0] - Re: Using quartz from EJB 3.0
by henk53
"jaikiran" wrote : So, is there any specific reason for injecting (or even try to lookup) the scheduler from JNDI? Why not just use the Quartz scheduler APIs to trigger the jobs?
Well, using Quartz directly in the EJB3 container is illegal. The EJB3 container prohibits code to spawn its own threads. Spawning threads is exactly what Quartz does.
Normally, in Java SE code or within a web application, you would simply use a code fragment like below to obtain the scheduler:
| SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();
| Scheduler scheduler = schedFact.getScheduler();
|
However, doing something like this in e.g. a stateless session bean is illegal and would mess up the container.
"wolfc" wrote : There are two ways to use Quartz from EJB3:
| 1. the unsupported EJB3 Quartz timer service: https://jira.jboss.org/jira/browse/EJBTHREE-619
| 2. or the Quartz resource adapter: http://wiki.jboss.org/auth/wiki/QuartzSchedulerIntegration
|
I already tried the second option. The Quartz resource adapter appears to be strictly an inflow adapter. It seems to be able to replace something like jobs.xml in Quartz. I.e. it reads the annotations from classes (and probably also from the EJB3 deployment descriptor) and statically schedules jobs based on that.
Based on what I tried and read so far, the resource adapter does not seem to work the other way around: my code can't control quartz. Instead, using the RA quartz can only control my code. I may be wrong though. I already asked for this specifically in the JCA forum but haven't received any replies yet.
I'm definitively going to check out the "unsupported EJB3 Quartz timer service", although 'unsupported' doesn't sound too good. Thanks for the suggestion! :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165394#4165394
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165394
17 years, 9 months