saurabh agr

Ranch Hand
+ Follow
since Apr 14, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by saurabh agr

Ramakrishna Udupa wrote:

The addOption() method from your first example must be part of a class right?

Obviously yes. But, they called addOption() method and catching nothing. I mean,



see the above code. The above code from another class. Creating instance of Options and then calling options.addOption(Params....); they called and that method is returning something like "return this". But, they are not capturing "this" instance. Then, why they are returning "this"?



Hi,

As per your statement addOption() method "return this". It means this method is returning the instance of the object by which this method is called so that you can call anathor methods on the same object in a chain like :

options.addOption(...).addOption(...).addOption(...) and so on

I hope it clears now.

Regards,
Saurabh Agrawal
10 years ago
Hi,

My post is regarding Jasper Report tool but as i haven't got any topic for that i am posting my query here.

In jasper report tool, i am using cross tab feature and i want to calculate the total column/row value on the basis of certain condition but i don't know how to customise the total calculation in crosstab of jasper report.

Please respond and forgive me for posting at wrong place.

Regards,
Saurabh
10 years ago
Hi,

I am getting following exception while starting struts2 application : (I am using FilterDispatcher in web.xml)

SEVERE: Exception starting filter struts2
Class: org.apache.xalan.transformer.TransformerIdentityImpl
File: TransformerIdentityImpl.java
Method: setDocumentLocator
Line: 823 - org/apache/xalan/transformer/TransformerIdentityImpl.java:823:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: Class: org.apache.xalan.transformer.TransformerIdentityImpl
File: TransformerIdentityImpl.java
Method: setDocumentLocator
Line: 823 - org/apache/xalan/transformer/TransformerIdentityImpl.java:823:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
... 25 more
Caused by: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerIdentityImpl.setDocumentLocator(TransformerIdentityImpl.java:823)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setDocumentLocator(DomHelper.java:233)
at com.opensymphony.xwork2.util.location.LocationAttributes$Pipe.setDocumentLocator(LocationAttributes.java:302)
at com.opensymphony.xwork2.util.DomHelper$StartHandler.setDocumentLocator(DomHelper.java:292)
at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)
... 26 more
May 13, 2013 2:18:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart


Please let me know the solution.

Regards,
Saurabh
10 years ago
Hi,

when i run JBOSS through Eclipse, jboss starts on 127.0.0.1 ip, and i want to run jboss on different ip.

To do that i have to run JBOSS through command prompt by using -b run time parameter such as : run -b <ip>

My Question : Is there any way to specify IP when run jboss through eclipse.

I want to provide ip when starting server rather than defining it in configuration file.

Thanks.
11 years ago

Jaikiran Pai wrote:It's in JBOSS_HOME/server/<servername>/deploy/jbossweb.sar/jbossweb.jar. You can always use a tool like Tattletale to find that out.



thanks jaikiran...
12 years ago
hi everyone,

please inform me in jboss6 which jar containing org.apache.catalina.servlets.DefaultServlet

thanks
12 years ago
please reply some one.......
12 years ago
please reply some one.......
12 years ago
hi,

in my application i have several jsp files in which i have to set buffer attribute in page directive such as :

<%@ page language="java" buffer='32kb'%>

my question : is there a any common place where i can set buffer size which is accessed by all jsp files in the application?

thanks.
12 years ago
hi,

please inform, where can i disable TLD verification in jsp files in jboss6?


thanks

please reply some one.......
12 years ago
hi,

please inform how to migrate from weblogic to jboss6, i have googled and get that jboss has a service named FoeDeployerService for this particular task but i cant able to use this service,

i am trying to deploy "foe-deployer-3.2.sar" downloaded from "https://community.jboss.org/wiki/FoeDeployerService"

but getting "java.lang.ClassNotFoundException: org.jboss.deployment.SubDeployer"

after googling on this i found to download "jboss-system-3.2.1.jar" and place this jar to server/common/lib folder but after that i get :

"java.lang.NoSuchMethodError: org.jboss.system.server.ServerConfigLocator.locate()Lorg/jboss/system/server/ServerConfig;"

i am confused what i am doing wrong.

please guide me how to migrate my application from weblogic to jboss6.

thanks a lot.
12 years ago
hi,
i am trying to deploy an application on jboss7 server but got this error :



please inform where i am wrong.

thanks
12 years ago
hi,

i am trying to deploy an struts1 application on jboss7 but got this exception :

13:03:35,161 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[virtualservername].[/]] (MSC service thread 1-3) Marking servlet action as unavailable
13:03:35,161 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[virtualservername].[/]] (MSC service thread 1-3) Servlet threw load() exception: javax.servlet.UnavailableException: Rules configuration file for HTMLTable is missing
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368) [struts.jar:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]

please give me any idea how to solve the issue.

thanks
12 years ago
hi,

i have to migrate my web application from weblogic 8.1 server to JBoss 7 server, can anybody please guide me how to do it,

in weblogic we use config.xml for all config information, how to do it in JBoss7

please inform what are the steps to do it.

i m using Eclipse Indigo and JDK1.6

Also i want to know how to use domain mode of JBoss7

Please help and guide me.

thanks a lot
saurabh agrawal
12 years ago
anybody please reply to my post and solve my confusion.
thanks.