System Programming

40K

Solutions

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.

Share tech news, updates, or what's on your mind.

Sign up to Post

sms vs mms

what is differnce between above two?

please advise
0
when i deployed war to the webapps location of tomcat getting errors
http://localhost:8080/security-form-based/protected/index.jsp

HTTP Status 404 – Not Found
Type Status Report

Message /security-form-based/protected/index.jsp

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

please advise



tried below link

https://www.concretepage.com/java-ee/jsp-servlet/form-based-authentication-in-jsp-using-tomcat

i am getting below error

ud_mdb_activemq\JSPLoginDemo>gradle clean build
'gradle' is not recognized as an internal or external command,
operable program or batch file.

please advise
0
How to convert executable binary to shell script
0
Hi Experts,

I would like to copy all links displayed on a specific page, including sub-links.
For example the following
https://howto.caspio.com/tech-tips-and-articles/
How can I accomplish that?
0
linux ftp script that upload files to an local server behind the same firewall, works fine manually but when the script is ran i get the following error  Please log in with USER and PASS first. getting error passive mode refused.


ftp -n -i -p test-ts <<END
user username password
0
Good afternoon,

I have the following doubt, I am creating a script to create a user in my Active Directory automatically with PowerShell ISE.

In the following script I want these two users to have the same password without having to type it twice, that is, when I am asked to enter the password for each user.

I want that at the moment of placing the password, I take it for these two users that I am creating as an example.

Someone who can guide me please.

Best regards.

$user = New-ADUser "Roberto"
$pwd = Read-Host "Ingresar Contraseña" -AsSecureString
$pwd = Set-ADAccountPassword Roberto -NewPassword $pwd
Enable-ADAccount Roberto
$user = New-ADUser "Rocio"
$pwd = Read-Host "Ingresar Contraseña" -AsSecureString
$pwd = Set-ADAccountPassword Rocio -NewPassword $pwd
Enable-ADAccount Rocio
0
Dear Experts, how can schedule set of commands in Linux program?

For example: I want to schedule a program called A running at 12.00 AM everyday; but when that A program is running, a set of commands will be executed automatically.

Please suggest.
0
hi,

what is difference between control shift L and call hierarchy(control+alt+H)  in eclipse debugging the code.
what are best debugging techniques or tips

please advise
0
hi,

are there any good free or cheap online training technical course without monthly fees that i have to pay. I am ok to pay some amount and use the course life time rather pay every month. please advise
0
Dear experts, I ' d like to become a sysadmin but what fields should I focus on? Where are the best resources to selfstudy? Can you pls suggest? Many thanks.
0
I recently downloaded the new version of jaspersoft studio (6.5.0) for eclipse.  I used to be able to choose specific dates for a parameter when previewing a report, now if I pick a specific date it treats it as null.  The only values I can get to evaluate to non-null are the relative dates like "DAY" or "MONTH".

Switching to an older compatibility mode doesn't seem to work either.

DATERANGE("2017-12-22") evaluates to null when I preview.
DATERANGE("DAY") evaluates to the correct Date, 2017-12-22.

Anyone have any thoughts?

Edit: Here's the documentations on Jasper's Date Range object: http://jasperreports.sourceforge.net/sample.reference/daterange/index.html
0
Tell  me some LOgic for thats..  i develop  one small console application to get remote system derive info it getting also but problem is getting only single remote machine data we have to want get mutiple remote machine data in single console application..
hepl!!!
Thanq
0
I have a batch script Change.bat as below  which changes value of attribute httpPort in server.xml file to a hardcoded value. But my script works only if the xml file is in the same folder where the batch script exists. BUT      
The server.xml location is %~dp0\wlp\usr\servers\defaultServer\server.xml and the batch script is in the same folder where 'wlp' folder resides. What changes do I need to do in the batch ?

server.xml contents-
<!-- Enable features -->
<featureManager>
    <feature>webProfile-7.0</feature>
    <!-- <feature>localConnector-1.0</feature> -->
</featureManager>

<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint host="*" httpPort="7680" httpsPort="9443" id="defaultHttpEndpoint"/>

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>


<applicationMonitor updateTrigger="mbean"/>

Open in new window

Change.bat contents-
@echo off
setlocal EnableExtensions DisableDelayedExpansion

rem First check if the file to modify exists in directory of batch file.
set "XmlFile=%~dp0\wlp\usr\server.xml"
if not exist "%XmlFile%" goto EndBatch

rem Define some environment variables which are needed later.
set "NewPort=47682"
set "LineNumber="
set "LineCount=0"
set "TmpFile=%TEMP%\%~n0.tmp"

rem Search for the line containing attribute httpPort and get its
rem line number and the line itself loaded into environment 

Open in new window

0
Hi, I had a new phone system installed and when I lift the handrest line 2 picks up and not line 1. I need CO1 to pickup by default since thats the line has unlimited calls rather then the 2nd line has pay per call. Can anyone help how to program the phone from picking up line 2 and pick up line 1.
0
Hi,

can we define only one abstract operation supplied by the SOAP web service? If i have to define more than one how do we do in WSDL?  what is portType in wsdl? please advise
0
int y=10;
float x=y/100;
System.out.println(x)

Open in new window

i expected above result 0.1 but getting 0.0 wonder why?


int y=10;
int x=y/100;
System.out.println(x)

Open in new window

why above is 0?
please advise
0
hi,

what are differences between
@PathParam,@QueryParam,@FormParam and @Provider,@Consumes,@Produces

when we use which one.

any end to end examples on these rest web service concepts
please advise
0
hi,

I was reading below link to convert json to java back and forth using gson

https://www.mkyong.com/java/how-do-convert-java-object-to-from-json-format-gson-api/

is there is any alternative way to do this?
please advise
0
hi,

i was reading as below

Throw generic Error Messages − A web service method should use HTTP error messages like 403 to show access forbidden etc.

What HTTP Status Code 201 states?
It means, CREATED, when a resource is successful created using POST or PUT request. Return link to newly created resource using location header.

What HTTP Status Code 204 states?
It means, NO CONTENT, when response body is empty for example, a DELETE request.
i see 200 UNKNOWN No body returned for response




What HTTP Status Code 304 states?
It means, NOT MODIFIED, used to reduce network bandwidth usage in case of conditional GET requests. Response body should be empty. Headers should have date, location etc.



What HTTP Status Code 400 states?
It means, BAD REQUEST, states that invalid input is provided e.g. validation error, missing data


What HTTP Status Code 401 states?
It means, FORBIDDEN, states that user is not having access to method being used for example, delete access without admin rights.



What HTTP Status Code 409 states?
It means, CONFLICT, states conflict situation while executing the method for example, adding duplicate entry.




any good example to test above http status codes?

using post when i tried to create a resourece i got 200 though not 201.

i searched in code for 200 or 201 to change but never found them?
where these numbers are coming from if not from code?
0
hi,

I was reading as below

No sensitive data in URL − Never use username, password or session token in URL , these values should be passed to Web Service via POST method.

how POST protect data?
i was not clear.

please advise
0
Hi,

I was reading as below

Session based authentication − Use session based authentication to authenticate a user whenever a request is made to a Web Service method.

how to do   Session based authentication .

any sample end to end example on this relating to web services ?
0
hi,
i was reading as below
What is the difference between PUT and POST operations?
PUT and POST operation are nearly same with the difference lying only in the result where PUT operation is idempotent and POST operation can cause different result.
i was not clear. what it mean by post can cause different results?

please advise
0
I was reading as below
https://www.tutorialspoint.com/restful/restful_security.htm

Restriction on Method Execution − Allow restricted use of methods like GET, POST and DELETE methods. The GET method should not be able to delete data.

how to use get to delete a data?
is that is possible even though that is not recommended?
please advise
0
hi,

i was reading as below
https://www.tutorialspoint.com/restful/restful_statelessness.htm

what is the meaning of below

Consider the following URL −

https://localhost:8080/UserManagement/rest/UserService/users/1

If you hit the above url using your browser or using a java based client or using Postman, result will always be the User XML whose Id is 1 because the server does not store any information about the client.

<user>
   <id>1</id>
   <name>mahesh</name>
   <profession>1</profession>
</user>

how result with id 1 is related to statelessness.

since we created new user it created with id 1 and while retrieving we get same value right.

please advise
0
hi,

i am trying below example
https://www.tutorialspoint.com/restful/restful_first_application.htm

when i added project to tomcat 8.5 in eclipse and trying to start tomcat i am getting below error

Server Tomcat v8.5 Server at localhost failed to start.
are these below 3 same jar or different jars?

\jaxrs-ri-2.17\jaxrs-ri\api
\jaxrs-ri-2.17\jaxrs-ri\ext
\jaxrs-ri-2.17\jaxrs-ri\lib
jaxrs-ri seems jar right which has api and ext and lib within that?

i downloaded that and added from below site
http://www.java2s.com/Code/Jar/j/Downloadjaxrsapijar.htm
it seems to have 2.0 version not 2.17 as mentioned in site?
where i can get exact version jar?
where i can see exact error trace of tomcat?

please advise
tomcatStartErr.png
0

System Programming

40K

Solutions

19K

Contributors

Kernel and system programming is the process of creating the software necessary for a computer or device to function and operate other programs. Some operating systems (such as Microsoft Windows) are proprietary, but others, such as the various Linux distributions, are open source.