[JCA/JBoss] - Re: Problem in data source binding while server start
by sunil@jboss.org
When I use the default deployment order for JBoss it works fine. We want to deploy Alerter.jar before deploying scheduler-service.xml.
Here, scheduler-service.xml looks for the Alerter class in Alerter.jar. So I changed the deployment order for .jar and -service.xml.
Alerter.jar points to 'MSSQLDSA' data source. So while deploying Alerter.jar it looks for it and throws the above error.
I tried to change the deployment order for -ds.xml also but it throws the same error.
Following is the scheculer-service.xml configuration:
| <server>
|
| <mbean code="org.jboss.varia.scheduler.Scheduler"
| name="jboss:service=Scheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">com.soa.alerter.Alerter</attribute>
| <attribute name="SchedulableArguments">true</attribute>
| <attribute name="SchedulableArgumentTypes">boolean</attribute>
|
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">60000</attribute>
| <attribute name="InitialRepetitions">-1</attribute>
| </mbean>
|
| </server>
|
Sunil
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211685#4211685
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211685
17 years, 2 months
[JBoss Portal] - Problem wiht JFree charts in linux environment with JBOSS as
by kiran_pvm
Using JBoss as application server in struts frame work. We used jfree charts to get the graphical reports. It is working fine in windows, the same is not working in linux environment. It is giving below error while accessing the graphs please guide me to resolve the issue its very very very urgent for me
NOTE: Xwindows is installed in my linux system.
ERROR
----------------------------------------------
javax.servlet.ServletException: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspService(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:295)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.adp.common.utils.SessionValidateFilter.doFilter(SessionValidateFilter.java:121)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
java.lang.InternalError: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable.
sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:134)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
java.awt.Font.initializeFont(Font.java:308)
java.awt.Font.(Font.java:344)
org.jfree.chart.axis.Axis.(Axis.java:132)
org.jfree.chart.StandardChartTheme.(StandardChartTheme.java:219)
org.jfree.chart.ChartFactory.(ChartFactory.java:222)
de.laures.cewolf.taglib.CewolfChartFactory.getChartInstance(CewolfChartFactory.java:167)
de.laures.cewolf.taglib.SimpleChartDefinition.produceChart(SimpleChartDefinition.java:30)
de.laures.cewolf.taglib.AbstractChartDefinition.getChart(AbstractChartDefinition.java:121)
de.laures.cewolf.taglib.ChartImageDefinition.ensureRendered(ChartImageDefinition.java:137)
de.laures.cewolf.taglib.ChartImageDefinition.getRenderingInfo(ChartImageDefinition.java:126)
de.laures.cewolf.taglib.tags.ChartImgTag.getRenderingInfo(ChartImgTag.java:205)
de.laures.cewolf.taglib.tags.ChartMapTag.doStartTag(ChartMapTag.java:91)
org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspx_meth_cewolf_map_0(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:460)
org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspx_meth_cewolf_img_0(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:434)
org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspService(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:225)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
com.adp.common.utils.SessionValidateFilter.doFilter(SessionValidateFilter.java:121)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211682#4211682
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211682
17 years, 2 months
[Beginners Corner] - Can I use drool rules with servlet?
by avi007
Hi folk,
I made a decision table using excel and called it using simple java class,its ran well but while trying to call it from servlet i am getting following error:
anonymous wrote : java.lang.NoClassDefFoundError: org/drools/WorkingMemory
| java.lang.Class.getDeclaredConstructors0(Native Method)
| java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
| java.lang.Class.getConstructor0(Class.java:2699)
| java.lang.Class.newInstance0(Class.java:326)
| java.lang.Class.newInstance(Class.java:308)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
| org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
| org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
| org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
| org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
| java.lang.Thread.run(Thread.java:619)
Can't I call Drools rules from servlet class ?
Regards
Avi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211675#4211675
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211675
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Syslog Jboss Nullpointer
by daniel_jao
Hi All,
Im trying to set up syslog on JBOSS.
I uncommented this part in the log4j.xml.
<!-- Syslog events -->
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
I also already enabled syslog.
Enabling UDP in syslog(linux):
In /etc/sysconfig/syslog(change is in red):
# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-r -m 0"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-2"
But when i restart the jboss, im encountering the ff error:
18:12:48,116 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
18:12:48,262 WARN [Log4jService$URLWatchTimerTask] Failed to check URL: resource:log4j.xml
java.lang.NullPointerException
at org.apache.log4j.net.SyslogAppender.append(SyslogAppender.java:241)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
I hope some could help me.
Thanks,
Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211670#4211670
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211670
17 years, 2 months