websphere-liberty

how to increase WAS liberty server messages.log file size?

人盡茶涼 提交于 2020-05-17 05:44:57
问题 Good day, I have a mobilefirst app deploy in WAS liberty profile. I found that the messages.log is only 72kb and then it will roll to new log file. I would like to increase the log file size, so I am doing the following way in server.xml, but it does not take effect: <logging traceFileName="messages.log" maxFileSize="20" /> or <logging maxFileSize="0"/> May I know how to increase the log file size? My WAS liberty profile is v8.5.5.5. Kindly advise. 回答1: WAS Liberty logging configuration is

how to increase WAS liberty server messages.log file size?

匆匆过客 提交于 2020-05-17 05:43:26
问题 Good day, I have a mobilefirst app deploy in WAS liberty profile. I found that the messages.log is only 72kb and then it will roll to new log file. I would like to increase the log file size, so I am doing the following way in server.xml, but it does not take effect: <logging traceFileName="messages.log" maxFileSize="20" /> or <logging maxFileSize="0"/> May I know how to increase the log file size? My WAS liberty profile is v8.5.5.5. Kindly advise. 回答1: WAS Liberty logging configuration is

Validating JAX-RS resources and methods (IBM JAX-RS implementation) using bean validation on Websphere Application Server 8.5.5

强颜欢笑 提交于 2020-03-06 09:12:43
问题 I am using IBM JAX-RS implementation to develop my REST APIs. I am looking to include validation of resource method parameters using Bean Validation (annotations) support provided in JAX-RS 2.0. I know that Jersey implementation supports this feature (https://jersey.java.net/documentation/latest/bean-validation.html). Is there a similar support available with IBM JAX-RS implementation on WAS 8.5.5? If so could you please direct me to some tutorial on how to accomplish this? I am specifically

Websphere Liberty: How to specify log4j2 configuration location?

不羁的心 提交于 2020-01-24 17:27:25
问题 I'm trying to tell Websphere Liberty where is located my log4j2.xml file, but it isn't working. In my file jvm.options I configure: -Dlog4j.configurationFile=file:///${server.config.dir}/log4j2.xml but it looks like Liberty does not understand the variable ${server.config.dir} in the jvm.options file. The file is in the same directory of the server.xml file. How would I specify the log4j2.xml location for Liberty? 回答1: I think it should be possible by creating a Library entry in your server

Websphere liberty profile jsp changes are not reflected using Spring data jpa library

浪尽此生 提交于 2020-01-16 07:44:09
问题 Hi i have a really strange problem. I work on a project that uses Spring 4.2.4 , Hibernate 5 and WebSphere Liberty Profile 8.5.5 as application server. When i change the content of jsp files, this changes are not reflected and i have to restart the server every time. Instead changes made to css or java files are reflected and i do not need to restart the server. I created a little project with only one jsp and the spring libraries to isolate the problem and i noticed that if i remove the

How to lookup EJB using JNDI in WebSphere Liberty

≡放荡痞女 提交于 2020-01-14 03:18:06
问题 I am trying to perform a JNDI name search using Liberty Application Server.However, It is throwing me a dependency injection issue.Attached is my code I am getting the following Error: [ERROR ] SRVE0319E: For the [com.airline.controllers.FlightDetails] servlet, com.airline.controllers.FlightDetails servlet class was found, but a resource injection failure has occurred. CWNEN0030E: The server was unable to obtain an object instance for the java:comp/env/com.airline.controllers.FlightDetails

How to have a working Textarea and a fileUpload in one form

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-07 03:50:55
问题 The Problem The below test case illustrates my issue. I have a JSF application which uses a HTML form in which I must use enctype="multipart/form-data" since I am using a file upload, see here. However when I use this encoding, newlines entered into my Textarea disappear when submitted to the server. The text area in result.xhtml always shows all of the text the user entered on index.xhtml on one line, regardless of any newlines the user put in. The output text always evaluates to "False" to

Liberty Maven repo for 17.0.0.1 not found

久未见 提交于 2020-01-07 03:21:48
问题 Using the URL: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/ as a repository in the settings.xml and then adding the dependencies in pom.xml as described here: https://www.ibm.com/support/knowledgecenter/en/was_beta/com.ibm.websphere.wdt.doc/topics/localrepo.htm my libraries based on Liberty v17.0.0.1 are not found. For example latest version of the basics.jar is 1.2.16 in my server installation, but the website only goes to 1.2.12. Where should I find

Log levels in Production

拟墨画扇 提交于 2020-01-06 13:54:05
问题 I need to set logs levels on prod and i do understand that there are different log levels. Can anyone suggest or recommend what is the right level of logs to be set on Production environment? If i turn the log level to finest it gives me all the logs, which is quite useful for developers to debug, but how do we manage them as there would be tons of logs generated. 回答1: The *=info is the most detailed recommended for production. Fine, finer, finest are trace level, they will generate lots of

Is there a way to get a variable in to a custom ConstraintValidator when using JAX-RS?

天涯浪子 提交于 2020-01-06 05:36:10
问题 When de-serializing a JSON payload i want to validate a phone number using a custom validator. This validator needs to know what country the customer is in to correctly parse the phone number. The country i can find in the http header Accept-Language. The problem is how can i provide the custom validator with this extra meta data? I was sure that @Context would inject the HttpHeaders into the PhoneNumberValidator but this does not work: @Context private HttpHeaders mHttpHeaders; The field is